Repository navigation
feat(chart): single default SandboxTemplate + hardened NetworkPolicy - #26
Merged
Merged
Conversation
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>
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.
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