Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tasks/scripts/gateway-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ signing_key_path = "${TLS_DIR}/jwt/signing.pem"
public_key_path = "${TLS_DIR}/jwt/public.pem"
kid_path = "${TLS_DIR}/jwt/kid"
gateway_id = "${GATEWAY_NAME}"
ttl_secs = 3600

[openshell.drivers.docker]
default_image = "${SANDBOX_IMAGE}"
Expand Down
1 change: 0 additions & 1 deletion tasks/scripts/gateway-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ signing_key_path = "${TLS_DIR}/jwt/signing.pem"
public_key_path = "${TLS_DIR}/jwt/public.pem"
kid_path = "${TLS_DIR}/jwt/kid"
gateway_id = "${GATEWAY_NAME}"
ttl_secs = 3600

[openshell.drivers.vm]
default_image = "${SANDBOX_IMAGE}"
Expand Down
8 changes: 7 additions & 1 deletion tasks/scripts/gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,15 @@ signing_key_path = "${TLS_DIR}/jwt/signing.pem"
public_key_path = "${TLS_DIR}/jwt/public.pem"
kid_path = "${TLS_DIR}/jwt/kid"
gateway_id = "${GATEWAY_NAME}"
ttl_secs = 3600
EOF

# Kubernetes is a shared deployment, so its sandbox JWTs must expire. Local
# drivers omit ttl_secs and inherit the gateway's non-expiring default, so a
# sandbox restarted while the gateway is down can still reconnect.
if [[ "${DRIVER}" == "kubernetes" ]]; then
printf 'ttl_secs = 3600\n' >>"${CONFIG_PATH}"
fi

case "${DRIVER}" in
kubernetes)
cat >>"${CONFIG_PATH}" <<EOF
Expand Down