Skip to content

feat(server): support multi ingress gateway mode#161

Open
Pangjiping wants to merge 5 commits intoalibaba:mainfrom
Pangjiping:feat/server/ingress-gateway
Open

feat(server): support multi ingress gateway mode#161
Pangjiping wants to merge 5 commits intoalibaba:mainfrom
Pangjiping:feat/server/ingress-gateway

Conversation

@Pangjiping
Copy link
Collaborator

@Pangjiping Pangjiping commented Feb 3, 2026

Summary

  • add ingress config for OpenSandbox server

Ingress exposure (direct | gateway)

[ingress]
mode = "direct"  # docker runtime only supports direct
# gateway.address = "*.example.com"         # host only (domain or IP[:port]); scheme is not allowed
# gateway.route.mode = "wildcard"            # wildcard | uri (header not yet supported)
  • mode=direct: default; required when runtime.type=docker (client ↔ sandbox direct reachability, no L7 gateway).
  • mode=gateway: configure external ingress.
    • gateway.address: wildcard domain required when gateway.route.mode=wildcard; otherwise must be domain, IP, or IP:port. Do not include scheme; clients decide http/https.
      - gateway.route.mode: wildcard (host-based wildcard), uri (path-prefix). header is not yet supported.
    • Response format examples:
      • wildcard: <sandbox-id>-<port>.example.com/path/to/request
      • uri: 10.0.0.1:8000/<sandbox-id>/<port>/path/to/request

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

@Pangjiping Pangjiping force-pushed the feat/server/ingress-gateway branch from 40fba82 to b032495 Compare February 3, 2026 06:16
@Pangjiping Pangjiping force-pushed the feat/server/ingress-gateway branch from 0c46993 to ff15bda Compare February 3, 2026 08:00
@Pangjiping Pangjiping added feature New feature or request component/k8s For kubernetes runtime labels Feb 3, 2026
@Pangjiping Pangjiping marked this pull request as ready for review February 3, 2026 08:02
@jwx0925
Copy link
Collaborator

jwx0925 commented Feb 3, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff15bdaaf8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Pangjiping Pangjiping added component/server and removed component/k8s For kubernetes runtime labels Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/server feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants