-
Notifications
You must be signed in to change notification settings - Fork 558
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
OCI manifest created timestamp wrong with v2.2.0 #3298
Comments
I encountered this issue some time back and dug into it for a bit -- this is part of a commit that reverts a previous implementation to ensure that the produced artifacts are deterministic, which is pushed out in I believe container registries that uses timestamp as a housekeeping rule (i.e GitLab, GCR) will be affected since effectively the signatures are deleted after creation. No clue on any alternative workarounds, but personally I pinned the version to |
@jonjohnsonjr did you want to chime in on this? |
We encounter the same error in Gitlab. |
kind of a bummer to write here again for the same reason :/ |
We encountered the same issue back in 2022. Then #2108 was merged in order to fix the issue for GitLab users with automated registry cleanup rules. Now #3121 was merged which reverts the fix and is itself flagged as "fix".
|
v2.3.0 was just released (public.ecr.aws/bitnami/cosign:2.3.0-debian-12-r0) and sadly nothing has changed. This is still a huge problem for us. |
Did you use the new command line argument? --honor-create-timestamp |
--honor-create-timestamp does not exist for cosign sign, seems to be the --record-creation-timestamp flag. With
Would be great to have this kind of change added to the changelog (at least I couldn't find it). |
Description
We are using a cosign container inside our pipeline to sign newly build images.
Up until v2.1.1 (public.ecr.aws/bitnami/cosign:2.1.1) this works without problems:
cosign sign --yes --key cosign.key {{image}}@sha256:{{digest}}
That creates a new OCI entry inside our IBM Container Registry:
After updating to v2.2.0 (public.ecr.aws/bitnami/cosign:2.2.0) the Created timestamp is totally wrong and leads to this:
As we have some rules to delete older entries inside our registry these signatures are deleted soon after creation.
Image can be verified with
cosign verify
in both cases. The output does not differ.This can be reproduced with different images.
Version
public.ecr.aws/bitnami/cosign:2.2.0
The text was updated successfully, but these errors were encountered: