From 705c6c0b3b40a5a10228ff895b648e4da2d8edf0 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 24 Oct 2025 14:13:59 +0530 Subject: [PATCH] feat(monitoring): update OAuth config for improved security settings --- nixos/mirai/services/monitoring.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nixos/mirai/services/monitoring.nix b/nixos/mirai/services/monitoring.nix index 990ab7b5..2f2e8637 100644 --- a/nixos/mirai/services/monitoring.nix +++ b/nixos/mirai/services/monitoring.nix @@ -153,6 +153,7 @@ client_id = "grafana"; client_secret = "$__file{${config.sops.secrets.oauth-client-secret-grafana.path}}"; scopes = "openid profile email groups"; + empty_scopes = false; auth_url = "https://auth.darksailor.dev/api/oidc/authorization"; token_url = "https://auth.darksailor.dev/api/oidc/token"; api_url = "https://auth.darksailor.dev/api/oidc/userinfo"; @@ -162,9 +163,9 @@ use_pkce = true; auto_login = true; allow_sign_up = true; - # use_refresh_token = true; - # id_token_attribute_name = "id_token"; - # role_attribute_path = "groups"; + role_attribute_path = ""; + use_refresh_token = false; + id_token_attribute_name = ""; }; }; @@ -237,7 +238,8 @@ response_types = ["code"]; grant_types = ["authorization_code"]; userinfo_signed_response_alg = "none"; - access_token_signed_response_alg = "none"; + id_token_signed_response_alg = "RS256"; + access_token_signed_response_alg = "RS256"; token_endpoint_auth_method = "client_secret_basic"; } ];