Skip to content

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis commented Oct 16, 2025

The package signing code in pulp_rpm expects the signing service to return the file path as "rpm_package" but it doesn't look like it uses it. Instead, it expects the original file to be signed. This is sort of at odds with how package signing works since it uses the "signature" value returns by the signing service. Even pulp_deb which has files with embedded signatures does this.

I think that pulp_rpm expects users to be using rpmsign which signs the file in place and thus using the original file path location makes sense. But this is not true for us. We hand the rpm file over to a service to be signed, and then the file is returned via an API call and stored at a new location.

Using "rpm_package" instead of expecting the original file to be signed would give users greater flexibility. Users can still update the existing file if they choose to and just return the original file path as "rpm_package". I also think that using "rpm_package" is more consistent with how metadata signing works as well.

fixes #4189

@daviddavis daviddavis changed the title Have RPM package verification use the rpm_package location Have RPM package signing verification use the rpm_package location Oct 16, 2025
@daviddavis daviddavis changed the title Have RPM package signing verification use the rpm_package location Have RPM package signing validation use the rpm_package location Oct 16, 2025
@daviddavis daviddavis force-pushed the patch-1 branch 3 times, most recently from a0dea1a to 699ceec Compare October 16, 2025 21:22
@daviddavis daviddavis changed the title Have RPM package signing validation use the rpm_package location Have RPM package signing use the rpm_package location Oct 16, 2025
@daviddavis daviddavis changed the title Have RPM package signing use the rpm_package location Have RPM package signing use rpm_package location Oct 17, 2025
@github-actions github-actions bot removed the no-issue label Oct 17, 2025
The package signing code in pulp_rpm expects the signing service to
return the file path as "rpm_package" but it doesn't look like it uses
it. Instead, it expects the original file to be signed. This is sort of
at odds with how package signing works since it uses the "signature"
value returns by the signing service. Even pulp_deb which has files with
embedded signatures does this.

I think that pulp_rpm expects users to be using rpmsign which signs the
file in place and thus using the original file path location makes
sense. But this is not true for us. We hand the rpm file over to a
service to be signed, and then the file is returned via an API call and
stored at a new location.

Using "rpm_package" instead of expecting the original file to be signed
would give users greater flexibility. Users can still update the
existing file if they choose to and just return the original file path
as "rpm_package". I also think that using "rpm_package" is more
consistent with how metadata signing works as well.

fixes pulp#4189
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.

Have pulp_rpm package signing code use "rpm_package" location

1 participant