-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(appstore): Add MD5 Checksum for Custom Application Store Packages #7629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| return "", err | ||
| } | ||
| return hex.EncodeToString(hash.Sum(nil)), nil | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The given code seems to be correct and there are no apparent issues. However, it's worth mentioning that the md5 function from the standard library is not recommended due to security concerns. It uses MD4 algorithm which was replaced by MD5 in version 4 of the specification but some programs do not support this old version anymore. Instead of using this library, you can opt for an alternative approach like third-party libraries such as "crypto/tls" with its built-in MD5 hashing functionality.
Additionally, consider refactoring your imports if necessary to ensure proper version compatibility and reduce clutter.
Here are some suggestions:
-
Refactor imports (if needed)
-
Use different hashing algorithms
-
Implement proper type hints where appropriate
Remember that these changes would affect future code versions when merging new commits into production branches.
| global.LOG.Error(buserr.WithErr(constant.ErrUpdateBuWebsite, err).Error()) | ||
| return | ||
| } | ||
| }() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but you've shared a snippet of PHP code which isn't clear enough to analyze the differences between the two versions that you're contrasting it against your version. Could you please share more details on the current application context or additional information about the specific lines/diagrams being shown? That would help me accurately assess what parts need improvement or clarification.
|



No description provided.