This commit is contained in:
hackens server 2022-06-11 21:12:42 +02:00
parent 9680562642
commit 936f613834
7 changed files with 35 additions and 3 deletions

View file

@ -10,6 +10,7 @@
./hardware-configuration.nix
./physical.nix
../../profiles/core-hackens
../../secrets
./wiki
./webpass.nix
./mosquitto.nix

View file

@ -41,7 +41,7 @@ in
$conf['htmlmail'] = 0; // On envoie les mails en plain text
$conf['authtype'] = 'oauth';
$conf['plugin']['oauthkeycloak']['key'] = 'wiki';
$conf['plugin']['oauthkeycloak']['secret'] = '';
$conf['plugin']['oauthkeycloak']['secret'] = file('${config.age.secrets.wikiOpenID.path}', FILE_IGNORE_NEW_LINES)[0];
$conf['plugin']['oauthkeycloak']['openidurl'] = 'https://auth.rz.ens.wtf/auth/realms/hackENS/.well-known/openid-configuration/';
'';

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -1,5 +1,5 @@
{ ... }:
{
imports = [ <agenix/modules/age.nix> ];
age.secrets."wikiOpenID".file = ./wiki-openID.age
age.secrets."wikiOpenID".file = ./wiki-openID.age;
}

View file

@ -1,6 +1,6 @@
let
lib = (import <nixpkgs> {}).lib;
readPubkeys = user: builtins.filter (k: k != "") (lib.splitString "\n" (builtins.readFile (./pubkeys + "/${user}.keys")));
readPubkeys = user: builtins.filter (k: k != "") (lib.splitString "\n" (builtins.readFile (../pubkeys + "/${user}.keys")));
in
{
"wiki-openID.age".publicKeys = (readPubkeys "sinavir") ++ (readPubkeys "hackens-host") ++ (readPubkeys "raito") ++ (readPubkeys "gdd") ++ (readPubkeys "backslash");

31
secrets/wiki-openID.age Normal file
View file

@ -0,0 +1,31 @@
age-encryption.org/v1
-> ssh-ed25519 JGx7Ng krR1IYLPMfF9fR7P6ECgMy2vec2lHss0XcHuHWcZCBo
MDFLnB7DgNdlJjOxhu0Qreb17ejcZIBMnXGs0BLUN+E
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