-
Notifications
You must be signed in to change notification settings - Fork 26
Update RHEL10 CIS configuration #2452
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
Open
priteau
wants to merge
7
commits into
stackhpc/2025.1
Choose a base branch
from
rhel10-cis-updates
base: stackhpc/2025.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7d578d6
Fix typo in comment
priteau f7f97c1
Bump ansible-lockdown.rhel10_cis to 1.1.0 release
priteau 4e1f296
Avoid duplicating SSH banner
priteau 654f1e3
Avoid halting system when disk is full
priteau 014e28f
Fix check for FIPS ed25519 keys
priteau 766ba07
Switch crypto policy to DEFAULT on RHEL10
priteau 947e671
Add release note for RHEL10 CIS changes
priteau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,7 +69,7 @@ rhel9cis_auditd: | |
| # Max size of audit logs (MB) | ||
| rhel9cis_max_log_file_size: 1024 | ||
|
|
||
| # Disable setting of boatloader password. This requires setting the variable | ||
| # Disable setting of bootloader password. This requires setting the variable | ||
| # `rhel9cis_bootloader_password_hash` | ||
| rhel9cis_set_boot_pass: false | ||
|
|
||
|
|
@@ -88,12 +88,16 @@ rhel10cis_auditd_max_log_file_size: 1024 | |
| rhel10cis_auditd_max_log_file: 10 | ||
| rhel10cis_auditd_space_left_action: syslog | ||
|
|
||
| # Prevent system from halting if disk is full | ||
| rhel10cis_auditd_disk_full_action: suspend | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not setting it to syslog like we did before? |
||
|
|
||
| # Set an authselect profile name (required) | ||
| rhel10cis_authselect_custom_profile_name: "stack" | ||
|
|
||
| # Set crypto policy | ||
| # NOTE: FIPS breaks ed25519 SSH keys | ||
| # NOTE: FUTURE breaks wazuh agent repo metadata download | ||
| rhel10cis_crypto_policy: FIPS | ||
| rhel10cis_crypto_policy: DEFAULT | ||
|
|
||
| # Skip configuration of the firewall | ||
| rhel10cis_firewall: None | ||
|
|
@@ -122,6 +126,9 @@ rhel10cis_rule_1_2_2_1: false | |
| rhel10cis_rule_2_3_1: false | ||
| rhel10cis_rule_2_3_2: false | ||
|
|
||
| # Avoid duplicate banner (already enabled by pam_motd) | ||
| rhel10cis_rule_5_1_5: false | ||
|
|
||
| # Disable requirement for password when using sudo | ||
| rhel10cis_rule_5_2_4: false | ||
|
|
||
|
|
||
22 changes: 22 additions & 0 deletions
22
releasenotes/notes/rhel10-cis-updates-f884f27770013f91.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| upgrade: | ||
| - | | ||
| Bumps the ``ansible-lockdown.rhel10_cis`` role to the 1.1.0 release. | ||
| - | | ||
| Switches default RHEL 10 crypto policy from ``FIPS`` to ``DEFAULT`` | ||
| (``rhel10cis_crypto_policy: DEFAULT``). This only applies to the initial | ||
| CIS hardening execution because of `ansible-lockdown/RHEL10-CIS#111 | ||
| <https://github.com/ansible-lockdown/RHEL10-CIS/issues/111>`__. | ||
| fixes: | ||
| - | | ||
| Fixes compatibility with ed25519 SSH keys by changing the default RHEL 10 | ||
| crypto policy from ``FIPS`` to ``DEFAULT``. | ||
| - | | ||
| Fixes assertion check for ed25519 SSH keys in CIS playbook to correctly | ||
| check ``rhel10cis_crypto_policy`` on Rocky Linux 10 hosts. | ||
| - | | ||
| Sets ``rhel10cis_auditd_disk_full_action: suspend`` to prevent hosts from | ||
| halting if audit log partitions become full. | ||
| - | | ||
| Disables CIS rule 5.1.5 (``rhel10cis_rule_5_1_5: false``) in SSH | ||
| configuration to avoid duplicate banners on interactive SSH login. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🩺 Stability & Availability | 🔵 Trivial
Monitor the auditability trade-off of
suspend.This prevents a host halt, but audit logging stops while the partition is full. Confirm that monitoring detects this state and that log-space recovery is automatic.