workspace-r

Security

Private reports

Send vulnerability reports to oss@versioneer.at. Include the affected version or image digest, the impact, and steps to reproduce the problem with sample data. Send any available mitigation too. Keep exploit details out of public issues, and do not send live tokens, passwords, kubeconfigs, or user data.

Maintainers coordinate the fix and disclosure with the reporter. There is no published response deadline or list of additional supported release lines. The release scan policy defines the versions checked automatically.

Deployment boundary

Place the API behind an OpenID Connect gateway and restrict backend access to that gateway. The gateway must validate incoming token signatures, algorithms, issuers, audience, expiry, and not-before times. The API trusts that validation: it decodes the claims, checks its audience, and maps roles.

Use AUTH_MODE=gateway for deployment. AUTH_MODE=no gives a development identity and must stay local. Use TLS for the API and its service connections. Give its ServiceAccount only the Kubernetes access it needs.

Permissions defines who can read each credential. The token endpoint validates issued tokens separately from the gateway’s checks on incoming requests.

Provider configuration

Provider Kubernetes resource
Provider Storage Storage, pkg.internal/v1beta1
Provider Datalab Datalab, versioneer.at/v1

Install each provider’s backing operators before enabling its features.

Workspace environments

Compositions must match the provider’s resource type and API version. A Configuration override needs the label storages.pkg.internal/name for Storage or datalabs.pkg.internal/name for Datalab. A config can have both labels; the label values do not filter the choices.

Creation sets spec.crossplane.compositionRef.name for each provider. An override also sets spec.environmentName; otherwise that field is omitted. Override names have at most 63 characters. The API validates both providers’ choices before creating resources. See workspace creation for the UI steps.

Providers merge configs in this order: default, the composition’s config, the selected override, then the workspace-named config. Later values replace earlier values. Nested maps keep fields that are not replaced, and missing configs are skipped. Custom overrides need provider support for spec.environmentName. For CloudFerro, include the project and storage.providerConfigName in the configuration.

Cluster access

The API ServiceAccount needs these permissions:

Resource Scope Verbs
Storage and Datalab resources Managed namespaces get, list, create, patch, delete
Referenced Secrets Each published reference’s namespace get
EnvironmentConfigs and Compositions in apiextensions.crossplane.io Cluster get, list
objects.kubernetes.m.crossplane.io Datalab namespace get, list
Pods Datalab host namespace list
MutatingAdmissionPolicies and MutatingAdmissionPolicyBindings in admissionregistration.k8s.io Cluster get

The last three rows let the API check volume binding cleanup. The provider creates and removes the binding resources; the API only reads them.

Volume binding cleanup

The API uses the Datalab resource version to reject concurrent binding changes and prevent duplicate volume or target reservations. When a binding is removed, it records the reservation in workspace-api.versioneer.at/volume-binding-removals. Keep that annotation until the API clears it during a successful rebind.

Before it releases the reservation, the API requires all of the following:

Missing status or failed reads keep the reservation. If rebinding is blocked, check provider reconciliation, remaining resources, host Pods, and the read permissions above. Direct Datalab edits must preserve these reservations; the provider also checks for duplicates during reconciliation.

The volume guide explains how users remove consumers and bindings, and the limits of ReadWriteOnce.

Identity provider and proxy dependencies

Enable standard token exchange on the workspace OAuth client. Keep its default workspace role and service-account grants limited to ws_api. Allow basic, profile, and email, plus optional scopes for selected profiles. Exclude interactive privileges from exchange. The token guide lists the request scopes and accepted claims.

Set the API audience, normally workspace-api, in data.iam.extraAudiences. The provider adds the workspace audience. Each audience must identify an enabled Keycloak client in the workspace realm.

Declare S3 exports in spec.s3.exports and configure platform S3 routing. The API expects the provider to publish the proxy endpoint and export profiles under status.s3, for example:

status:
  s3:
    endpoint: https://s3.example.org
    ready: true
    profiles:
    - name: project-a
      role: s3_project-a
      scope: ws-alice:s3_project-a
      accessKeyId: ws-alice.s3.project-a
      bucket: project-a
      ready: true

At least one export must be declared. See S3 exports for the connection fields returned to callers.

The provider assigns additional vcluster and S3 profile roles to workspace users and admins. It assigns built-in vcluster administration only to admins. Check the roles in issued login and exchange tokens when validating the Keycloak setup. Provider definitions alone do not confirm a running deployment; real user exchange and S3 traffic need integration checks.

