Skip to content

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented Sep 11, 2025

We want to store all the signatures in the same location rather than
stream-specific. But ideally we still want the staging location for
signing to be stream-specific so that we can safely garbage collect
stale files there without worrying about stepping on concurrent runs.

Just pick up the stream from the metadata and use that to build the
staging location.

See also coreos/fedora-coreos-pipeline#1218.

Create a new variable for the staging location instead of pushing the
staging path on the prefix, only to then peel it off later to get back
to its original value.
We want to store all the signatures in the same location rather than
stream-specific. But ideally we still want the staging location for
signing to be stream-specific so that we can safely garbage collect
stale files there without worrying about stepping on concurrent runs.

Just pick up the stream from the metadata and use that to build the
staging location.

See also coreos/fedora-coreos-pipeline#1218.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the OCI signing process to use a stream-specific staging location in S3. This is a valuable change that enhances safety by isolating concurrent signing runs for different streams, preventing them from interfering with each other. The implementation correctly determines the stream from build metadata and applies it to the staging path, while keeping the final signature destination unchanged, as described. The code is clear and the changes are consistent with the stated goal. I have one minor suggestion to improve the robustness of how the stream name is parsed.

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon jlebon merged commit 8932119 into coreos:main Sep 11, 2025
5 of 6 checks passed
@jlebon jlebon deleted the pr/sigs-staging branch September 11, 2025 18:39
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

Successfully merging this pull request may close these issues.

3 participants