Skip to content

Add optional SHA256SUMS generation to file publications - #8127

Open
aKlimau wants to merge 1 commit into
pulp:mainfrom
aKlimau:auto-gen-sha
Open

aKlimau wants to merge 1 commit into
pulp:mainfrom
aKlimau:auto-gen-sha

Conversation

@aKlimau

@aKlimau aKlimau commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

File repositories gain a sha256sums option that publishes SHA256SUMS files alongside the content, in the format read by sha256sum -c. It is disabled by default. 'root' writes a single file at the root of the repository, and 'directory' writes one in every directory; each file lists every file below it by its path relative to itself, so a nested directory can be verified on its own and a deleted one is still detected by its parent.

Publications accept the same option and fall back to the repository's setting when it is omitted, so autopublish and explicit publishes behave alike. On-demand content with no known digest is skipped.

Closes #8097

File repositories gain a sha256sums option that publishes SHA256SUMS files
alongside the content, in the format read by sha256sum -c. It is disabled by
default. 'root' writes a single file at the root of the repository, and
'directory' writes one in every directory; each file lists every file below it
by its path relative to itself, so a nested directory can be verified on its
own and a deleted one is still detected by its parent.

Publications accept the same option and fall back to the repository's setting
when it is omitted, so autopublish and explicit publishes behave alike.
On-demand content with no known digest is skipped.

Closes pulp#8097

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@aKlimau
aKlimau marked this pull request as draft September 23, 2026 11:33
@aKlimau
aKlimau marked this pull request as ready for review September 23, 2026 14:09
@aKlimau

aKlimau commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

Could you please take a look and tell us if this pr solves your issue? @fabiang

@fabiang

fabiang commented Sep 25, 2026

Copy link
Copy Markdown

Looks very promising. But it'll take three weeks before I am able to test this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] [pulp_file] Automatically generate SHA256SUMS files for Pulp file distributions

2 participants