Skip to content
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

Verify artifacts integrity #358

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Verify artifacts integrity #358

merged 2 commits into from
Nov 12, 2021

Conversation

stefanprodan
Copy link
Member

After downloading an artifact, compute its checksum and verify that it matches the original checksum as advertised by source-controller.

For backwards compatibility with source-controller v0.17.2, the checksum is computed with SHA1, on clusters with a newer source-controller we use SHA256.

Addresses fluxcd/source-controller#468

@stefanprodan stefanprodan added the enhancement New feature or request label Nov 12, 2021
@stefanprodan stefanprodan force-pushed the verify-artifact-checksum branch 2 times, most recently from 2166b58 to e285033 Compare November 12, 2021 12:13
controllers/helmrelease_controller_chart.go Outdated Show resolved Hide resolved
controllers/helmrelease_controller_chart.go Outdated Show resolved Hide resolved
controllers/helmrelease_controller_chart.go Outdated Show resolved Hide resolved
After downloading an artifact, compute its checksum and verify that it matches the original checksum advertised by source-controller.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇 🙇

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit 4f1ac95 into main Nov 12, 2021
@stefanprodan stefanprodan deleted the verify-artifact-checksum branch November 12, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants