Skip to content

Conquest: keep S3 credentials out of task pods #148

Done
elixir-cloud-aai/conquest
#3

Description

@uniqueg

Title: Conquest: keep S3 credentials out of task pods (data isolation)

Labels: type: security, priority: high, workload: hours, status: in progress, ecp-wp4: M4.4, topic: conquest
Parent: #18 (sub-issue)

Body:

Part of #18. Decided in D-405 and D-414: data isolation is fixed in our Conquest fork before #18 is done and before any public route (D-416 d63: the only public route will be the storage gateway path /storage/v1/t).

Problem. Every task pod of Conquest's Kubernetes backend gets the bucket-wide S3 credentials as environment variables, including the user's executor container (internal/backend/k8s/jobspec.go). Any user who may submit a run can read and write every other run's objects, whatever the API's owner checks say (#18 design, finding F4).

Fix (elixir-cloud-aai/conquest, config-switched, off by default as upstream).

  • CONQUEST_STORAGE_ISOLATION=true (chart storageIsolation.enabled): task pods get no S3 credentials and no S3 endpoint, only one capability URL of the existing storage gateway on Conquest's in-cluster address: <internal base URL>/storage/v1/t/<task ID>/<HMAC>.
  • Stage-in and stage-out go through it; the gateway answers 307 with S3 URLs presigned per object and method, lists keys below DIRECTORY inputs, and refuses everything outside the task's inputs and outputs.
  • New bound: every task, local or remote via the gateway, is confined to its run's root s3://<bucket>/v1/workflow-runs/<run ID>/, even if its TES request names other objects.
  • Own package internal/isolation, small opt-in extensions to internal/storagegw, so it can go upstream (D-406).
  • Tests: unit, handler, and an integration test against a real S3 server (SeaweedFS in CI; MinIO publishes no images any more).

Not covered here (follow-ups):

  • Runner pods still get the bucket-wide credentials: the engines (Nextflow, Snakemake, miniwdl) read and write the work directory with their own S3 clients, and workflow code runs there (Nextflow scripts, Snakefiles).
  • Unauthenticated runner callbacks (Conquest: validate LS Login bearer tokens on the WES API #18 slice S1): anyone in the cluster can still create a task in any run and so get that run's bound.
  • Uploads are single presigned PUTs: 5 GiB per output file (S3 and Ceph RGW default).

Done when: the PR is merged in the fork and the CERIT install runs with storageIsolation.enabled: true.

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    priority: high
    status: in progress
    type: security
    workload: hours
    ecp-wp4: M4.4
    topic: conquest
    on Nov 25, 2026
  3. moved this from Backlog to In review in ELIXIR On-Cloudon Nov 25, 2026
  4. moved this from In review to Done in ELIXIR On-Cloudon Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: highstatus: in progresstopic: conquesttype: securityworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions