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:
Luiz Aoqui
2023-09-12 11:13:09 -03:00
committed by GitHub
parent 2e1974a574
commit 82372fecb8
8 changed files with 115 additions and 24 deletions

View File

@@ -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",