Skip to content

Conquest: obc run-bucket provisioner #156

Done
elixir-cloud-aai/conquest
#11

Description

@uniqueg

Part of #149. Add CONQUEST_RUN_BUCKETS=obc: one bucket per run through an
ObjectBucketClaim (objectbucket.io/v1alpha1, e.g. Rook/Ceph or any
lib-bucket-provisioner), so a runner's credentials reach only its own
bucket and the object store enforces it.

  • Ensure: create OBC conquest-run-<run ID> (label
    conquest.io/run-id, generateBucketName: conquest-run-, configured
    storageClassName, optional additionalConfig maxSize/maxObjects), via
    the client-go dynamic client (no new module); wait for Bound with a
    timeout; read bucket name/host from the ConfigMap and use the Secret of
    the same name (keys AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY).
    Idempotent on retries (AlreadyExists = adopt if labelled for this run).
  • Delete: delete the OBC; with the StorageClass's reclaim policy
    Delete the bucket goes with it, non-empty included (CERIT/Lukas: fine;
    verify the provisioner purges non-empty buckets, else empty it first).
  • Run start waits for binding (seconds): decide whether Ensure stays in
    the WES submit request or moves to the dispatcher (QUEUED -> INITIALIZING).
  • Config: CONQUEST_RUN_BUCKETS_OBC_STORAGE_CLASS (required),
    ..._MAX_SIZE, ..._MAX_OBJECTS, bind timeout; chart
    storageIsolation.runBuckets: obc, storageIsolation.obc.*; Role rules
    create/get/list/delete objectbucketclaims.objectbucket.io,
    get secrets, configmaps (namespace-wide get on Secrets: RBAC can't
    limit by name prefix; acceptable because only the server has a token).
    Refuse obc without storage isolation and with objectfs (see Conquest: use each run's bucket and credentials on the server #155).
  • Own ServiceAccount for runner and task pods (chart-created, no
    RoleBinding, automountServiceAccountToken: false on the SA itself);
    today they run as the server's SA, and only the pod-level
    automountServiceAccountToken: false keeps its token (Jobs create, and
    with obc Secrets get) away from workflow code. A mutating webhook keyed
    on the SA (Vault injector, IRSA, workload identity) could inject a token.
    Test: runner/task pods never use the server's SA. (Adversarial review of
    Conquest: run-bucket provisioner with shared default #154, deferred here because it changes chart RBAC.)
  • Tests: fake dynamic client + fake clientset (a stub "binder" sets Bound
    and creates Secret/ConfigMap), invariant tests from Conquest: run-bucket provisioner with shared default #154 with OBC Secrets,
    chart render test for RBAC.
  • Docs: Run buckets (obc row, operator requirements, RBAC), deployment
    guide with an example (Rook storage class name as a placeholder; CERIT
    values only in the deployment repo/runbook), upgrade note (runs from
    before the switch stay in the shared bucket and stay readable).

Activity

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