Repository navigation
fix(security): harden supervisor and SSH RBAC - #6014
Merged
Merged
Conversation
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
|
🌿 Preview your docs: https://nvidia-preview-pr-6014.docs.buildwithfern.com/openshell |
SDAChess
marked this pull request as draft
November 26, 2026 15:59
SDAChess
marked this pull request as ready for review
November 26, 2026 16:22
github-actions
Bot
requested review from
FrostGod,
TaylorMutch,
alangou,
drew,
elezar,
johntmyers,
krishicks,
mrunalp,
purp,
russellb and
sjenning
November 26, 2026 16:22
This was referenced Nov 26, 2026
Contributor
|
LGTM on security. One fix: the assertion at Signed-off-by: @alangou |
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
alangou
approved these changes
Nov 27, 2026
SDAChess
enabled auto-merge
November 27, 2026 11:32
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 27, 2026
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.
Summary
Default the supervisor image to UID/GID
65534:65534and restrict managed-workspace SSH NetworkPolicy mutation to the policy the driver applies. Compute drivers retain their explicit runtime identities, and required runtime-policy creation and reads remain authorized.Related Issue
Closes #6013
The broader workspace namespace permission boundary remains tracked in #6010. The gateway read-only filesystem change stays in #6011.
Changes
patchtoopenshell-sandbox-ssh, remove unusedupdate, and retain the existing unrestrictedcreate/getrule required for runtime policies and initial SSH-policy creation.Release Notes
Direct supervisor image launches now default to UID/GID
65534:65534; mounted runtime and log directories must be writable by the selected user.Testing
513 gateway chart tests and 7 workspace chart tests pass; all Helm CI values variants lint and render.
An injected unrestricted NetworkPolicy patch grant passes the old JSONPath assertion and fails the corrected assertion; the unmodified chart passes all 513 tests.
Trivy configuration scans across all configured profiles introduce no new findings at any severity and clear DS-0002. KSV-0056 remains visible because required cluster-wide creation permissions remain.
Rebuilt amd64 supervisor image using the published supervisor binary: image user is
65534:65534;--helpand--versionrun without a user override; a live proxy starts with a read-only root and isolated writable runtime/log mounts and returns403 policy_deniedfor a forbidden request. Temporary containers were removed.Rebuilt image has zero HIGH/CRITICAL vulnerabilities against the current Trivy database.
Markdown lint, generated Helm README consistency, docs navigation, and
git diff --checkpass. Fern validation reports zero errors and three warnings.Core sandbox lifecycle E2E and Kubernetes credential-driver E2E checks pass, including the managed-workspace lane.
Optional Kubernetes HA E2E passes on rerun. The first attempt passed 76/77 conformance tests;
cli_no_keep_removes_sandbox_after_main_exitreturnedsandbox is not readyduring TTY attachment.Refreshed-head CI.
Checklist