Skip to content

Commit 967e82f

Browse files
Diaoulclaude
andcommitted
feat(flux-operator): enable anonymous auth for web UI with flux-admin role
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 6b2b082 commit 967e82f

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: flux-admin
6+
subjects:
7+
- kind: Group
8+
name: flux-admin
9+
apiGroup: rbac.authorization.k8s.io
10+
roleRef:
11+
kind: ClusterRole
12+
name: flux-web-admin
13+
apiGroup: rbac.authorization.k8s.io

kubernetes/apps/flux-system/flux-operator/app/helmrelease.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ spec:
1212
values:
1313
serviceMonitor:
1414
create: true
15+
web:
16+
config:
17+
authentication:
18+
type: Anonymous
19+
anonymous:
20+
username: flux
21+
groups:
22+
- flux-admin

kubernetes/apps/flux-system/flux-operator/app/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
6+
- ./clusterrolebinding.yaml
67
- ./helmrelease.yaml
78
- ./ocirepository.yaml

0 commit comments

Comments
 (0)