refactor(auth): 🔧 Update authentication configuration to use strings

Refactors the authentication settings in the Grafana configuration to use string values for boolean flags and nested properties.

This change enhances consistency and may improve compatibility with other components expecting string representations.
This commit is contained in:
Daniel Sy 2025-08-13 14:28:40 +02:00
parent a82d027f81
commit a344242bd5
Signed by untrusted user: danielsy
GPG key ID: 1F39A8BBCD2EE3D3

View file

@ -41,18 +41,18 @@ spec:
secretName: grafana-net-tls secretName: grafana-net-tls
config: config:
auth: auth:
disable_login: true disable_login: "true"
disable_login_form: true disable_login_form: "true"
generic_oauth: auth.generic_oauth:
enabled: true enabled: "true"
name: Forgejo name: Forgejo
allow_sign_up: false allow_sign_up: "false"
use_refresh_token: true use_refresh_token: "true"
client_id: grafana client_id: grafana
client_secret: "thisisasecret" # $__file{/etc/secrets/auth_generic_oauth/client_secret} client_secret: "thisisasecret" # $__file{/etc/secrets/auth_generic_oauth/client_secret}
scopes: openid email profile offline_access roles scopes: openid email profile offline_access roles
auth_url: https://dex.observability.t09.de/auth auth_url: https://dex.observability.t09.de/auth
token_url: https://dex.observability.t09.de/token token_url: https://dex.observability.t09.de/token
api_url: https://dex.observability.t09.de/userinfo api_url: https://dex.observability.t09.de/userinfo
redirect_uri: https://grafana.observability.t09.de/login/generic_oauth redirect_uri: https://grafana.observability.t09.de/login/generic_oauth
role_attribute_path: "contains(groups[*], 'admin') && 'Admin' || contains(groups[*], 'editor') && 'Editor' || 'Viewer'" role_attribute_path: "contains(groups[*], 'admin') && 'Admin' || contains(groups[*], 'editor') && 'Editor' || 'Viewer'"