Skip to content

Conquest: use each run's bucket and credentials on the server #155

Done
elixir-cloud-aai/conquest
#10

Description

@uniqueg

Part of #149. After #154, a run's bucket can differ from CONQUEST_S3_BUCKET,
but the server still reads and writes every run's objects in the shared
bucket with the shared credentials. Before a per-run provisioner can be
enabled, the server must use the run's bucket and that bucket's credentials
everywhere it touches run objects:

  • Persist the run's bucket (it is already in run_root_uri; either parse it
    or add a column via migration) and build the run's storage.Layout from it
    instead of the server-wide layout.
  • Extend runbucket.Provisioner with Credentials(ctx, runID) (access key +
    secret key; Shared returns the server's own). Cache in memory, never log.
  • Use them for: workflow outputs / logs reads (controller.GetRun,
    artifact store), workflow bundle and attachment uploads, storage gateway
    presigning (one presigner per bucket; bound check must also compare the
    bucket with the run's), task routing / remote endpoints with gateway URLs
    (routing.New gets cfg.S3Bucket today), filer stage-in/out paths.
  • Refuse combinations that would leak: per-run buckets need
    CONQUEST_STORAGE_ISOLATION=true (otherwise task pods get the shared
    bucket-wide credentials) and a workspace mode other than objectfs
    (its CSI volume mounts the shared bucket with the shared CSI Secret), or
    objectfs gets the run's bucket and Secret.
  • Tests: fake provisioner with two buckets; SeaweedFS integration test
    (internal/isolation) with two buckets and two identities proving a
    run's credentials can't reach the other bucket and the gateway presigns
    with the right one.
  • Docs: Run buckets section, Storage Isolation limits.

Activity

  1. added
    status: blocked
    priority: high
    type: security
    on Nov 27, 2026
  2. added
    workload: days
    on Nov 27, 2026
  3. added
    ecp-wp4: M4.4
    topic: conquest
    on Nov 27, 2026
  4. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Nov 27, 2026
  5. self-assigned this
    on Nov 27, 2026
  6. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 27, 2026
  7. moved this from In progress to In review in ELIXIR On-Cloudon Nov 27, 2026
  8. moved this from In review to Done in ELIXIR On-Cloudon Nov 27, 2026
  9. removed
    status: in progress
    on Nov 27, 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: hightopic: conquesttype: securityworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions