@@ -123,27 +123,20 @@ the sandbox's lifetime; it selects the paired workload Pod for
123123For ` runtime-initiated ` :
124124
125125- The bootstrap Secret gives the runtime the Service ClusterIP and port. The
126- runtime dials it, keeps one unclaimed spare connection for reconnects and
127- credential rotation, and retries with capped backoff until the supervisor
128- listens, so neither Pod waits on the other during bootstrap. The workload
129- still cannot reach the control port.
130- - The supervisor listens on ` boundary_port ` . It completes TLS on each accepted
131- socket before use, limits concurrent unauthenticated handshakes and their
132- duration, and queues at most two authenticated spares. A new connection
133- cannot displace a live authenticated channel.
134- - The driver adds a per-sandbox ` NetworkPolicy ` ` os-control-<id> ` that selects
135- only this sandbox's two Pods and admits one flow, from its workload Pod to its
136- supervisor Pod on ` boundary_port ` over TCP, as both workload egress and
137- supervisor ingress. Ingress matters because supervisors can already be
138- ingress-isolated, for example by the managed SSH ingress policy, which selects
139- every OpenShell-managed Pod. This also makes the supervisor ingress-isolated
140- when that SSH policy is disabled; exec, file sync, and logs need no other
141- supervisor ingress because the supervisor opens those connections. The CNI
142- must still allow kubelet readiness probes. The namespace-wide policies are
143- unchanged.
144- - The boundary Service sets ` publishNotReadyAddresses ` , because the supervisor
145- becomes Ready only after the runtime has attached through that Service.
146- The policy's UID and resourceVersion are bound into the boundary resource
126+ runtime retries with capped backoff until the supervisor listens, so neither
127+ Pod waits on the other during bootstrap. The Service sets
128+ ` publishNotReadyAddresses ` because the supervisor becomes Ready only after
129+ the runtime attaches through it. The workload still cannot reach the control
130+ port.
131+ - A per-sandbox ` NetworkPolicy ` ` os-control-<id> ` selects only this sandbox's
132+ two Pods and admits one flow, from its workload Pod to its supervisor Pod on
133+ ` boundary_port ` over TCP, as workload egress and supervisor ingress.
134+ Supervisors may already be ingress-isolated by the managed SSH ingress policy;
135+ when that policy is disabled, this one isolates them. Exec, file sync, and
136+ logs need no other supervisor ingress because the supervisor opens those
137+ connections. The CNI must still allow kubelet readiness probes. The
138+ namespace-wide policies are unchanged.
139+ - The policy's UID and resourceVersion are bound into the boundary resource
147140 claims and outer-fence evidence. Reconciliation suspends the workload if the
148141 policy disappears, diverges, or changes generation, or if the boundary
149142 Service no longer selects the role the recorded mode requires.
0 commit comments