Repository navigation
Conversation
Add sync.toHost.pods.envVars — a list of corev1.EnvVar entries injected into every container of pods synced from the virtual cluster to the host. Pod-authored env vars with the same name take precedence. This is the env-var equivalent of the existing enforceTolerations field. It lets host administrators inject node-level configuration into all tenant pods without requiring Pro-tier patches or a separate MutatingAdmissionWebhook. A concrete use case: RDMA-capable clusters where libibverbs and NIXL authorization plugins (IBV_AUTH_PLUGIN, NIXL_AUTH_PLUGIN) gate queue pair creation and cross-agent connections. Without these env vars, any process on the InfiniBand fabric can create QPs and access remote GPU memory regardless of Kubernetes RBAC or tenant isolation. Signed-off-by: Dave Lenrow <david.lenrow@illumio.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WcTnFKb9kfvByuu3uhPeSH Signed-off-by: Dave Lenrow <david.lenrow@illumio.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4fcd26b. Configure here.
| injectEnforcedEnvVars(pPod.Spec.Containers, t.enforcedEnvVars) | ||
| injectEnforcedEnvVars(pPod.Spec.InitContainers, t.enforcedEnvVars) | ||
| injectEphemeralEnforcedEnvVars(pPod.Spec.EphemeralContainers, t.enforcedEnvVars) | ||
| } |
There was a problem hiding this comment.
Ephemeral containers skip env injection
Medium Severity
Runtime-added ephemeral containers never receive sync.toHost.pods.envVars. Injection runs only inside Translate, while syncEphemeralContainers translates env through TranslateContainerEnv and never applies the enforced list, so later debug containers omit host-required variables.
Reviewed by Cursor Bugbot for commit 4fcd26b. Configure here.
| // name take precedence. This is useful for node-level security hooks that must be | ||
| // present on all workload pods (e.g., IBV_AUTH_PLUGIN for RDMA QP creation gating). | ||
| // +optional | ||
| EnvVars []corev1.EnvVar `json:"envVars,omitempty"` |
There was a problem hiding this comment.
Config uses concrete EnvVar type
Medium Severity
EnvVars is typed as []corev1.EnvVar rather than []map[string]interface{} used by the other env fields in this package. Schema generation then emits a Quantity object with only Format, so Helm rejects valid resourceFieldRef.divisor strings.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4fcd26b. Configure here.
|
As you've described, there are ways to do this now - |


Closed — will use existing sync.toHost.pods.patches mechanism instead.