feature/sso-hardening #9

Merged
bstein merged 685 commits from feature/sso-hardening into main 2026-01-13 20:23:26 +00:00
2 changed files with 30 additions and 0 deletions
Showing only changes of commit 565fad4522 - Show all commits

View File

@ -4,6 +4,7 @@ kind: Kustomization
namespace: nextcloud namespace: nextcloud
resources: resources:
- cronjob.yaml - cronjob.yaml
- portal-rbac.yaml
configMapGenerator: configMapGenerator:
- name: nextcloud-mail-sync-script - name: nextcloud-mail-sync-script
files: files:

View File

@ -0,0 +1,29 @@
# services/nextcloud-mail-sync/portal-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: bstein-dev-home-nextcloud-mail-sync
rules:
- apiGroups: ["batch"]
resources: ["cronjobs"]
verbs: ["get"]
resourceNames: ["nextcloud-mail-sync"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["create", "get", "list", "watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: bstein-dev-home-nextcloud-mail-sync
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: bstein-dev-home-nextcloud-mail-sync
subjects:
- kind: ServiceAccount
name: bstein-dev-home
namespace: bstein-dev-home