-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was correctly replacing the base of the signatures but was also appending those signatures to the Get() response. So the v1.Image representation was getting out of sync with the oci.Signatures representation. Normally you won't see this because cosign doesn't do multiple attestations in the same command for the same image, so you'd roundtrip the signatures through the v1.Image being pushed and pulled, which corrects the discrepancy. If you (specifically, me) attempt to attach an attestation multiple times, the Get() will get very out of sync with the v1.Image and Replace no longer does what you'd expect because it's operating on incorrect Get() results instead of directly on the v1.Image representation. Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
- Loading branch information
1 parent
4c5669d
commit 8391340
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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