Is read-only access a complete security boundary for infrastructure agents?
An agent can be unable to mutate a cluster and still expose sensitive information or be manipulated by untrusted operational data.
No. Read-only Kubernetes permissions limit direct damage, but an agent can still expose data or act on untrusted text.
An agent with broad read access may still see application logs, environment configuration, workload metadata, or other information that should not be sent to an external model. It may also consume attacker-controlled text from logs and annotations.
Separate authority from data exposure
There are at least two different questions:
- What actions can the agent perform?
- What information can the agent retrieve and transmit?
Kubernetes role-based access control (RBAC) helps with both, but a broad read-only role can still expose far more context than an investigation needs. My view: restrict namespaces, allow only listed resources, exclude Secrets, use short-lived identities, and control what is sent to the model.
Treat operational evidence as untrusted
Logs are data, not instructions. The same is true for annotations, issue descriptions, commit messages, and tool responses. An attacker who can influence those sources may try to make the agent call a tool, reveal context, or abandon its original task.
Prompt filtering can help, but authorization cannot live in a prompt. The system should remain safe even when the model misunderstands hostile content.
Test the boundary
My view: make security claims testable. Place a fake secret in a controlled source, run an investigation, and verify that the secret never appears in model requests, logs, reports, or final output.
The same test can inspect Kubernetes audit events for forbidden operations or cross-namespace access. These are deterministic observations. They do not require another model to decide whether a violation occurred.