-
Notifications
You must be signed in to change notification settings - Fork 761
Use Sequoia in RHEL 10 instead of GPG #14193
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
Use Sequoia in RHEL 10 instead of GPG #14193
Conversation
|
Skipping CI for Draft Pull Request. |
components/rpm.yml
Outdated
| name: rpm | ||
| packages: | ||
| - rpm | ||
| - sequoia-sq |
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.
Should it be a new separate component file instead?
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.
Probably yes, I did that in c79b55d
linux_os/guide/system/software/updating/ensure_redhat_gpgkey_installed/oval/shared.xml
Outdated
Show resolved
Hide resolved
| {{% endif %}} | ||
|
|
||
| - name: Import RedHat GPG key | ||
| - name: "{{{ rule_title }}}: Import RedHat 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.
In automatus tests, I'm still getting this fail. Is it expected? Is it the bug in Ansible?
"gpg: directory '/root/.gnupg' created\ngpg: WARNING: no command supplied. Trying to guess what you mean ...\ngpg: /root/. gnupg/trustdb.gpg: trustdb created\ngpg: packet(6) with unknown version 6\n"
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.
This is caused by the Ansible rpm_key module.
Here is their issue: ansible/ansible#86157
8bd67b6 to
c79b55d
Compare
products/rhel10/profiles/e8.profile
Outdated
| - '!package_rsh-server_removed' | ||
| - '!security_patches_up_to_date' | ||
| # the rule ensure_redhat_gpgkey_installed needs a special package on RHEL 10 which is not installed by default | ||
| - package_sequoia-sq_installed |
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.
You have two options how to solve the failing static-checks reference test.
- Add the rule to the control file and then deselect it in profile files in products where this shouldn't be present.
- Add an ISM_O reference to the rule.yml file in package_sequoia-sq_installed.
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.
Option 2 will not work, you cannot mix control file references and in file references.
c79b55d to
7b4df39
Compare
…nstalled/oval/shared.xml Co-authored-by: Jan Černý <[email protected]>
7b4df39 to
50c9c05
Compare
and exclude it from other products which use ANSSI as well
|
@jan-cerny I added the rule to all relevant RHEL 10 profiles. |
|
@vojtapolasek Unfortunately, the static-checks test still has problems with some references. See the test output https://artifacts.dev.testing-farm.io/992274c6-fdf8-4db5-821f-21487b721236/ |
It seems that ospp reference is not autogenerated from the control file.
|
@vojtapolasek: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@ComplianceAsCode/suse-maintainers @ComplianceAsCode/ubuntu-maintainers @ComplianceAsCode/oracle-maintainers Can you please review this? It shouldn't add anything to your product's profiles. |
|
@jan-cerny I believe I solved all problems with missing references. |
mrkanon
left a comment
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.
LGTM
teacup-on-rockingchair
left a comment
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.
LGTM 👍
Description:
Rationale:
Review Hints:
Test with Automatus. But ensure that the RHEL machine contains all three keys.