Platform integrity

From RedHatProductSecurity/prodsec-skills · View interactive version

Platform integrity is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Validate Kubernetes platform configuration including boot parameters, hugepages, kernel state, sysctl settings, OpenShift lifecycle, and service mesh compliance. Use when auditing cluster node configuration or preparing for platform upgrades.

How to use this skill

Skill file

Platform Integrity

Validate that the underlying platform configuration meets operational and security requirements. These checks verify node-level settings that affect all workloads on the cluster.

Boot Parameters

Boot parameters must be configured through MachineConfig or the Performance Addon Operator — not set manually on nodes. Manual changes are lost on reboot and create configuration drift between nodes.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

OpenShift Note: Use MachineConfig or PerformanceProfile CRs to manage boot parameters declaratively.

Sysctl Configuration

Sysctl kernel parameters must match values defined in MachineConfig. Any sysctl values that differ from the MachineConfig-declared values indicate manual node modification or configuration drift.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Kernel Taint

Node kernels must not be tainted. A tainted kernel indicates non-standard modules, out-of-tree drivers, or other modifications that may affect stability and supportability.

Required for: all profiles (mandatory)

Hugepages Configuration

Configuration Method

Hugepage settings must be configured via MachineConfig — not manually on nodes. Manual hugepage allocation is lost on reboot.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Hugepage Size Restrictions

Pods using hugepages must use a single size:

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Required for: Far-Edge (mandatory), all others (optional)

resources:
  requests:
    hugepages-1Gi: 2Gi
    memory: 256Mi
  limits:
    hugepages-1Gi: 2Gi
    memory: 256Mi

Hyperthreading

Baremetal worker nodes must have hyperthreading enabled. Hyperthreading provides additional logical CPUs that improve throughput for many workload types.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

OpenShift Lifecycle

Cluster Version

The OpenShift version must not be end-of-life. Running unsupported versions means no security patches, bug fixes, or Red Hat support.

Required for: all profiles (mandatory)

Node OS Compatibility

The node operating system must be compatible with the deployed OpenShift version. Mismatched OS and platform versions can cause unpredictable behavior.

Required for: all profiles (mandatory)

Cluster Operator Health

All cluster operators must be in Available state. Degraded or unavailable operators indicate platform issues that can affect workload reliability.

Required for: all profiles (mandatory)

Service Mesh

If the istio-system namespace exists on the cluster, all workload pods must use Istio sidecar proxies. Pods without sidecars in a service mesh environment bypass traffic management, security policies, and observability features.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Implementation Checklist

Certsuite Test Mapping

| Guidance | Certsuite Test ID | Profiles |

|----------|-------------------|----------|

| Boot params via MachineConfig | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

| Sysctl matches MachineConfig | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

| No tainted kernels | CODE0 | All profiles: mandatory |

| Hugepages via MachineConfig | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

| 1Gi hugepages only | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

| 2Mi hugepages only | CODE0 | Far-Edge: mandatory, all others: optional |

| Hyperthreading enabled | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

| OCP not end-of-life | CODE0 | All profiles: mandatory |

| Node OS compatible | CODE0 | All profiles: mandatory |

| Cluster operators healthy | CODE0 | All profiles: mandatory |

| Istio sidecars present | CODE0 | Telco/Far-Edge/Extended: mandatory, Non-Telco: optional |

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.