-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample notes for issuance of temp creds for S3 #2
base: main
Are you sure you want to change the base?
Conversation
Is my understanding correct?
Would be nice to complement example with some use of those credentials for download |
Yep, your understand is correct! Theoretically, you could tie the endpoint for providing the temp creds to be linked to a user's DANDI_API_KEY, etc. The example could support "download" operations provided, as |
Such approach would provide "blanket" access to the resource (well -- as wide as iam policy prescribes), so would work for LINC or any other deployment where overall access to the archive should be "gated" but would not be applicable to any aspect of current DANDI access permission schemes (public and embargoed), correct? |
You could issue temporary IAM policies and roles on a per-embargoed-dandiset basis -- engineering would be a bit more complex, but you could make this more defined rather than a blanket use case. |
how would you see that feasible given that we do not have a "prefix" per dandiset, and blobs and zarrs are in their respective "keys" without any per-dandiset common prefix? |
I could derive the S3 sub-directory value from the dandiset's assetSummary outputs |
sorry, I am not following how
and this is tiny one -- try for 000026 ;) |
Ah good point -- I see what you are saying (I'm watching 0000026 stream the output right now 😂 ) -- in that case (to the point of your output here), we would have to loop and gather the I guess this solution would work well for |
it works well for a "single zarr". For a dandiset with lots of zarrs (and @satra aims all nwbs to become zarrs ;) ) -- you get to the same issue as with 000026. Even now 000108 has already thousands of zarrs. Tagging -- I thought about that too but would be tricky as well since blobs are shared across dandisets. Ensuring aligned tagging would be non-trivial. |
@satra @kabilar @yarikoptic
See
README.md
and scripts -- very brief proof-of-concept for async issuance of temp creds -- could package it into a CLI option for a user to bypass minting of presigned URLs and access data as fast as possible.