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.
33 lines
938 B
YAML
33 lines
938 B
YAML
# Scoped operator access for homarr-admins: the homarr Deployment + app
|
|
# secrets only. homarr-oidc, auth-oidc-secret, db-encryption stay excluded
|
|
# (security-managed, not app config). Inert until kube-apiserver's OIDC
|
|
# wiring lands.
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: homarr-operator
|
|
namespace: dashboard
|
|
rules:
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments"]
|
|
resourceNames: ["homarr"]
|
|
verbs: ["get", "list", "watch", "update", "patch"]
|
|
- apiGroups: [""]
|
|
resources: ["secrets"]
|
|
resourceNames: ["homarr-secrets"]
|
|
verbs: ["get", "list", "watch", "update", "patch"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: homarr-admins-binding
|
|
namespace: dashboard
|
|
subjects:
|
|
- kind: Group
|
|
name: "oidc:homarr-admins"
|
|
apiGroup: rbac.authorization.k8s.io
|
|
roleRef:
|
|
kind: Role
|
|
name: homarr-operator
|
|
apiGroup: rbac.authorization.k8s.io
|