Repository navigation
Done
elixir-cloud-aai/conquest
#11Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritytopic: conquestUpstream: anuragxxd/conquesttype: securityRelated to securityworkload: daysLikely takes days to resolve
Description
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 OBCconquest-run-<run ID>(label
conquest.io/run-id,generateBucketName: conquest-run-, configured
storageClassName, optionaladditionalConfigmaxSize/maxObjects), via
the client-go dynamic client (no new module); wait forBoundwith a
timeout; read bucket name/host from the ConfigMap and use the Secret of
the same name (keysAWS_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
Deletethe 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
Ensurestays 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).
Refuseobcwithout storage isolation and withobjectfs(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: falseon the SA itself);
today they run as the server's SA, and only the pod-level
automountServiceAccountToken: falsekeeps 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 withshareddefault #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 withshareddefault #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).
Metadata
Metadata
Assignees
Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: highHigh prioritytopic: conquestUpstream: anuragxxd/conquesttype: securityRelated to securityworkload: daysLikely takes days to resolve
Type
Projects
- StatusShow more project fieldsDone
Activity
fix: keep run state and cleanup on slow APIs
feat: add the obc run-bucket provisioner (#11)