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

[Feature Request] Make grub2_info.jinja content a "common" resource #507

Open
ferricoxide opened this issue Jun 5, 2024 · 0 comments
Open

Comments

@ferricoxide
Copy link
Member

Is your feature request related to a problem? Please describe.

With the Red Hat Enterprise Linux 9 hardening-automation, the bootloader user/password content is (currently) broken up into two findings: one at a priority of "high" (password-protecting GRUB2 menu) and one at "medium" (superuser name). To avoid pointless duplication of configuration content, copied the …/el8 hierarchy's grub2_info.jinja into the …/el9 hierarchy that will be introduced once #506 is merged. Probably want to extend that paradigm to cover EL8, as well.

Describe the solution you'd like

Consolidate the grub2_info.jinja in the already-implemented …/el8/STIGbyID/cat1/grub2_info.jinja file and the soon-to-be-implemented …/el9/RuleById/common/grub2_info.jinja content into a single file that's referenced by both the …/el8/… and …/el9/… content. This should be done by moving the grub2_info.jinja content above (or parallel to) the …/el8/… and …/el9/… content-hierarchies and then use a fetch-method similar to what's implmented in the (pending) …/el9/RuleById/high/content_rule_grub2_uefi_password.sls and …/el9/RuleById/medium/content_rule_grub2_uefi_admin_username.sls states.

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant