feat(sso): added injection of the client secret to grafana
This commit is contained in:
parent
cbc8752fa1
commit
9d2c3f7de9
1 changed files with 13 additions and 1 deletions
|
|
@ -39,6 +39,18 @@ spec:
|
|||
- hosts:
|
||||
- grafana.observability.t09.de
|
||||
secretName: grafana-net-tls
|
||||
deployment:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: grafana
|
||||
env:
|
||||
- name: OAUTH_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: clientSecret
|
||||
name: dex-grafana-client
|
||||
config:
|
||||
log.console:
|
||||
level: debug
|
||||
|
|
@ -53,7 +65,7 @@ spec:
|
|||
allow_sign_up: "true"
|
||||
use_refresh_token: "true"
|
||||
client_id: grafana
|
||||
client_secret: "grafana123" # $__file{/etc/secrets/auth_generic_oauth/client_secret}
|
||||
client_secret: $__env{OAUTH_CLIENT_SECRET}
|
||||
scopes: openid email profile offline_access groups
|
||||
auth_url: https://dex.observability.t09.de/auth
|
||||
token_url: https://dex.observability.t09.de/token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue