MEDIUM Mixed M30: OAuth Configuration P3

Pending Compare Branch Scanned: 2026-08-12

Overview

Configures OpenShift OAuth server token policies to enforce session timeouts and token expiration. Reduces the risk of session hijacking by limiting how long OAuth tokens remain valid.

Profile: NIST 800-53 Moderate (ocp4-moderate)

Status: Partial — oauth-or-oauthclient-inactivity-timeout passes with the MachineConfig. oauth-or-oauthclient-token-maxage is a platform-level OAuth configuration that requires an OAuth CR patch, not a MachineConfig.

Compliance Checks

Check Description Status
oauth-or-oauthclient-inactivity-timeout Set OAuth client inactivity timeout PASS
oauth-or-oauthclient-token-maxage Set OAuth access token maximum age FAIL (platform config)

Remediation for token-maxage

This check requires patching the OAuth cluster resource directly:

oc patch oauth cluster --type merge -p '{"spec":{"tokenConfig":{"accessTokenMaxAgeSeconds":28800}}}'

This is a platform-level change, not deployable via MachineConfig.

Verification

oc get oauth cluster -o jsonpath='{.spec.tokenConfig}'
Legend
Remediation Status
✅ PASS (vanilla) Passes on unhardened RHCOS; no remediation needed
🟢 Verified Remediation tested on live cluster, confirmed PASS
🔵 In Progress Remediation actively being developed or tested
🟡 Pending Not yet started; needs remediation work
🟠 Partial Some checks pass or remediation not fully validated
⚪ On Hold Work paused (blocked or deprioritized)
Upstream Verdict
🔼 Candidate Suitable for upstreaming to ComplianceAsCode
🟣 PR Open Upstream PR filed
🎯 RAN Only Only applies to RAN deployments
⚙️ Platform Requires OCP platform-level configuration
✅ Pass Already passing upstream
📍 Site Site/deployment-specific configuration
— N/A Not applicable for upstreaming
Platform
RHCOS Node-level checks (MachineConfig)
OCP Platform-level checks (API/CR)
Mixed Both RHCOS and OCP checks
Severity
HIGH
MEDIUM
LOW
MANUAL

Keyboard Shortcuts

Navigation
j / Next row
k / Previous row
Enter Open selected / Expand details
Esc Clear selection / Close modal
Actions
/ Focus search
d Toggle dark mode
? Show this help
g h Go to home
Filters
1 Show all
2 Pending only
3 In Progress only
4 Complete only