Skip to content

make azure delegation-key cache configurable #807

Description

@kevinjqliu

I verified this with my own azure storage account, it works great. Thanks for adding this!

I think there are a few follow-ups could make the delegation-key cache more flexible and robust:

  • Make DELEGATION_KEY_VALIDITY optionally configurable so users can limit how long reusable keys remain valid. This setting should never shorten a key below the requested SAS lifetime.
  • Remove the fixed DELEGATION_KEY_MIN_TTL. Azure returns the key’s actual SignedExpiry, so cache it and reuse the key only when SignedExpiry is later than the requested SAS expiry. Otherwise, fetch a new key.
  • Treat Azure’s returned SignedStart and SignedExpiry as authoritative. Return a clear error if they are malformed or do not cover the full SAS lifetime.

Originally posted by @kevinjqliu in #781 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions