-
Notifications
You must be signed in to change notification settings - Fork 914
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
sha256 evaluation is incorrect #3519
Labels
bug
Something isn't working
Comments
Raised #3520 to fix this. |
6 tasks
zachaller
pushed a commit
that referenced
this issue
Apr 10, 2024
(#3520) Fixed sha256 algo Signed-off-by: dhawani <[email protected]> Signed-off-by: dhawani <[email protected]> Co-authored-by: dhawani <[email protected]>
zachaller
pushed a commit
that referenced
this issue
Apr 10, 2024
(#3520) Fixed sha256 algo Signed-off-by: dhawani <[email protected]> Signed-off-by: dhawani <[email protected]> Co-authored-by: dhawani <[email protected]>
zachaller
pushed a commit
that referenced
this issue
Apr 10, 2024
(#3520) Fixed sha256 algo Signed-off-by: dhawani <[email protected]> Signed-off-by: dhawani <[email protected]> Co-authored-by: dhawani <[email protected]>
meeech
pushed a commit
to CircleCI-Public/argo-rollouts
that referenced
this issue
Feb 10, 2025
…goproj#3519 (argoproj#3520) Fixed sha256 algo Signed-off-by: dhawani <[email protected]> Signed-off-by: dhawani <[email protected]> Co-authored-by: dhawani <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The plugin documentation suggests that the sha256 value is the checksum of the downloaded file. However, it fails when correct checksum is provided.
Checklist:
Describe the bug
As per the function
checkShaOfPlugin
indownloader.go
, thehasher.Sum()
method appends the checksum to the bytes. Hence, the resulting value is not checksum but hexof(binary + checksum). This is inconsistent with the documentation. However, it is difficult to specific such big value in the configuration file.To Reproduce
Sample config
Add the above configuration to your argorollout configuration.
Expected behavior
No errors should be thrown.
Version
I tested it with version v1.6.6. However, i see code in master also is the same.
Logs
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: