fix(auth): 🔒️ Update redirect URIs for OAuth clients

Removes the public client configuration and updates the Grafana redirect URI to the correct domain.

Modifies OAuth scopes to include groups for improved permission management.
This commit is contained in:
Daniel Sy 2025-08-13 15:14:11 +02:00
parent 4425643af8
commit 61dddfa961
Signed by untrusted user: danielsy
GPG key ID: 1F39A8BBCD2EE3D3
2 changed files with 3 additions and 8 deletions

View file

@ -59,11 +59,6 @@ config:
enablePasswordDB: false enablePasswordDB: false
staticClients: staticClients:
- id: public-client
public: true
name: 'Public Client'
redirectURIs:
- 'https://localhost/oidc/callback'
- id: controller-argocd-dex - id: controller-argocd-dex
name: ArgoCD Client name: ArgoCD Client
redirectURIs: redirectURIs:
@ -71,6 +66,6 @@ config:
secret: "{{`{{ .Env.OIDC_DEX_ARGO_CLIENT_SECRET }}`}}" secret: "{{`{{ .Env.OIDC_DEX_ARGO_CLIENT_SECRET }}`}}"
- id: grafana - id: grafana
redirectURIs: redirectURIs:
- "https://localhost/login/generic_oauth" - "https://grafana.observability.t09.de/login/generic_oauth"
name: "Grafana" name: "Grafana"
secret: "thisisasecret" secret: "thisisasecret"

View file

@ -52,9 +52,9 @@ spec:
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 scopes: openid email profile offline_access groups
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://localhost/login/generic_oauth redirect_uri: https://grafana.observability.t09.de/login/generic_oauth
# role_attribute_path: "" # role_attribute_path: ""