ROX-33792: make operator bundle reproducible#19657
Closed
Conversation
Use SOURCE_DATE_EPOCH from git commit timestamp instead of current time for createdAt annotation. Sort environment variables to ensure deterministic ordering of related images in the bundle CSV. This allows identical source to produce identical image digests, improving supply chain security and enabling content-addressable storage benefits. User request: "Compare this two bundles and check if we can make our image reporducible. Test it locally on master as that could be our third PR" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
bundle.Dockerfile is regenerated by operator-sdk, so the ARG must be in bundle.Dockerfile.extra which gets appended during the build process. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
|
Images are ready for the commit at 9197e6b. To use with deploy scripts, first |
Contributor
|
/konflux-retest roxctl-on-push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Use SOURCE_DATE_EPOCH from git commit timestamp instead of current time for createdAt annotation. Sort environment variables to ensure deterministic ordering of related images in the bundle CSV.
This allows identical source to produce identical image digests, improving supply chain security and enabling content-addressable storage benefits.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
CI