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

fix(KONFLUX-4292): upload a fixed gpg key id to pyxis #241

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

ralphbean
Copy link
Member

To fix KONFLUX-4175, we need to upload a gpg key id to pyxis.

The right way to do this is for the SBOM itself to contain the gpg key id. Our task here would simply copy it to pyxis. However, to do that fully, we'll need to get a change into both syft and cachi2, which may take some time.

As a stopgap, this change inspects the "publisher" field of the sbom. If it is set to Red Hat, we'll publish the Red Hat release2 key id to pyxis.

You might ask, what if the rpms are not actually signed by Red Hat keys? We have a separate layer of protection against that in KONFLUX-3149, but the data about which rpms are signed by which keys will not be exposed by that work in the way that the release process can use here.

This change should be reverted as a part of completing KONFLUX-4175.

@ralphbean ralphbean requested a review from a team as a code owner September 6, 2024 16:14
Copy link
Collaborator

@johnbieren johnbieren left a comment

Choose a reason for hiding this comment

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

Would you like me to merge this @ralphbean or hold off for now?

@ralphbean
Copy link
Member Author

Yes, please. Merge when you're ready. I'll rebase now.

To fix KONFLUX-4175, we need to upload a gpg key id to pyxis.

The right way to do this is for the SBOM itself to contain the gpg key
id. Our task here would simply copy it to pyxis.  However, to do that
fully, we'll need to get a change into both syft and cachi2, which may
take some time.

As a stopgap, this change inspects the "publisher" field of the sbom. If
it is set to Red Hat, we'll publish the Red Hat release2 key id to
pyxis.

You might ask, what if the rpms are not actually signed by Red Hat keys?
We have a separate layer of protection against that in KONFLUX-3149, but
the data about which rpms are signed by which keys will not be exposed
by that work in the way that the release process can use here.

* https://issues.redhat.com/browse/KONFLUX-4292
* https://issues.redhat.com/browse/KONFLUX-4175

This change should be reverted as a part of completing KONFLUX-4175.

Signed-off-by: Ralph Bean <rbean@redhat.com>
@johnbieren johnbieren merged commit e7c0371 into main Sep 14, 2024
3 checks passed
@johnbieren johnbieren deleted the rpm-gpg-workaround branch September 14, 2024 12:59
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.

3 participants