Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions infrastructure/configs/access/claude-readonly-monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Lets the AI read metrics, alert rules and alerts: GET through the API server's service proxy to VMSingle, vmalert
# and Alertmanager only. `get` on services/proxy allows GET requests only, so nothing can be written or silenced.
# Names carry the port because the proxy URL does (/services/vmsingle-vm:8428/proxy/...).
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: claude-readonly-monitoring
namespace: monitoring
rules:
- apiGroups: [""]
resources: [services/proxy]
resourceNames:
- vmsingle-vm:8428
- vmalert-vm:8080
- vmalertmanager-vm:9093
verbs: [get]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: claude-readonly-monitoring
namespace: monitoring
subjects:
- kind: ServiceAccount
name: claude-readonly
namespace: access
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: claude-readonly-monitoring
1 change: 1 addition & 0 deletions infrastructure/configs/access/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ labels:
resources:
- claude-readonly.yaml
- claude-readonly-extra.yaml
- claude-readonly-monitoring.yaml
Loading