open-nomad/helper
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
..
args address review comments 2018-10-30 13:58:52 -04:00
boltdd ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
codec
constraints/semver chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
discover chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
envoy ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
escapingfs client: check escaping of alloc dir using symlinks 2022-02-09 19:50:13 -05:00
escapingio Fixup uses of sanity (#10187) 2021-03-16 18:05:08 -04:00
fields goimports 2019-01-22 15:44:31 -08:00
flags ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
flatmap Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
freeport ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
gated-writer gatedwriter: Fix race condition (#9791) 2021-01-14 12:43:14 -08:00
grpc-middleware/logging Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
ipaddr helper: add ipaddr pkg to check for any IP addresses. 2022-03-03 11:24:50 +01:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
mount deps: upgrade docker and runc 2022-01-18 08:35:26 -06:00
noxssrw lint: mark false positive or fix gocritic append lint errors. 2021-09-06 10:49:44 +02:00
pluginutils ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
pool core: remove all traces of unused protocol version 2022-02-18 16:12:36 -08:00
raftutil Merge branch 'main' into f-1.3-boogie-nights 2022-03-23 09:41:25 +01:00
snapshot Raft Debugging Improvements (#11414) 2021-11-04 10:16:12 -04:00
stats chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
testlog ci: limit gotestsum to circle ci 2022-03-18 09:15:01 -05:00
testtask gofmt all the files 2021-10-01 10:14:28 -04:00
tlsutil ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
useragent
uuid e2e: add e2e test for service registration 2021-01-05 08:48:12 -06:00
winsvc gofmt all the files 2021-10-01 10:14:28 -04:00
funcs.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
funcs_test.go Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00