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

Missing checksum verification #468

Closed
dholbach opened this issue Oct 26, 2021 · 1 comment
Closed

Missing checksum verification #468

dholbach opened this issue Oct 26, 2021 · 1 comment
Assignees

Comments

@dholbach
Copy link
Member

dholbach commented Oct 26, 2021

From Ada Logics

In the source-controller checksums are calculated when fetching artifacts from S3 stores (bucket_reconciler.go) and git repositories (gitrepository_controller.go). Specifically, the checksum is calculated here:

artifact.Checksum = fmt.Sprintf("%x", h.Sum(nil))

This function is called by both the git repository reconciler and the bucket reconciler, but it is never checked in the reconcilers despite comments indicating “check integrity”. -

// archive artifact and check integrity

We assume this integrity check should be matched with data from the source where you download and that is a good idea. However, there is never any check on the checksums calculated.

@stefanprodan
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants