Skip to content

Apply RBAC permissions for SRE agent #36

@jwaldrip

Description

@jwaldrip

Summary

The SRE agent needs cluster access to diagnose and fix production issues, but RBAC permissions are not currently applied.

Current State

Agent is running as system:serviceaccount:claude:default with no cluster permissions.

Required Action

Apply RBAC configuration that already exists in the codebase:

kubectl apply -f kubernetes-agent-rbac.yaml

Or via Terraform:

cd terraform
terraform apply -target=module.agent

RBAC Configuration

The RBAC config grants read-only access for troubleshooting:

  • Pods, deployments, services (get, list, watch)
  • Logs and events
  • CNPG/Redis/MinIO operator resources
  • Network policies and ingresses
  • Secrets (read-only for connection strings)

No destructive permissions granted.

Files

  • kubernetes-agent-rbac.yaml - Manual application
  • terraform/modules/agent/main.tf - Terraform module

Priority

HIGH - Blocks agent from diagnosing production issues

Related Issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions