Skip to content
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

Automatically obtain S3 credentials for a granule with an /s3credentials endpoint #84

Open
chuckwondo opened this issue Mar 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chuckwondo
Copy link
Contributor

Downloading a granule from S3 that requires credentials takes quite a bit of manual effort (i.e. custom code), but should not require any such effort.

It requires checking the granule's metadata for an /s3credentials endpoint, then obtaining creds via the MAAP.AWS object, then injecting the creds into the default s3 session object (since we cannot supply a custom session object -- see #83), then calling Result.getData on a granule object. Ideally, automatic creds refresh should also be handled.

To make it extremely easy for a maap-py user, all of this should occur automatically, such that when Result.getData is called to download a granule from s3, all of the above should automatically happen for the user, so that no custom code required in such cases.

Ideally, this should make use of the implementation of #83 to simplify things a bit.

@chuckwondo chuckwondo added the enhancement New feature or request label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant