Bug 2026879
| Summary: | When run with fips=1, anaconda resets FIPS crypto policy module set by an addon | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> |
| Status: | CLOSED MIGRATED | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | jkonecny, jpazdziora, jstodola, mepley, vpolasek |
| Target Milestone: | rc | Keywords: | MigratedToJIRA, Reopened, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-18 15:17:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jan Pazdziora (Red Hat)
2021-11-26 10:32:19 UTC
Looking at the upstream code at https://github.com/rhinstaller/anaconda/, security_proxy.ConfigureFIPSWithTask() is added to configuration_queue via https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/installation.py#L174 after the addons got added in https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/installation.py#L152 And the FIPS mode enablement is done using unconditional fips-mode-setup --enable --no-bootcfg https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/security/installation.py#L167-L171 One hopefully quick way to fix the problem would be to run something like fips-mode-setup --is-enabled in that ConfigureFIPSTask's run, and if already enabled, skip that fips-mode-setup --enable --no-bootcfg invocation. But the issue also brings a more general question -- is it correct that the SECURITY module is only invoked after the addons? IOW, shouldn't the addons be in the queue after that SECURITY module was called, so that they already operate on the "hardened" setup? Proposing for 9.1 planning. The problem is not reproducible on RHEL-9.1, most likely due to a fix in bug 2026657. (In reply to Jan Pazdziora from comment #1) > But the issue also brings a more general question -- is it correct that the > SECURITY module is only invoked after the addons? IOW, shouldn't the addons > be in the queue after that SECURITY module was called, so that they already > operate on the "hardened" setup? The "Configure FIPS" task is executed as about 44th task out of 48 during the installation. It would make sense to execute it as soon as possible so that not only addons are executed in a properly configured environment. What do you think, Jirko? From the implementation PoV it's simple. Hard part is to be sure that we won't break something else which depends on the previous setup... Looking on the code and the queue is: - Create users - Configuring addons - Generating initramfs - Configure FIPS My question is if we can move initramfs generation after the FIPS? Couldn't that raise any issue? initramfs generation has to work in FIPS mode and with the environment properly set up - like on an installed FIPS system when installing a new kernel. I would like to do this change upstream first. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. (In reply to Jiri Konecny from comment #8) > I would like to do this change upstream first. Hello Jiří, were you able to get the change tested upstream? Hi, unfortunately no. We definitely want to get this upstream first but we are a bit overburden with other high priority tasks. Jirka Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |