We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a65b048 + 81a576e commit ad53592Copy full SHA for ad53592
modules/terraform/hydrate-cluster/policies.nix
@@ -16,7 +16,15 @@ Related to roles that are impersonated by humans.
16
17
__fromTOML = builtins.fromTOML;
18
19
- vaultPolicies = tfcfg.locals.policies.vault;
+ # necessary or some of these policies get deleted by terraform; eg routing
20
+ coreVaultPolicies =
21
+ builtins.removeAttrs
22
+ (import ../../../profiles/vault/policies.nix {inherit config lib;})
23
+ .services
24
+ .vault
25
+ .policies ["vault-agent-client" "vault-agent-core"];
26
+
27
+ vaultPolicies = coreVaultPolicies // tfcfg.locals.policies.vault;
28
nomadPolicies = tfcfg.locals.policies.nomad;
29
consulPolicies = tfcfg.locals.policies.consul;
30
0 commit comments