Conversation
Soffi AI SummaryThis PR improves agent runtime cycle times by introducing two major enhancements to the AI agent harness infrastructure: mise-based tool version management and a repository pre-bake pipeline that pre-compiles dependencies to eliminate cold-start overhead. Mise integration ( Read-only root filesystem support: Repository pre-bake pipeline ( Harness hooks ( The changes are accompanied by new unit tests for pod construction (mise config, read-only filesystem combinations) and harness hook logic, updated CRD YAML and deep-copy generated files, and documentation updates for the ChangesMise tool version management and repository pre-bake for agent runtimes
Updated: 2026-09-15 14:40 UTC |
|
| func ensureDefaultContainerSecurityContext(sc *corev1.SecurityContext, readOnlyRootFilesystem bool) *corev1.SecurityContext { | ||
| if sc != nil { | ||
| return sc | ||
| } |
There was a problem hiding this comment.
Partial context bypasses read-only
When spec.readOnlyRootFilesystem is true but the template supplies a partial securityContext without that field, this helper returns the template unchanged. Kubernetes defaults the omitted field to false, so the container remains writable while mise bootstrap is disabled based on the runtime-level value. Apply the computed value when a partial context omits this field.
| func ensureDefaultContainerSecurityContext(sc *corev1.SecurityContext, readOnlyRootFilesystem bool) *corev1.SecurityContext { | |
| if sc != nil { | |
| return sc | |
| } | |
| func ensureDefaultContainerSecurityContext(sc *corev1.SecurityContext, readOnlyRootFilesystem bool) *corev1.SecurityContext { | |
| if sc != nil { | |
| if sc.ReadOnlyRootFilesystem == nil { | |
| sc.ReadOnlyRootFilesystem = lo.ToPtr(readOnlyRootFilesystem) | |
| } | |
| return sc | |
| } |
Knowledge Base Used: Deployment operator
| klog.V(log.LogLevelInfo).InfoS("installing mise binary", "path", installPath) | ||
| cmd := osexec.Command("sh", "-c", "curl -fsSL https://mise.run | sh") | ||
| cmd.Env = append(os.Environ(), "MISE_INSTALL_PATH="+installPath) |
There was a problem hiding this comment.
Installer response executes unchecked
When a custom agent image lacks mise, this fallback pipes a mutable network response directly into sh. The process inherits the agent-run environment, including the run Secret, so compromise of the installer endpoint can execute arbitrary code and expose provider or Git credentials. Install a repository-pinned artifact with checksum or signature verification instead. The same unchecked installer pattern also appears in the agent-harness and repository-prebake Dockerfiles.
How this was verified: The reachable fallback executes the HTTPS response as shell input in the default container after that container imports the run Secret through envFrom.
Test Plan
Test environment: https://console.your-env.onplural.sh/
Checklist
Plural Flow: console