Skip to content

CNF-23514: RAN Hardening (5.0) - Auditd Configuration (M9)#824

Open
sebrandon1 wants to merge 1 commit into
openshift-kni:mainfrom
sebrandon1:compliance/5.0/m9-auditd-config
Open

CNF-23514: RAN Hardening (5.0) - Auditd Configuration (M9)#824
sebrandon1 wants to merge 1 commit into
openshift-kni:mainfrom
sebrandon1:compliance/5.0/m9-auditd-config

Conversation

@sebrandon1

@sebrandon1 sebrandon1 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds MachineConfig to deploy hardened auditd configuration on both master and worker nodes.

This addresses MEDIUM severity findings from the ACSC Essential Eight compliance profile — hardening the auditd service configuration to ensure proper audit logging settings (hostname identification, disk-full behavior, queue depth).

Remediation Group

Files

  • 75-auditd-configuration-master.yaml
  • 75-auditd-configuration-worker.yaml

Verification

After applying to a cluster, verify with:

oc debug node/<node> -- chroot /host cat /etc/audit/auditd.conf
# Expected: hardened auditd configuration

Jira

OCP 5.0 Verification (2026-06-22)

Cluster: cnfdt16 — OCP 5.0.0-0.nightly-2026-06-18-000016, RHCOS 10.2

Finding: Hardening still needed. Stock RHCOS 10 auditd.conf has several compliance-relevant differences.

Setting RHCOS 10 Default Hardened (M9) Impact
name_format NONE hostname Identify audit source in centralized logs
space_left 75 100 Earlier warning when disk space low
admin_space_left_action SUSPEND syslog Keep logging vs silently stop
disk_full_action SUSPEND syslog Keep logging vs silently stop
disk_error_action SUSPEND syslog Keep logging vs silently stop
q_depth 2000 400 Compliance-recommended queue depth
max_log_file 8 6 Compliance-recommended max log size (MB)

The critical change is the *_action settings: RHCOS 10 defaults to SUSPEND which silently stops audit logging when disk issues occur. The hardened config changes these to syslog so audit events are still captured via syslog.

@openshift-ci openshift-ci Bot requested review from cgoncalves and lack June 22, 2026 17:01
@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sebrandon1
Once this PR has been reviewed and has the lgtm label, please assign imiller0 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@sebrandon1, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 872dbdb5-69f3-4b04-9bbd-b8a2b9c1458c

📥 Commits

Reviewing files that changed from the base of the PR and between 78962de and aacafc0.

📒 Files selected for processing (2)
  • telco-ran/configuration/kube-compare-reference/informational/hardening/75-auditd-configuration-master.yaml
  • telco-ran/configuration/kube-compare-reference/informational/hardening/75-auditd-configuration-worker.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sebrandon1 sebrandon1 changed the title RAN Hardening (5.0) - Auditd Configuration (M9) CNF-23514: RAN Hardening (5.0) - Auditd Configuration (M9) Jun 23, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

@sebrandon1: This pull request references CNF-23514 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

Adds MachineConfig to deploy hardened auditd configuration on both master and worker nodes.

This addresses MEDIUM severity findings from the ACSC Essential Eight compliance profile — hardening the auditd service configuration to ensure proper audit logging settings (hostname identification, disk-full behavior, queue depth).

Remediation Group

Files

  • 75-auditd-configuration-master.yaml
  • 75-auditd-configuration-worker.yaml

Verification

After applying to a cluster, verify with:

oc debug node/<node> -- chroot /host cat /etc/audit/auditd.conf
# Expected: hardened auditd configuration

Jira

OCP 5.0 Verification (2026-06-22)

Cluster: cnfdt16 — OCP 5.0.0-0.nightly-2026-06-18-000016, RHCOS 10.2

Finding: Hardening still needed. Stock RHCOS 10 auditd.conf has several compliance-relevant differences.

Setting RHCOS 10 Default Hardened (M9) Impact
name_format NONE hostname Identify audit source in centralized logs
space_left 75 100 Earlier warning when disk space low
admin_space_left_action SUSPEND syslog Keep logging vs silently stop
disk_full_action SUSPEND syslog Keep logging vs silently stop
disk_error_action SUSPEND syslog Keep logging vs silently stop
q_depth 2000 400 Compliance-recommended queue depth
max_log_file 8 6 Compliance-recommended max log size (MB)

The critical change is the *_action settings: RHCOS 10 defaults to SUSPEND which silently stops audit logging when disk issues occur. The hardened config changes these to syslog so audit events are still captured via syslog.

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 openshift-eng/jira-lifecycle-plugin repository.

@sebrandon1 sebrandon1 force-pushed the compliance/5.0/m9-auditd-config branch 2 times, most recently from 65e3cd4 to 9e95925 Compare June 26, 2026 18:06
Compliance remediation for OCP 4.22+ (M9).
@sebrandon1 sebrandon1 force-pushed the compliance/5.0/m9-auditd-config branch from 9e95925 to aacafc0 Compare June 29, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants