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

Sign images with Cosign #2

Merged
merged 1 commit into from
Feb 4, 2023
Merged

Sign images with Cosign #2

merged 1 commit into from
Feb 4, 2023

Conversation

ahgencer
Copy link
Owner

@ahgencer ahgencer commented Feb 4, 2023

This PR tracks the efforts to sign the published images using Cosign and rebase to the signed image with ostree-image-signed.

Here's the current progress so far:

  • Extended the publish.yml action to install and sign the images with Cosign. The image signatures are stored alongside the images on the container registry, and can be verified locally with cosign verify. The private key is stored in a GitHub Secret, which means a new private key needs to be configured for forks of this repository.
  • Configured containers-policy.json(5) and containers-registries.d(5) to specify the path to the public key ocitree.pub. When pulling the images with podman pull, the signatures are verified as expected.

Now, the remaining problem is to get rpm-ostree to verify the signature during a rebase / upgrade. For some reason, it doesn't reject images with incorrect or no signatures, even though it rebases to ostree-image-signed:<IMAGE> just fine. For now, I filed coreos/rpm-ostree#4272 to see if this is a bug.

@ahgencer ahgencer added enhancement New feature or request help wanted Extra attention is needed labels Feb 4, 2023
@ahgencer ahgencer merged commit 2ba2a54 into main Feb 4, 2023
@ahgencer
Copy link
Owner Author

ahgencer commented Feb 4, 2023

Whoops, accidentally closed this. This is still an ongoing issue.

@ahgencer ahgencer mentioned this pull request Feb 4, 2023
@ahgencer
Copy link
Owner Author

ahgencer commented Feb 4, 2023

Reopened in PR #3.

Repository owner locked and limited conversation to collaborators Feb 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant