Repository navigation
deploy, e2e: expose ax-server-runner :8081 only to atenet-egress in NetworkPolicy - #631
Conversation
…olicy - Add Service ax-runner (:8081) in deploy/ax-server.yaml and test/e2e/manifests/ax-server.yaml. - Scope NetworkPolicy ax-server ingress by port so :8080 and :9090 remain blocked from worker pods and atenet-egress, while :8081 is reachable only from app=atenet-egress in ate-system. - Update deploy/embed_test.go and skills/substrate/SKILL.md. Signed-off-by: siyuanfoundation <[email protected]>
|
/cc @mayawang @itssimrank |
yongruilin
left a comment
There was a problem hiding this comment.
Does it mean every task need to bind a Gateway that has a egress policy with actorjwt and pointing to this new service?
|
This ties ax-server's runner channel to Substrate's built-in egress gateway in two places: the policy selects it by pod label, and it is what attaches the ActorJWT. Substrate lets an install replace that gateway and only encourages the replacement to honor EgressPolicy, so a swapped gateway would be blocked on :8081 and, not matching the label, allowed on :8080. Could the gateway's selector be a manifest parameter, or should the plan say what a replacement gateway must support? |
yongruilin
left a comment
There was a problem hiding this comment.
Synced offline. This change is needed for all task-runner to talk back to ax-server.
Signed-off-by: siyuanfoundation <[email protected]>
#635) * runnerhttp, server: add :8081 runner HTTP handler, Actor JWT auth, and egress rule * lifecycle: fix crash detection on in-memory restore, guard terminal events, and return IDLE for interactive tasks * runnerhttp: parse Substrate actor.ate.dev JWT claim and fail closed on empty ActorUID * substrate: sync DefaultRunnerEndpoint to ax-server-runner (#631)
Summary
Adds the
ax-server-runnerKubernetesService(:8081) and updates theax-serverNetworkPolicy(in bothdeploy/ax-server.yamlandtest/e2e/manifests/ax-server.yaml) so Substrate's egress gateway (atenet-egress) has a deliberate, port-scoped path intoax-server's runner HTTP listener while keeping:8080and:9090blocked from sandboxes.Key Changes
deploy/ax-server.yaml&test/e2e/manifests/ax-server.yaml:Service ax-server-runnerexposing port8081(targetPort: 8081, selectorapp.kubernetes.io/name: ax-server).NetworkPolicy ax-serveringress by port::8080(gRPC control plane) and:9090(metrics) remain blocked fromate.dev/worker-poolandapp: atenet-egress(preserving#582andTestE2E_GatewayEgress).:8081(ax-server-runner) is allowed only fromapp: atenet-egresspods in namespaceate-system, ensuring all sandbox runner requests traverse Substrate's egress gateway (for Actor JWT injection) and worker pods (ate.dev/worker-pool) still cannot reachax-serverdirectly on any port.deploy/embed_test.go: VerifiedService ax-server-runner(8081) andatenet-egressselector render cleanly.skills/substrate/SKILL.md: Synced theax-serverNetworkPolicysummary.Testing
make verify(0 issues)go build ./cmd/ax ./cmd/ax-server ./cmd/ax-task-runnergo test -race -count=1 ./deploy/...