feat(openbao): Enable UI and setup oidc #480

Merged
thubrecht merged 1 commit from openbao-setup into main 2025-06-11 19:56:05 +02:00
2 changed files with 23 additions and 0 deletions

View file

@ -162,6 +162,23 @@ in
];
};
dgn_openbao = {
displayName = "OpenBao [Vault]";
originLanding = "https://vault.dgnum.eu";
originUrl = [ "https://vault.dgnum.eu/ui/vault/auth/kanidm/oidc/callback" ];
preferShortUsername = true;
scopeMaps.grp_active = [
"openid"
"profile"
"email"
];
claimMaps.vault_group.valuesByGroup = {
grp_root = [ "admin" ];
};
};
dgn_outline = {
displayName = "Outline [Docs]";
originUrl = "https://docs.dgnum.eu/auth/oidc.callback";

View file

@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: EUPL-1.2
{ nixpkgs, ... }:
let
host = "vault.dgnum.eu";
port = 3100;
@ -12,6 +14,8 @@ in
services.openbao = {
enable = true;
package = nixpkgs.nixos."25.05".openbao;
settings = {
listener.tcp = {
address = "127.0.0.1:${builtins.toString port}";
@ -26,6 +30,8 @@ in
cluster_addr = "http://${host}:${toString clusterPort}";
api_addr = "https://${host}";
ui = true;
};
};