feat(stage): expose vm-console via gateway#136
Open
ValeryAntopol wants to merge 2 commits intomainfrom
Open
Conversation
Add an HTTPRoute for the new crd-vm-console Service so external clients can reach `wss://vm-console.stage-cloudless.cloudless.dev`. Modeled after the existing crd-api-open route — gateway terminates TLS via the wildcard cert and forwards plain WS to the backend on :8444. Auth is the one-shot URL token issued by crd-api, so no SecurityPolicy is attached. Wire crd-api's console.publicUrl to the new hostname so token URLs point at the gateway hostname rather than the legacy in-pod TLS port. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Move the vm-console HTTPRoute and api console publicUrl from the stage
overlay into base, templated with ${NETWORK}-${PROVIDER} like the
existing crd-operator-api route — so testnet and mainnet get the same
exposure shape without per-overlay duplication. Stage overlay keeps only
its stage-specific crd-operator-api-open route.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crd-operator-vm-console→wss://vm-console.stage-cloudless.cloudless.dev→ backendcrd-operator-vm-console:8444(plain WS).crd-api-openpattern — gateway terminates TLS via the existing wildcard cert; no SecurityPolicy because the one-shot URL token (issued bycrd-api) is the auth.api.console.publicUrlso issued token URLs point at the new hostname.Goes with fluencelabs/lightmare#TBD which moves vm-console out of crd-controller into its own binary serving plain HTTP/WS on :8444.
Test plan
vm-console.stage-cloudless.cloudless.devresolves to the eg-gw LoadBalancer IP.curl https://vm-console.stage-cloudless.cloudless.dev/healthzreturns 200ok.POST /api/v1/workspaces/{ws}/vms/{vm}/consoleoncrd-api-open.stage-cloudless.cloudless.devreturns a URL on the new hostname; opening it with a WS client streams the VM serial console.🤖 Generated with Claude Code