Skip to content

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Mar 11, 2025

Copy in the tink package from Rekor v1 so that it can be used by other services.

Relates to sigstore/rekor-tiles#9

Summary

Release Note

Documentation

Copy in the tink package from Rekor v1 so that it can be used by other
services.

Signed-off-by: Colleen Murphy <colleenmurphy@google.com>
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Should we copy in the code for GetPrimaryKey which initializes a Tink decrypter given a KMS key, and NewTinkSigner to decrypt a keyset given a key? https://github.com/sigstore/timestamp-authority/blob/1abfce06d86c2e78094ec537ddebc92c4f9a051b/pkg/signer/tink.go#L53-L100 (and tests)

There's a bit of deviation between NewTinkSigner across Fulcio, Rekor and the TSA. The TSA implementation looks to be the most up to date.

@cmurphy
Copy link
Contributor Author

cmurphy commented Mar 11, 2025

Should we copy in the code for GetPrimaryKey which initializes a Tink decrypter given a KMS key, and NewTinkSigner to decrypt a keyset given a key?

This isn't ideal for what we're trying to use it for in rekor, NewTinkSigner returns a crypto.Signer when what we need is a sigstore/sigstore/pkg/signature.Signer

Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Sounds good. I guess GetPrimaryKey is also overkill since we only support GCP currently.

@haydentherapper haydentherapper merged commit c049f8d into sigstore:main Mar 11, 2025
16 checks passed
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.

2 participants