Elastic prototypes fleet-wide investigation of OpenShift compliance failures
The example separates current compliance status from scan history and requires approval for rescans and remediation patches.
On November 19, Elastic Security Labs published a proof of concept that collects OpenShift Compliance Operator results in Elasticsearch and uses Elastic Agent Builder to investigate failed checks. It addresses a concrete problem for teams running multiple clusters: the operator stores results on each cluster, so establishing which checks failed across a fleet and when they started failing can require checking clusters one by one. Elastic released the example integration, manifests and workflow definitions in its companion repository.
What changed
A collector on each cluster polls the Compliance Operator every 60 seconds for scans, individual check results and available remediations. Elasticsearch keeps the raw records as a time series and uses continuous transforms to maintain separate views of the latest state. That split lets the agent answer a current-state question such as which clusters are failing a check without losing the history needed to investigate when it began failing. The example also uses Kubernetes audit logs to help trace relevant configuration changes.
The prototype handles some checks marked manual by expressing them in Common Expression Language (CEL) and attaching them to a tailored scan profile. A scheduled workflow writes those evaluated results back to the relevant rules. That background annotation is distinct from operator-triggered rescans and remediation patches, which Elastic says pause for human approval. An agent’s explanation is a lead to verify against scan results and audit records, not a substitute for those records.
Who should try it
The pattern is most relevant to platform and compliance teams already running the OpenShift Compliance Operator and using Elastic for fleet visibility. Elastic reports testing the example on OpenShift Local 4.22 with Compliance Operator 1.10.0 and Elastic Serverless. It explicitly says Elastic Support does not support the custom integration. For self-managed Elastic Stack or Elastic Cloud Hosted, the post lists version 9.5 or later and an Enterprise subscription as prerequisites for Agent Builder and Workflows; Serverless availability depends on the project tier.
A practical evaluation would start with collection and read-only investigation in a non-production cluster: compare the centralized view with the operator’s own results, and see whether the retained history helps explain a known configuration change. Evaluate the write workflows separately before giving them access to a production fleet.
sources
comments · 0