mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
hosts/plover: update Vouch proxy settings and secrets permissions
This commit is contained in:
parent
ac134281f8
commit
0b253e0553
@ -6,9 +6,15 @@ let
|
|||||||
authDomain = config.services.kanidm.serverSettings.domain;
|
authDomain = config.services.kanidm.serverSettings.domain;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets = lib.getSecrets ../../secrets/secrets.yaml {
|
sops.secrets = let
|
||||||
"vouch-proxy/jwt/secret" = { };
|
vouchPermissions = rec {
|
||||||
"vouch-proxy/client/secret" = { };
|
owner = "vouch-proxy";
|
||||||
|
group = owner;
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
in lib.getSecrets ../../secrets/secrets.yaml {
|
||||||
|
"vouch-proxy/jwt/secret" = vouchPermissions;
|
||||||
|
"vouch-proxy/client/secret" = vouchPermissions;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.vouch-proxy = {
|
services.vouch-proxy = {
|
||||||
@ -30,7 +36,7 @@ in
|
|||||||
auth_url = "${authDomain}/ui/oauth2";
|
auth_url = "${authDomain}/ui/oauth2";
|
||||||
token_url = "${authDomain}/oauth2/token";
|
token_url = "${authDomain}/oauth2/token";
|
||||||
user_info_url = "${authDomain}/oauth2/openid/${client_id}/userinfo";
|
user_info_url = "${authDomain}/oauth2/openid/${client_id}/userinfo";
|
||||||
scopes = [ "login" "email" ];
|
scopes = [ "openid" "email" "profile" ];
|
||||||
callback_url = "https://${vouchDomain}/auth";
|
callback_url = "https://${vouchDomain}/auth";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user