Upgrade Grafana to 12.4.0 and add auth.jwt config for useKubeAuth
This commit is contained in:
parent
32fd6ffd54
commit
e89d48c2a5
1 changed files with 13 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
dashboards: "grafana"
|
dashboards: "grafana"
|
||||||
spec:
|
spec:
|
||||||
|
version: "12.4.0"
|
||||||
client:
|
client:
|
||||||
useKubeAuth: true
|
useKubeAuth: true
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
@ -39,6 +40,18 @@ spec:
|
||||||
auth:
|
auth:
|
||||||
disable_login: "true"
|
disable_login: "true"
|
||||||
disable_login_form: "true"
|
disable_login_form: "true"
|
||||||
|
auth.jwt:
|
||||||
|
enabled: "true"
|
||||||
|
header_name: Authorization
|
||||||
|
username_claim: sub
|
||||||
|
email_claim: sub
|
||||||
|
auto_sign_up: "true"
|
||||||
|
role_attribute_strict: "true"
|
||||||
|
role_attribute_path: "contains(sub, 'system:serviceaccount:observability:grafana-operator') && 'GrafanaAdmin' || 'None'"
|
||||||
|
jwk_set_url: "https://kubernetes.default.svc:443/openid/v1/jwks"
|
||||||
|
jwk_set_bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||||
|
tls_client_ca: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
|
expect_claims: '{"aud": ["operator.grafana.com"]}'
|
||||||
auth.generic_oauth:
|
auth.generic_oauth:
|
||||||
enabled: "true"
|
enabled: "true"
|
||||||
name: Forgejo
|
name: Forgejo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue