Skip to content

[Storage] SAS proof-of-concept #2798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vincenttran-msft
Copy link
Member

@vincenttran-msft vincenttran-msft commented Jul 16, 2025

This PR serves as a proof of concept of how to support the SAS authentication scheme.

The current implementation requires the following changes:

  • A credential-less constructor on all generated clients
  • Change to current generated new() functions to not call endpoint.set_query(None); and null out query parameters
  • Change to current generated methods path-building, as the current design uses join() which clears out all query parameters (note: join() expects a base url and path, not query parameters to be present in the base_url)

Drawbacks of current design:

  • endpoint will be overloaded; in cases such as SAS, the only way to pass along that query parameter information is encoded in the endpoint
  • That means that endpoint does not always strictly represent just the endpoint, but may have query parameters

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Jul 16, 2025
Copy link

github-actions bot commented Jul 16, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure_storage_blob

@vincenttran-msft vincenttran-msft changed the title [Storage] SAS PoC [Storage] SAS proof-of-concept Jul 25, 2025
@heaths
Copy link
Member

heaths commented Jul 28, 2025

I thought you folks were going to consider a builder pattern for SAS tokens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants