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

osbuild/rpm: generate stable and unique gpg key options #586

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

achilleas-k
Copy link
Member

The addition of repo configs from the depsolve result added in PR #537 [1] added a bit of non-determinism to the rpm stage option generation. The list of gpg keys to import always had duplicates but it was at least stable, based on the repository configurations for each build. Now, the repository configurations that we get from the depsolve aren't in stable order so the key order can change. This had no functional effect on the image build process, but it does mean that manifests generated with the same inputs have different IDs.

Sort and deduplicate keys in the rpm stage option generation to make manifests stable. Deduplicating the keys also makes the manifests a bit "cleaner".

[1] #537

The addition of repo configs from the depsolve result added in PR osbuild#537
[1] added a bit of non-determinism to the rpm stage option generation.
The list of gpg keys to import always had duplicates but it was at least
stable, based on the repository configurations for each build.  Now,
the repository configurations that we get from the depsolve aren't in
stable order so the key order can change.  This had no functional effect
on the image build process, but it does mean that manifests generated
with the same inputs have different IDs.

Sort and deduplicate keys in the rpm stage option generation to make
manifests stable.  Deduplicating the keys also makes the manifests a bit
"cleaner".

[1] osbuild#537

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
@croissanne croissanne added this pull request to the merge queue Apr 12, 2024
Merged via the queue into osbuild:main with commit 544eb91 Apr 12, 2024
14 of 16 checks passed
@achilleas-k achilleas-k deleted the dedupe-gpgkeys branch April 15, 2024 21:09
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.

2 participants