Story #4458
closedStory #5114: [Epic] Publish features
As a user, I can configure which checksum algorithm to use when creating metadata
100%
Description
Support metadata_checksum_type
and package_checksum_type
options at publish time.
These are one-time options and are passed as a parameter for a publication creation call.
metadata_checksum_type
affects all the repodata, including primary.xml, repomd.xml, etc.
package_checksum_type
affects package checksum type in all repo metadata files.
Origin of checksum types and their precedence (at the top is the one which is used first if present and available):
- configuration at publish time
- a remote repo (store the checksum type from the remote source on the repository version model)
- Pulp default (sha256)
DNF supports different package checksum types in one repo.
Publication creation should never fail due to checksum type configuration. At least one checksum type is always available for a package and it should be used if the requested one is not available.
Related issues
Enabled checksum selection when creating metadata
https://pulp.plan.io/issues/4458 closes #4458