Skip to content

Support ephemeral Gateway identity and state cleanup [KPL-118] - #24

Draft
terraboops wants to merge 4 commits into
mainfrom
terra/kpl-118-tsjwt-previews
Draft

terraboops wants to merge 4 commits into
mainfrom
terra/kpl-118-tsjwt-previews

Conversation

@terraboops

@terraboops terraboops commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Disposable preview Gateways currently leave durable tailnet identity and state storage behind. Add tsjwt.dev/ephemeral: "true" to opt into ephemeral auth keys/tsnet identity and PVC deletion when the Gateway's StatefulSet is removed. Unannotated Gateways preserve their current behavior.

The controller passes the new data-plane flag and reconciles PVC retention. Tailscale performs best-effort logout on graceful shutdown; forced shutdown relies on its offline cleanup timeout. This is a prerequisite for Kploy's per-PR tsjwt routing.

CI also found a reachable vulnerability in the existing indirect klauspost/compress dependency (GO-2026-6865). Both standalone module graphs are updated to the scanner-identified fixed version v1.20.2. Once that stopped masking the Gateway scan, it exposed five reachable HTTP/2 findings in golang.org/x/net; the Gateway graph now uses the reported fixed version v0.60.0 and its required golang.org/x dependencies.

Validation: go test -race ./... and go vet ./... in gateway pass, including ephemeral/durable provisioning and distinct preview issuer/audience contracts. Local govulncheck using CI's Go 1.26.10 now reports no reachable vulnerabilities in the auth-key and Gateway modules. Real-tailnet shutdown/recreate still needs rollout validation.

Release this support before enabling kploy tsjwt previews. The deployment draft will reference v0.9.6; adjust that target if another version is released first.

Part of KPL-118: https://linear.app/bit-complete/issue/KPL-118

Linked integration: https://github.com/bitcomplete/kploy/pull/242
Deployment prerequisite: https://github.com/bitcomplete/tsjwt-deploy/pull/23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants