Blog

What WatchLog Reads From Kubernetes, and What It Leaves Alone

Separate routine Kubernetes monitoring, on-demand pod logs and integration credentials before you approve a WatchLog installation.

Before installing a Kubernetes monitoring agent, ask three questions: what does it read routinely, what can it read only when asked, and what needs an extra grant? The WatchLog v1.7.4 agent chart provides a concrete example. Check the rendered manifest for the version and options you actually deploy.

Routine reads: inventory, events and certificate endpoints

The cluster agent reads workload metadata and events to show what is running and what changed. The released chart also grants get, list and watch on Ingresses to discover TLS hostnames. WatchLog checks the certificate the endpoint presents for those names; it does not fetch the Kubernetes Secret named in the Ingress TLS block. The permission is on Ingress objects, not individual fields. The agent filters the data it reports.

On-demand reads: a container’s recent log lines

With Logs on demand enabled, the chart grants get on pods/log. A request for logs pulls recent lines from the Kubernetes API. WatchLog masks common credential patterns and does not store log lines, but pattern-based masking can miss sensitive content. Review lines before sharing them. An organization can restrict who can request them; disabling the feature in the agent chart removes that log permission, rather than just hiding the control.

Explicit grants: a named credential for an integration

Routine monitoring does not grant access to Secret objects. If you choose a Secret for an application integration, the separate integrations collector can read that named credential after you explicitly grant its ServiceAccount access. In this mode WatchLog stores the reference, not the credential value. A password entered into WatchLog is a different option with encrypted storage. Review the collector’s grant separately from the monitoring agent’s own installation credentials.

Check operational permissions in your rendered manifest

The cluster agent does not need to mutate the workloads it monitors. It does have operational permissions: creating TokenReviews for node agent authentication and using a Lease in its own namespace for leader election. Review those separately from permissions on your application resources. Before deploying, check the exact rules bound to each ServiceAccount, whether pod logs are enabled, and whether you granted any optional credential reads.

See the v1.7.4 role and role bindings and Logs on demand settings. For an example of a previous-run log read, see the container troubleshooting guide.

See your own servers in five minutes.

Free on WatchLog Cloud for 5 servers or nodes, or run it yourself, open source.