ops/vault: move policies to token_policies
I want to be able to rescope these policies down in tokend, which means that I can't have policies attached to the server's *identity*. Instead, we put these on the approle instead, which allows us to down-scope all of these.
This commit is contained in:
parent
58a907b700
commit
08b68745f0
1 changed files with 4 additions and 4 deletions
|
@ -83,14 +83,14 @@ in {
|
||||||
secret_id_num_uses = 0;
|
secret_id_num_uses = 0;
|
||||||
token_ttl = minutes 20;
|
token_ttl = minutes 20;
|
||||||
token_max_ttl = minutes 30;
|
token_max_ttl = minutes 30;
|
||||||
|
token_policies =
|
||||||
|
["default" "server" "\${vault_policy.${serverCfg.resourceName}.name}"]
|
||||||
|
++ serverCfg.extraPolicies
|
||||||
|
++ (map (name: "\${vault_policy.app_${name}.name}") serverCfg.apps);
|
||||||
};
|
};
|
||||||
|
|
||||||
vault_identity_entity.${serverCfg.resourceName} = {
|
vault_identity_entity.${serverCfg.resourceName} = {
|
||||||
name = serverName;
|
name = serverName;
|
||||||
policies =
|
|
||||||
["default" "server" "\${vault_policy.${serverCfg.resourceName}.name}"]
|
|
||||||
++ serverCfg.extraPolicies
|
|
||||||
++ (map (name: "\${vault_policy.app_${name}.name}") serverCfg.apps);
|
|
||||||
metadata.server = serverName;
|
metadata.server = serverName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue