·
2 commits
to devel
since this release
This release updates the backend handling of EDL bearer tokens to reduce the load created on EDL to verify the tokens and fetch the user profile. Best practice when using bearer tokens is still to use a client that can capture session cookies and re-use them on subsequent requests as this will have by far the best performance, however, even if clients are behaving badly, TEA will now better guard against causing degraded performance in the EDL infrastructure.
Python example using bearer tokens and session re-use:
import requests
URLS_TO_DOWNLOAD = [...]
EDL_BEARER_TOKEN = ...
with requests.Session() as s:
for url in URLS_TO_DOWNLOAD:
response = s.get(
url,
headers={"Authorization": f"Bearer {EDL_BEARER_TOKEN}"},
)
# Write response to file, etc...
What's Changed
- Fix Terraform updating dependency layer object when content hasn't changed by @reweeden in #844
- Update dependencies by @reweeden in #852
- PR-3243 Add short TTL caching to bearer tokens by @reweeden in #856
- fet: remove unused code by @mckadesorensen in #859
- Refactor EDL call to use EdlClient from rain-api-core by @reweeden in #855
- PR-3242 Improve handling of JWT bearer tokens by @reweeden in #853
- Add error handling for malformed auth headers by @reweeden in #858
- Move code to src/ folder by @reweeden in #860
Full Changelog: tea-release.2.0.2...tea-release.2.0.3