mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
fix(dex): remove hard coded values
This commit is contained in:
16
system/monitoring-system/templates/secret.yaml
Normal file
16
system/monitoring-system/templates/secret.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: grafana-secrets
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: vault
|
||||
target:
|
||||
name: grafana-secrets
|
||||
data:
|
||||
- secretKey: GRAFANA_SSO_CLIENT_SECRET
|
||||
remoteRef:
|
||||
key: /dex/grafana
|
||||
property: client_secret
|
||||
@@ -18,18 +18,16 @@ kube-prometheus-stack:
|
||||
- name: Loki
|
||||
type: loki
|
||||
url: http://loki.loki:3100
|
||||
envFromSecret: grafana-secrets
|
||||
grafana.ini:
|
||||
server:
|
||||
root_url: https://grafana.khuedoan.com
|
||||
# TODO disable basic auth
|
||||
# auth.basic:
|
||||
# disable_login_form: true
|
||||
auth.generic_oauth:
|
||||
enabled: true
|
||||
allow_sign_up: true
|
||||
name: Dex
|
||||
client_id: grafana-sso
|
||||
client_secret: klZ0sU1EXA5il68lwCOW9kAjCoFFMVINdSuvG951B3Pr
|
||||
client_secret: $__env{GRAFANA_SSO_CLIENT_SECRET}
|
||||
scopes: openid profile email groups
|
||||
auth_url: https://dex.khuedoan.com/auth
|
||||
token_url: https://dex.khuedoan.com/token
|
||||
|
||||
Reference in New Issue
Block a user