feat: cache upstream bearer tokens #92

Merged
benvin merged 1 commits from benvin/cache-bearer-tokens into master 2026-07-02 21:35:46 +10:00

1 Commits

Author SHA1 Message Date
unkinben 493b3cb906 feat: cache upstream bearer tokens in Redis
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
Each upstream 401 re-ran the full token-endpoint dance. Cache the minted
token keyed by remote + challenge, honouring the token's expires_in (with
a safety margin, defaulting to 60s), so subsequent blobs sharing a scope
reuse it.

Refs #77
2026-07-02 00:42:48 +10:00