-
Notifications
You must be signed in to change notification settings - Fork 38
Re-enable gpgchecks for dnf packages (where public keys are available) #873
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
base: main
Are you sure you want to change the base?
Conversation
bertiethorpe
commented
Dec 16, 2025
- dnf_repo_timestamps.yml now makes it possible to toggle repo gpgchecks.
- EESSI CVMFS config now pulled from Ark
cc46ea3 to
89fdeac
Compare
environments/common/inventory/group_vars/all/dnf_repo_timestamps.yml
Outdated
Show resolved
Hide resolved
| password: "{{ dnf_repos_password }}" | ||
| gpgcheck: false | ||
| gpgcheck: "{{ repo_values.gpgcheck | default(true) }}" | ||
| gpgkey: "{{ repo_values.gpgkey | default('') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If gpgkey isn't provided and gpgcheck is true, that should be an error I think to avoid hard-to-diagnose errors later?
| dest: ./cvmfs-key.gpg | ||
| checksum: "{{ cvmfs_gpg_checksum }}" | ||
| mode: "0644" | ||
| - name: Install CVMFS GPG key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what's different here vs e.g. openhpc where we install/import the key as part as of the dnf_repos role?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dnf_repos role can only really install/import keys and write repo files with keys. There are places which call ansible.builtin.dnf which actually determine if gpg keys are used.
So there's two things we need to do:
- Write repo file with keys
- Ensure ansible.builtin.dnf is not run with
disable_gpg_checkon that repo file
Its not really clear to me why we don't need to e.g. import the openhpc key (pre this PR) but we do seem to need to import the rocky ones.
| pulp_timestamp: 20250828T161842 | ||
| repo_file: rocky-extras | ||
| gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
| grafana: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to check grafana. Might e.g. be disabled in the role which enables it.