Skip to content

feat(chart): single default SandboxTemplate + hardened NetworkPolicy - #26

Merged
beneiltis merged 2 commits into
mainfrom
feat/mog-4761-chart-templates-networkpolicy
Oct 23, 2026
Merged

beneiltis merged 2 commits into
mainfrom
feat/mog-4761-chart-templates-networkpolicy

Conversation

@janlepsky

Copy link
Copy Markdown
Contributor

Replace the profiles map (default/opencode/platform-test) with one sandboxes.template + warmPool the SDK claims from; additional templates are standalone UI-managed objects (MOG-4749/4756). shmSizeLimit and the volume/volumeMount merge are kept. The opencode/platform-test images and their build pipelines are left in place for use as standalone templates.

Harden the per-sandbox NetworkPolicy: explicit egress by default with a DNS allow and toggles for the metadata endpoint, RFC1918 and the apiserver (+apiServerCidrs), scoped to policyTypes [Egress]. CI lint decoupled from the removed profiles.

MOG-4761

Replace the profiles map (default/opencode/platform-test) with one sandboxes.template + warmPool the SDK claims from; additional templates are standalone UI-managed objects (MOG-4749/4756). shmSizeLimit and the volume/volumeMount merge are kept. The opencode/platform-test images and their build pipelines are left in place for use as standalone templates.

Harden the per-sandbox NetworkPolicy: explicit egress by default with a DNS allow and toggles for the metadata endpoint, RFC1918 and the apiserver (+apiServerCidrs), scoped to policyTypes [Egress]. CI lint decoupled from the removed profiles.

MOG-4761

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The SandboxTemplate CRD only accepts ingress/egress under spec.networkPolicy;
the controller always sets policyTypes Ingress+Egress itself, so the install
failed with "policyTypes: field not declared in schema". Without ingressFrom
the template now keeps the controller's default ingress peer (sandbox-router),
otherwise all ingress would be denied. Also render networkPolicyManagement
Unmanaged instead of the invalid Disabled when managed is false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@beneiltis
beneiltis merged commit 732a244 into main Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants