open-nomad/jobspec
Luiz Aoqui ab7eb5de6e
Support Vault entity aliases (#12449)
Move some common Vault API data struct decoding out of the Vault client
so it can be reused in other situations.

Make Vault job validation its own function so it's easier to expand it.

Rename the `Job.VaultPolicies` method to just `Job.Vault` since it
returns the full Vault block, not just their policies.

Set `ChangeMode` on `Vault.Canonicalize`.

Add some missing tests.

Allows specifying an entity alias that will be used by Nomad when
deriving the task Vault token.

An entity alias assigns an indentity to a token, allowing better control
and management of Vault clients since all tokens with the same indentity
alias will now be considered the same client. This helps track Nomad
activity in Vault's audit logs and better control over Vault billing.

Add support for a new Nomad server configuration to define a default
entity alias to be used when deriving Vault tokens. This default value
will be used if the task doesn't have an entity alias defined.
2022-04-05 14:18:10 -04:00
..
test-fixtures Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
helper.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
helper_test.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
parse_group.go Parse `job > group > consul` block in HCL1 (#11423) 2021-11-03 13:49:32 -04:00
parse_job.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse_multiregion.go Isolate the jobspec package from the rest of Nomad (#8815) 2020-09-03 06:34:04 -05:00
parse_network.go allow configuration of Docker hostnames in bridge mode (#11173) 2021-09-16 08:13:09 +02:00
parse_service.go hcl1: add service block provider parameter. 2022-03-14 10:00:53 +01:00
parse_task.go hcl: add new cores resources field 2021-07-26 11:45:10 -04:00
parse_test.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
utils.go consul: add Connect structs 2019-08-06 08:15:07 -07:00
utils_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00