OpenShift turns must-gather into a delegated, policy-controlled API
The generally available support log gather operator lets non-admin users and GitOps workflows request sanitized support bundles without exposing the collected data.
Red Hat has made its support log gather operator generally available for OpenShift 4.22, OpenShift 5 and future releases. The operator recasts the familiar oc adm must-gather workflow as an API that developers and automation can invoke under narrowly scoped permissions.
That is more than a convenience feature. Red Hat says must-gather archives can reach 10–100 GB, while the traditional workflow requires a cluster administrator to launch and monitor collection, optionally sanitize the result, repackage it and upload it to a support case.
What changed
Installing the operator adds a MustGather custom resource. A standard OpenShift user or a GitOps workflow can create that resource to request a collection job without receiving cluster-administrator credentials.
Red Hat’s example RBAC role grants only create, get, list and watch access to the must-gather resource. The article says a user holding only that role cannot access other cluster resources or read the information collected by the job. This separates permission to trigger diagnostics from permission to inspect potentially sensitive output.
The operator also incorporates the community-developed must-gather-clean capability. A custom resource can enable obfuscation, reference a custom sanitization configuration and send the resulting bundle toward an existing support case. Red Hat positions this integrated form as a supported route for organizations whose policies prevent them from adopting the community tool directly.
Who should care
Platform teams with many application developers and few cluster administrators have the clearest use case. Delegating the trigger can remove an administrator from the critical path during an incident while keeping the collected archive and privileged cluster access out of the requester’s hands.
The operator also supports product-specific must-gather images through administrator-managed ImageStreams. Users can request only images that an administrator has exposed in the operator namespace, limiting the chance that a diagnostic request launches unapproved code with elevated access.
What to do
OpenShift 4.22 and 5 administrators can evaluate the operator from Red Hat’s catalog and documentation, then define a minimal role for the teams or automation that should be allowed to request collections. Before enabling upload or obfuscation, they should test the generated bundle and custom rules against their own data-handling requirements.
Red Hat says rolling, scheduled log collection is planned rather than present in this first release. Teams should therefore treat today’s operator as an on-demand collection API, not as a continuous diagnostic archive.
sources
- Streamlining Red Hat OpenShift support with the new support log gather operatordevelopers.redhat.com
comments · 0