Repository navigation
Done
elixir-cloud-aai/conquest
#10Labels
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. 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'sstorage.Layoutfrom it
instead of the server-wide layout. - Extend
runbucket.ProvisionerwithCredentials(ctx, runID)(access key +
secret key;Sharedreturns 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.Newgetscfg.S3Buckettoday), 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 thanobjectfs
(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.
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
shareddefault #154obcrun-bucket provisioner #156shareddefault #154feat: use each run's bucket on the server (#10)
obcrun-bucket provisioner #156