Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 6b2ae87

Browse files
committed
fix exp field and add a description of it
1 parent 1301bcb commit 6b2ae87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vault-jwt/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ resource "jwt_signed_token" "vault" {
109109
sub = "${data.coder_workspace.me.id}"
110110
aud = "https://vault.example.com"
111111
iat = provider::time::rfc3339_parse(plantimestamp()).unix
112-
# exp = timeadd(timestamp(), 3600)
113-
agent = coder_agent.main.id
112+
# Uncomment to set an expiry on the JWT token(default 3600 seconds).
113+
# workspace will need to be restarted to generate a new token if it expires
114+
#exp = provider::time::rfc3339_parse(timeadd(timestamp(), 3600)).unix agent = coder_agent.main.id
114115
provisioner = data.coder_provisioner.main.id
115116
provisioner_arch = data.coder_provisioner.main.arch
116117
provisioner_os = data.coder_provisioner.main.os

0 commit comments

Comments
 (0)