depot/ops/vault/cfg/config.nix

52 lines
922 B
Nix
Raw Normal View History

2022-03-14 23:34:33 +00:00
{ lib, config, ... }:
2022-03-14 21:29:15 +00:00
{
2022-03-14 23:34:33 +00:00
imports = [
./policies-raw.nix
./policies-app.nix
./authbackend-approle.nix
./authbackend-oidc.nix
./ssh-ca-client.nix
./ssh-ca-server.nix
./servers.nix
2022-03-16 00:18:47 +00:00
./acme-ca.nix
2022-03-14 23:34:33 +00:00
];
2022-03-14 21:29:15 +00:00
terraform = {
backend.gcs = {
bucket = "lukegb-terraform-state";
prefix = "depot/vault";
};
required_providers.vault = {
source = "hashicorp/vault";
version = "3.3.1";
};
};
2022-03-14 23:34:33 +00:00
provider.vault = {
address = "https://vault.int.lukegb.com";
};
data.vault_generic_secret.misc = {
path = "kv/misc-input";
};
2022-03-14 23:34:33 +00:00
my.apps.pomerium = {};
my.servers.etheroute-lon01.apps = [ "pomerium" ];
my.apps.sslrenew-raritan = {
policy = ''
# sslrenew-raritan is permitted to issue certificates.
path "acme/certs/*" {
capabilities = ["create"]
}
'';
};
my.servers.totoro.apps = [ "sslrenew-raritan" ];
2022-03-14 21:29:15 +00:00
}