Expand description
An Azure Blob Storage implementation of Blob storage.
StructsΒ§
- Azure
Blob - Implementation of Blob backed by Azure Blob Storage.
- Azure
Blob Config - Configuration for opening an AzureBlob.
- Refreshing
Workload πIdentity Credential - A TokenCredential for AKS-style workload identity that re-reads the projected service account token file on every AAD access token refresh.
ConstantsΒ§
- AZURE_
CLIENT_ πID - AZURE_
FEDERATED_ πTOKEN - AZURE_
FEDERATED_ πTOKEN_ FILE - AZURE_
TENANT_ πID - Environment variables that configure AKS-style workload identity. The
names match the ones
azure_identityβs credential chain reads. - TOKEN_
REFRESH_ πBUFFER - Time before an access tokenβs expiry at which its refresh task fetches a replacement, so requests keep being served from an unexpired token while the refresh round trip to AAD is in flight.
- TOKEN_
REFRESH_ πRETRY_ INTERVAL - Minimum time a refresh task waits between fetch attempts once a refresh is due. This paces retries after failures, e.g. when AAD is transiently unreachable, and prevents hot-looping if issued tokens are already within TOKEN_REFRESH_BUFFER of expiry.
FunctionsΒ§
- fetch_
token π - Reads the projected service account token file and exchanges its contents for an AAD access token.
- refresh_
task π - Keeps
slotholding an unexpired token by fetching a replacement withinrefresh_bufferof the current tokenβs expiry. A failed fetch leaves the current token in place and is retried afterretry_interval. - token_
credential π - Returns the token credential to use when the blob URL carries no SAS token.
Type AliasesΒ§
- Exchange
Fn π - Exchanges a client assertion (the projected service account token) for an AAD access token with the given scopes.
- Token
Slot π - A shared slot holding the current access token for one scope set.