mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
config: add TTL to agent identity config (#18457)
Add support for identity token TTL in agent configuration fields such as Consul `service_identity` and `template_identity`. Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
This commit is contained in:
6
command/agent/testdata/basic.json
vendored
6
command/agent/testdata/basic.json
vendored
@@ -173,7 +173,8 @@
|
||||
"nomad.dev"
|
||||
],
|
||||
"env": false,
|
||||
"file": true
|
||||
"file": true,
|
||||
"ttl": "1h"
|
||||
},
|
||||
"ssl": true,
|
||||
"template_identity": {
|
||||
@@ -181,7 +182,8 @@
|
||||
"consul.io"
|
||||
],
|
||||
"env": true,
|
||||
"file": false
|
||||
"file": false,
|
||||
"ttl": "2h"
|
||||
},
|
||||
"timeout": "5s",
|
||||
"token": "token1",
|
||||
|
||||
Reference in New Issue
Block a user