Red HatNick PngAnnouncement
Streamlining Red Hat OpenShift support with the new support log gather operator
Summary
The must-gather log archive has been the standard method for providing Red Hat Support with a cluster snapshot, but the process requires cluster administrator credentials and manual steps. The new support log gather operator, now generally available with OpenShift 4.22 and later, introduces a MustGather custom resource that automates collection. Non-admin users can trigger log collection through tightly scoped RBAC, removing the administrator bottleneck. The operator includes built-in must-gather clean capabilities for data obfuscation, addressing compliance requirements that previously prevented some organizations from using the community tool. Future plans include rolling log collection to minimize the time between filing a support request and providing logs.
Context
The must-gather command has been the default method for collecting cluster log archives for Red Hat Support, but it requires cluster administrator credentials and manual steps. As OpenShift has grown, log archives can reach 10–100 GB, and compliance requirements have added complexity. The new operator aims to automate and secure this process.
Approach / What changed
The support log gather operator introduces a MustGather custom resource (CR) that can be deployed by standard OpenShift users or via GitOps to trigger log collection. It includes built-in must-gather clean capabilities for data obfuscation, supports custom images through ImageStream references, and uses tightly scoped RBAC to grant non-admin users the ability to trigger collections without privilege escalation.
Takeaways
The support log gather operator introduces a MustGather custom resource that can be deployed by standard OpenShift users or via GitOps, removing the need for cluster administrator credentials to trigger log collection.
The operator includes built-in must-gather clean capabilities for data obfuscation, allowing organizations with strict compliance policies to use a Red Hat-supported tool instead of the community-maintained version.
Custom must-gather images are managed through ImageStreams, which administrators control; the MustGather CR can only reference whitelisted images, reducing the risk of running unauthorized code.
FAQ
Can non-admin users trigger log collection with the operator?
Yes. The operator introduces a MustGather custom resource that any developer or automation tool with the appropriate RBAC role can deploy. The role is tightly scoped to only allow creating, getting, listing, and watching MustGather resources, without granting access to other cluster resources or the collected data itself.
How does the operator handle data obfuscation for compliance?
The operator includes must-gather clean capabilities directly, so organizations that are restricted by policy from using the community-maintained tool can now use a Red Hat-supported version. The MustGather CR includes an obfuscate.enabled field and can reference a custom ConfigMap with specific obfuscation rules.
How does the operator support custom must-gather images?
The operator uses ImageStreams to manage custom must-gather images. Cluster administrators create and control ImageStreams, and the MustGather CR references them by name. This means only images whitelisted by the administrator can be invoked, reducing the risk of running unexpected or illicit code.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.