code-server

by QuenchWorks

Helm chartv0.0.30App 4.139.1MITVerified publisher

code-server (VS Code in the browser) by Coder, hardened by QuenchWorks as a minimal, nonroot, CVE-gated image on Wolfi, cosign-signed and pinned by digest. Runs as a single-replica Deployment with a persistent workspace ($HOME) and PASSWORD login.

About this chart

Quenchworks code-server

Hardened code-server (VS Code in the browser) by Coder, on a minimal, nonroot, CVE-gated image built on Wolfi from Coder's official prebuilt release, cosign-signed and pinned by digest. Runs as a single-replica Deployment with a persistent workspace and PASSWORD login, serving the editor on port 8080.

Install

helm install ide oci://ghcr.io/quenchworks/charts/code-server

Read the generated login password and open the editor over a port-forward:

kubectl get secret ide-code-server -o jsonpath='{.data.password}' | base64 -d; echo
kubectl port-forward svc/ide-code-server 8080:8080
# browse http://127.0.0.1:8080

Set your own password instead:

helm install ide oci://ghcr.io/quenchworks/charts/code-server \
  --set auth.password='choose-a-strong-one'

Verify the image

cosign verify ghcr.io/quenchworks/images/code-server \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/code-server --owner quenchworks.

Values

KeyDefaultNotes
image.repositoryghcr.io/quenchworks/images/code-server
image.digest(CI-written)Required. Charts pin by digest, never a tag.
image.pullPolicyIfNotPresent
nameOverride""Override the chart name in resource names.
auth.password""Login password. Empty = a random 24-char password is generated into the Secret (stable across upgrades).
auth.existingSecret""Use your own Secret for the password instead of the generated one.
auth.existingSecretKeypasswordKey in existingSecret holding the password.
extraArgs[]Extra flags appended to the container command.
persistence.enabledtruePersist $HOME (workspace + editor state) on a PVC. false = emptyDir.
persistence.size10Gi
persistence.mountPath/home/coder
persistence.storageClass(default)
persistence.accessModes[ReadWriteOnce]Single writer.
persistence.existingClaim""Bind an existing PVC instead of provisioning one.
resources.requestscpu 100m / mem 256Mi
resources.limitscpu 2 / mem 2Gi
service.typeClusterIPClusterIP, NodePort, or LoadBalancer.
service.port8080Editor HTTP.
service.httpsPort443Service port for the TLS listener (container 8443) when tls.enabled.
tls.enabledfalseServe HTTPS on code-server's own listener; the certificate is mounted at /tls.
tls.existingSecret""Use this kubernetes.io/tls Secret (1st choice).
tls.certManager.enabledfalseRequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice).
tls.selfSigned.validityDays365Otherwise Helm generates a CA + certificate, kept across upgrades.
serviceAccount.createtrueToken automount is off.
serviceAccount.name""Use an existing ServiceAccount.
rbac.createfalseMinimal Role/RoleBinding.
networkPolicy.enabledtrueRestricts ingress.
networkPolicy.allowExternaltrueSet false to restrict ingress to the release namespace.
podDisruptionBudget.enabledtrueminAvailable: 1.
ingress.enabledfalseCreate an Ingress. With tls.enabled it routes to 443: set the controller's backend protocol to HTTPS.
ingress.className""IngressClass to claim it. Empty leaves it unset, so the cluster default applies.
ingress.annotations{}Controller annotations (rewrite targets, body size, cert-manager issuer, ...).
ingress.servicePortnullBackend port. Unset resolves service.port, then service.ports.http / .https.
ingress.hosts[]e.g. [{host: app.example.com}]. A host with no paths gets a single / Prefix path.
ingress.tls[]Standard Ingress TLS list, e.g. [{hosts: [app.example.com], secretName: app-tls}].

Plus the shared quench-common knobs (scheduling, probes, sidecars, init containers, extra env/volumes, security contexts).

Architecture

A single-replica Deployment (Recreate strategy, RWO PVC) runs code-server, which execs the image's bundled Node runtime directly against the compiled VS Code tree and binds 0.0.0.0:8080. $HOME (/home/coder) is a PersistentVolumeClaim holding the user's workspace plus code-server state (settings, installed extensions, ~/.local/share/code-server); the OS temp dir is a separate emptyDir so the root filesystem stays read-only. Login uses code-server's default --auth password, with the password injected as the PASSWORD env from a Secret via secretKeyRef (never in argv). Liveness and readiness both httpGet /healthz (unauthenticated, 200 once the server is up). The container runs nonroot on a read-only root filesystem with all capabilities dropped, and the image is pinned by digest.

Because it holds a single RWO volume and one writer, code-server does not scale horizontally, it stays at one replica. Front it with an Ingress (TLS) for real use and keep the NetworkPolicy as the trust boundary.

Uninstall

helm uninstall ide

The PVC is retained (delete it manually to discard the workspace).

Notes

The chart depends on the quench-common library chart, pulled from oci://ghcr.io/quenchworks/charts/quench-common. code-server's built-in microsoft-authentication and npm-scripts extensions are stripped from the image (they drag a desktop GTK/webkit stack and a false-positive npm-CLI CVE match, respectively); npm still runs from the integrated terminal.

Since 2026-10-13 the image also drops the closed-source native binaries that ship inside the built-in GitHub Copilot and sandbox extensions (the same cut VSCodium makes). They carried Rust crates the scanner could not see, and no recipe can patch a closed binary. Built-in Copilot chat is therefore not available; install a Copilot or other AI extension from the marketplace into your own user data if you need one.

Deploy code-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has code-server on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcode-server is pinned at v0.0.30 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply