Files
homelab/k8s/infra/rbac/temporal-operator-role.yaml
Story Crater Bot 89f01b6f2e feat: add homelab-wide Authentik RBAC model and k8s OIDC auth wiring
Adds permissions claim + per-service admin groups in Authentik, scoped
Role/RoleBinding per service, public PKCE kubernetes OAuth2 client, and
kube-apiserver OIDC extraArgs. Also fixes paperless OIDC signup permissions
via adapter override and adds CoreDNS rewrite for authentik.riotpiao.com.
2026-08-25 15:03:44 -07:00

32 lines
939 B
YAML

# Scoped operator access for temporal-admins: temporal-worker + its dynamic
# config only. temporal-db-* (CNPG-managed) and webhook-server-cert stay
# excluded. Inert until kube-apiserver's OIDC wiring lands.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: temporal-operator
namespace: temporal
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
resourceNames: ["temporal-worker"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["temporal-dynamic-config"]
verbs: ["get", "list", "watch", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: temporal-admins-binding
namespace: temporal
subjects:
- kind: Group
name: "oidc:temporal-admins"
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: temporal-operator
apiGroup: rbac.authorization.k8s.io