Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(rbac): grant control-api llmhooks + llm-hooks secret access (install-hook 403)
Andy Paviac1401106c435
diff --git a/deploy/base/cluster-wide/clusterroles.yaml b/deploy/base/cluster-wide/clusterroles.yamlindex bcb19f185..bc823321a 100644--- a/deploy/base/cluster-wide/clusterroles.yaml+++ b/deploy/base/cluster-wide/clusterroles.yaml@@ -42,6 +42,10 @@ rules:- contexts- communicationchannels- mcpservers+ # llmhooks: the install-hook saga creates/deletes LlmHook CRs in the llm-hooks+ # namespace, and the admin resources router lists/gets/deletes them (guardrails+ # spec §8.5). Secret access in llm-hooks is a namespace Role (deploy/base/llm-hooks).+ - llmhooksverbs:- get- listdiff --git a/deploy/base/llm-hooks/rbac.yaml b/deploy/base/llm-hooks/rbac.yamlindex d6c0a6a2e..8da0b043c 100644--- a/deploy/base/llm-hooks/rbac.yaml+++ b/deploy/base/llm-hooks/rbac.yaml@@ -56,3 +56,33 @@ subjects:- kind: ServiceAccountname: host-context-controllernamespace: control-plane+---+# --- Role: control-api (llm-hooks namespace) ---+# The install-hook saga (control-api) mints the hook's credential Secret in+# llm-hooks and deletes it on rollback/uninstall. LlmHook CR create/delete is+# granted cluster-wide (deploy/base/cluster-wide/clusterroles.yaml); Secret+# access is namespace-scoped here, mirroring control-api's mcp-host/control-plane+# secret Roles.+apiVersion: rbac.authorization.k8s.io/v1+kind: Role+metadata:+ name: control-api-secrets+ namespace: llm-hooks+rules:+ - apiGroups: [""]+ resources: ["secrets"]+ verbs: ["get", "list", "create", "update", "delete"]+---+apiVersion: rbac.authorization.k8s.io/v1+kind: RoleBinding+metadata:+ name: control-api-secrets+ namespace: llm-hooks+roleRef:+ apiGroup: rbac.authorization.k8s.io+ kind: Role+ name: control-api-secrets+subjects:+ - kind: ServiceAccount+ name: control-api+ namespace: control-plane