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

Use rekor signedEntryTimestamp if present #285

Merged
merged 10 commits into from Apr 30, 2021

Conversation

priyawadhwa
Copy link
Contributor

If the SET is present, we store the logEntry as a bundle annotation. On verify, we first try to verify it against the rekor public key (not experimental). if that fails, then we hit the tlog.

Starts to address #281, still need to add the --verify-inclusion flag to force checking the tlog

Priya Wadhwa added 2 commits April 28, 2021 14:50
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
@priyawadhwa priyawadhwa force-pushed the bundle branch 2 times, most recently from 74741b9 to f5e00d5 Compare April 28, 2021 22:15
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Priya Wadhwa added 2 commits April 28, 2021 16:35
The TestTlog test was failing because it was going through this flow:
1. Sign and verify image
2. Turn on experimental feature
3. Sign and verify image again

The second verification was failing with bundling because the deduper thought the image already existed, even though we were trying to tack on a new bundle annotation.

This way, we can pass in extra annotations we want the deduper to check for before deciding the signature alrady exists.

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Copy link
Member

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

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

This is so cool.

SPEC.md Outdated Show resolved Hide resolved
pkg/cosign/keys.go Show resolved Hide resolved
pkg/cosign/rekor.pub Show resolved Hide resolved
cmd/cosign/cli/sign.go Show resolved Hide resolved
pkg/cosign/verify.go Show resolved Hide resolved
SPEC.md Outdated Show resolved Hide resolved
pkg/cosign/remote.go Outdated Show resolved Hide resolved
Priya Wadhwa added 2 commits April 29, 2021 10:21
- Only store SET and canonicalized payload in the bundle annotation
- Add more bundle details to spec
- Add details around updating the rekor public key

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
pkg/cosign/remote.go Show resolved Hide resolved
pkg/cosign/verify.go Outdated Show resolved Hide resolved
pkg/cosign/verify.go Show resolved Hide resolved
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
Copy link
Member

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

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

One nit on the opts struct.

SPEC.md Show resolved Hide resolved
pkg/cosign/remote.go Show resolved Hide resolved
Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
@dlorenc
Copy link
Member

dlorenc commented Apr 30, 2021

Ehl gee tee emm!

@priyawadhwa priyawadhwa merged commit a2bf758 into sigstore:main Apr 30, 2021
@priyawadhwa priyawadhwa deleted the bundle branch April 30, 2021 00:42
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.

None yet

3 participants