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

feat(db): sign db artifact with cosign #230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShubhamPalriwala
Copy link

Closes #205

Introduces cosign as a signing artifact tool to sign our DB on the GHCR. The signatures are pushed to a new repo, "trivy-db-signatures" to avoid populating the db CR with signatures.

Before merging, the following steps are needed to be performed by the maintainer:

  1. Install cosign and generate a public-private key pair with the command
cosign generate-key-pair
  1. Add the cosign.pub in our repo as cosign.pub in main dir (so that our users can fetch it to verify the builds)

  2. The password used to generate the key pair shooul be stored as:
    GitHub Repo secret
    key: COSIGN_PRIVATE_KEY_PASSWORD
    value:

  3. And the provate key generated should be stored as:
    GitHub Repo secret:
    key: COSIGN_PRIVATE_KEY
    value:
    make sure there's not an empty line at the end.

And after merging the PR and the signature being pushed, make the repo trivy-db-signatures public.

@ShubhamPalriwala ShubhamPalriwala changed the title feat: sign db with cosign feat(db): sign db artifact with cosign Jul 20, 2022
@ShubhamPalriwala
Copy link
Author

@knqyf263 Can you please take a look at this and let me know if I have to make any changes?

@knqyf263 knqyf263 self-requested a review as a code owner August 28, 2022 18:40
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.

request: sign db image with cosign
1 participant