Skip to content

fix: harden supervisor identity and managed SSH RBAC #6013

Done

Description

@SDAChess

User Story

As a cluster operator running OpenShell on Kubernetes, I need the published supervisor image to default to the non-root identity used by Helm, and managed SSH policy maintenance to carry only the permissions it needs.

Description

Set the supervisor image's default UID/GID to 65534:65534, matching the shared-supervisor Helm defaults. Preserve the compute drivers' explicit runtime identities and document writable-directory requirements for direct/custom image users.

Limit the managed workspace SSH NetworkPolicy patch permission to openshell-sandbox-ssh and remove unused update. The driver uses server-side apply on that fixed name. Keep the existing NetworkPolicy create/get permissions required for runtime policies and initial SSH-policy creation.

Context

The Helm/Dockerfile security review reports DS-0002 for the supervisor's inherited root image user and KSV-0056 for cluster-wide networking mutations. This is configuration hardening based on the published manifests; no exploit is claimed.

This work clears DS-0002 and narrows NetworkPolicy mutation. It does not resolve every KSV-0056 occurrence or the broader workspace permission boundary in #6010. The gateway read-only filesystem change remains separate in #6009 / #6011.

Definition of Done

  • The built supervisor image defaults to 65534:65534 and starts with writable runtime/log mounts without a user override.
  • Driver-selected identities and Helm/OpenShift overrides remain supported.
  • Managed SSH server-side apply remains authorized for the fixed policy name; patching other NetworkPolicies and updating any NetworkPolicy are not granted by this rule.
  • Required runtime-policy creation and reads remain authorized, and disabling managed SSH removes its patch permission.
  • Focused chart tests, lint/render checks, configuration scans, and relevant runtime/E2E checks validate the changes.
  • Custom image guidance describes the non-root default and writable directories.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions