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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jwt:
claimMappings:
username:
expression: claims.email
groups:
expression: dyn(claims.groups).map(g, "teuto.net:" + g)
claimValidationRules:
- expression: (has(claims.email_verified) && claims.email_verified) || !has(claims.email_verified)
message: email must be verified
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- include "t8s-cluster.helm.resourceIntoCluster" (dict "name" "teuto-rbac" "resource" (include "t8s-cluster.rbac.teuto" (dict)) "context" $ "additionalLabels" (dict "app.kubernetes.io/component" "rbac")) | nindent 0 -}}

{{- define "t8s-cluster.rbac.teuto" -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: teuto-staff
Comment thread
cwrau marked this conversation as resolved.
subjects:
- kind: Group
name: teuto.net:staff
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
Comment thread
cwrau marked this conversation as resolved.
{{- end -}}