Always use EDL user token to fetch s3 creds - #1183
Merged
Merged
Conversation
chuckwondo
commented
Jan 27, 2026
Comment on lines
+103
to
+104
| self.username: str | None = None | ||
| self.password: str | None = None |
Contributor
Author
chuckwondo
commented
Jan 27, 2026
Comment on lines
+262
to
+264
| print( # noqa: T201 | ||
| [method for method in dir(self) if method.startswith("_") is False] | ||
| ) |
Contributor
Author
There was a problem hiding this comment.
Ruff ended up reformatting, which then put the noqa comment on the wrong line, which then made ruff complain about the print call, so this is just to satisfy ruff.
chuckwondo
requested review from
betolink,
itcarroll,
jhkennedy and
mfisher87
January 27, 2026 23:29
betolink
reviewed
Jan 28, 2026
betolink
left a comment
Member
There was a problem hiding this comment.
Just a couple questions in the code, this looks good and once get merge it we should release! @chuckwondo
betolink
approved these changes
Jan 28, 2026
betolink
left a comment
Member
There was a problem hiding this comment.
Looks good @chuckwondo, I'm approving and waiting for another maintainer until tomorrow, if nobody has any objection I'll merge it in the morning.
jhkennedy
approved these changes
Jan 29, 2026
jhkennedy
left a comment
Contributor
There was a problem hiding this comment.
This looks good to me as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This doesn't change any functionality, but speeds up fetching of s3 credentials by about 4x based on very primitive benchmarking, due to always using an EDL (bearer) token for fetching temp creds, rather than using EDL username/password (basic auth):
Benchmark results running on my pre-M1 MacBook:
The speedup is due to a reduction in the number of requests. In particular, using basic auth ends up making 4 times the number of requests than using a bearer token does, so the 4x speedup jives with reducing the number of requests by a factor of 4.
Fixes #1182
Fixes #1181
Pull Request (PR) draft checklist - click to expand
contributing documentation
before getting started.
title such as "Add testing details to the contributor section of the README".
Example PRs: #763
example
closes #1. SeeGitHub docs - Linking a pull request to an issue.
CHANGELOG.mdwith details about your change in a section titled## Unreleased. If such a section does not exist, please create one. FollowCommon Changelog for your additions.
Example PRs: #763
README.mdwith details of changes to theearthaccess interface, if any. Consider new environment variables, function names,
decorators, etc.
Click the "Ready for review" button at the bottom of the "Conversation" tab in GitHub
once these requirements are fulfilled. Don't worry if you see any test failures in
GitHub at this point!
Pull Request (PR) merge checklist - click to expand
Please do your best to complete these requirements! If you need help with any of these
requirements, you can ping the
@nsidc/earthaccess-supportteam in a comment and wewill help you out!
Request containing "pre-commit.ci autofix" to automate this.
📚 Documentation preview 📚: https://earthaccess--1183.org.readthedocs.build/en/1183/