feat(gateway): add local-domain service routing#1101
Draft
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…eway-proxy # Conflicts: # crates/openshell-core/src/config.rs # crates/openshell-server/src/cli.rs # deploy/kube/manifests/openshell-helmchart.yaml
|
🌿 Preview your docs: https://nvidia-preview-pr-1101.docs.buildwithfern.com/openshell |
|
Label |
Collaborator
Author
|
/ok to test bb1ef60 |
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
Adds the first pass of gateway-owned domain routing for sandbox-local HTTP and WebSocket services. This is a draft PR for review and iteration; it includes the working spike implementation plus docs/tests captured so far, but still needs cleanup and E2E validation before it is ready to merge.
Related Issue
Linear: OS-153, OS-163, OS-164
Changes
ExposeServiceAPI plumbing and persistedservice_endpointmetadata for named sandbox endpoints.openshell service expose <sandbox> <service> --target-port <port>to create browser-facing endpoint URLs.<sandbox>--<service>.<cluster>.<suffix>before normal gateway HTTP routes, so sandbox app paths like/authare preserved.Missing Pieces / Cleanup Required
local-domainproduct-facing terminology where the RFC lands on different naming.Testing
mise run pre-commitpassesTargeted checks run during the spike:
cargo fmt --allcargo check -p openshell-bootstrap -p openshell-server -p openshell-clicargo check -p openshell-clihelm lint deploy/helm/openshellcargo test -p openshell-cli gateway_proxy --libcargo test -p openshell-cli service_url_for_gateway --libcargo test -p openshell-server local_domain --libbash -n tasks/scripts/cluster-deploy-fast.shStill required before merge:
mise run pre-commitmise run testor equivalent CI suiteChecklist