FIX(headlamp): restore oidc config for k3s
- Restore OIDC configuration for K3s cluster - Fix authentication settings
This commit is contained in:
27
headlamp/external-secret.yaml
Normal file
27
headlamp/external-secret.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: headlamp-oidc
|
||||||
|
namespace: headlamp
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: vault-backend
|
||||||
|
target:
|
||||||
|
name: headlamp-oidc
|
||||||
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
|
engineVersion: v2
|
||||||
|
data:
|
||||||
|
OIDC_CLIENT_ID: headlamp
|
||||||
|
OIDC_CLIENT_SECRET: "{{ .clientSecret }}"
|
||||||
|
OIDC_ISSUER_URL: https://auth0213.kro.kr
|
||||||
|
OIDC_SCOPES: "openid profile email groups"
|
||||||
|
OIDC_VALIDATOR_CLIENT_ID: headlamp
|
||||||
|
OIDC_VALIDATOR_ISSUER_URL: https://auth0213.kro.kr
|
||||||
|
data:
|
||||||
|
- secretKey: clientSecret
|
||||||
|
remoteRef:
|
||||||
|
key: cluster-infrastructure/authelia
|
||||||
|
property: HEADLAMP_CLIENT_SECRET
|
||||||
@@ -33,3 +33,9 @@ ingress:
|
|||||||
# Config
|
# Config
|
||||||
config:
|
config:
|
||||||
baseURL: ""
|
baseURL: ""
|
||||||
|
oidc:
|
||||||
|
secret:
|
||||||
|
create: false
|
||||||
|
externalSecret:
|
||||||
|
enabled: true
|
||||||
|
name: headlamp-oidc
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: headlamp
|
namespace: headlamp
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: authelia-authelia-auth@kubernetescrd
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
- external-secret.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user