Add grafana oauth2 config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-11-18 19:13:59 -05:00
parent e3395593de
commit afc6168130
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
2 changed files with 41 additions and 0 deletions

View File

@ -22,6 +22,31 @@ spec:
- name: grafana
image: grafana/grafana:latest
imagePullPolicy: IfNotPresent
env:
- name: GF_AUTH_GENERIC_OAUTH_ENABLED
value: "true"
- name: GF_AUTH_GENERIC_OAUTH_NAME
value: "Authentik"
- name: GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP
value: "true"
- name: GF_AUTH_GENERIC_OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: grafana-oauth
key: OAUTH_CLIENT_ID
- name: GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: grafana-oauth
key: OAUTH_CLIENT_SECRET
- name: GF_AUTH_GENERIC_OAUTH_AUTH_URL
value: "https://auth.clortox.com/application/o/authorize/"
- name: GF_AUTH_GENERIC_OAUTH_TOKEN_URL
value: "https://auth.clortox.com/application/o/token/"
- name: GF_AUTH_GENERIC_OAUTH_SCOPES
value: "user:email"
- name: GF_AUTH_GENERIC_OAUTH_API_URL
value: "https://auth.clortox.com/application/o/userinfo/"
ports:
- containerPort: 3000
name: http-grafana

View File

@ -0,0 +1,16 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: grafana-oauth
namespace: grafana-ns
spec:
encryptedData:
OAUTH_CLIENT_ID: AgC4zLWPZrbLn1o6Ehec1O6T6SlxT8OayWxwrsbGZFVBiZj2RBRNx0Rm76+MfuzUX5bgfbk8YQyy+Wi+eR/NzXmqMV+KWy/eZmkM0olGtvPefwH08WoNS5mvHu7C1RRW6CVubJTHmbyhFxiDcHVS7h2XM3STfJ7XjMZZNzYYmNh+EscDVG8IRB4JyvEcRqkIn5nfjDKk2D8Po5BEznh9XzkPAqIfBbNgi1Y/ofk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