Configure admin-only device and CLI login in the provider, Keycloak, and credential helper. This API does not enforce those login rules.

Checks and release policy

The local targets are also used by CI. The workflows define lint, types, units, file checks, a production image, an isolated image smoke test, and artifact scans. The smoke test checks startup, version, health, UI assets, anonymous denial, and a workspace read with sample data. required_checks rejects failed, cancelled, and unexpectedly skipped jobs.

Check jobs have read permissions. Only publication jobs receive write access; untrusted pull request code does not receive publication credentials.

The last public GitHub API check, on 2026-11-29, reported main as unprotected with no repository rulesets. Maintainers must configure required checks and signed commits, then verify rule scope, bypasses, and successful hosted runs.

Scan policy

Keep findings at every severity. Fail a scan for any of these conditions:

Report unfixed HIGH findings separately; they do not fail the scan. To accept one, record the owner, reason, mitigation, and review date in scripts/vulnerability-exceptions.json. Match Target, VulnerabilityID, PkgName, and InstalledVersion from the report. Use YYYY-MM-DD for review_date. Incomplete or expired entries do not count as acceptance and cannot waive the blocking conditions above. Maintainers must assess and own blocking daily results.

Coverage and retained files

Input Coverage
Runtime image Installed OS and Python packages in the saved image.
Frontend and external UI inputs Frozen npm dependencies, lockfile audits, and the pinned Luigi CDN inventory.
Build and test environments Saved Python and frontend images, including their OS updates and npm tool.
Source Dependency and secret scans of the saved source inputs.

Record the source commit, artifact checksums, immutable image digest, scanner and database versions, findings, accepted risks, and coverage limits. Keep candidates for seven days and scan records and CycloneDX JSON SBOMs for 90 days, including failed scans. Keep release inventories, the security manifest, source inputs, and scan records as release assets.

Deployment services and their images are outside these scans, as are standalone CI lint and scan tools. Scanner matching can miss vendored or dynamically loaded components. CDN files have version and integrity pins; their npm inventory is checked separately. An SBOM lists components but does not check for vulnerabilities. Checksums identify content; build attestations and consumer verification of build origin are deferred.

Daily release scans

The Release security workflow checks the latest stable release and the newest RC for a newer version, or the newest RC when there is no stable release. It excludes drafts and older RCs. A manual run can select older published tags; empty input uses the defaults, and unknown tags fail.

Scans use the release’s saved files, manifest commit, checksums, and immutable image digest. They do not rebuild or replace a release. Source scans on the default branch do not check older published images.

Dependency updates

Dependabot checks current image digests daily and Python, npm, Actions, and hooks weekly. Minor and patch updates are grouped; majors are separate. Review and test updates. Do not force audit fixes. Verify archive checksums when changing scripts/tools.json, and review the npm and Luigi CDN pins. The scoped esbuild override avoids an upstream binary with a vulnerable Go runtime; remove it when the upstream range selects a checked binary.

Release procedure

  1. Prepare the changelog and release notes with changes, fixes, dependencies, known issues, and deployment requirements.
  2. Verify a full successful CI run on the protected default branch for the exact release commit. After a documentation-only change, run CI manually.
  3. Create an unsigned tag with git tag <version> <commit> and push it. Tags use 1.2.3 or 1.2.3-rc.1; alpha and beta tags are also accepted.
  4. The workflow saves a versioned candidate, smoke-tests it, and scans its runtime, build/test images, and source under the policy above.
  5. Publication retrieves the candidate and reports by artifact ID, checks their source and checksums, then publishes the saved image without rebuilding. It verifies the registry digest and attaches the release files before publishing the draft. Prereleases do not update latest; older stable versions cannot move it backwards.

Release runs are serialized. After a partial publication, keep the draft and the candidate and report artifact IDs. Retry with those same files. Never replace a tag with different bytes or rebuild that release. Complete the draft with the checked image; retry a failed stable-alias update from the same files. Hosted publication, serialization, recovery, and alias handling remain unverified.

For a local candidate, use the planned version and source commit:

make candidate smoke-candidate security security-verify \
  VERSION=1.2.3-rc.1 SOURCE_COMMIT="$(git rev-parse HEAD)"

Candidates need a clean worktree. CANDIDATE_FLAGS=--allow-dirty permits local checks but prevents publication. Keep each candidate directory until its checks finish.

Release source archives include the documentation for that version. There is no hosted versioned documentation or stable documentation alias. Follow Contributing for commit and contribution rules.