Skip to content

add support for presigned SAS tokens for Azure blob store - #21

Draft
chenosaurus wants to merge 1 commit into
mainfrom
dc/azure_sas_token
Draft

chenosaurus wants to merge 1 commit into
mainfrom
dc/azure_sas_token

Conversation

@chenosaurus

Copy link
Copy Markdown

No description provided.

@biglittlebigben biglittlebigben left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real comment on the actual SAS token part, but some nits. Also while the test for this package are currently pretty sparse, this may be an opportunity to (ask Claude to) write one for the new functionality.

Comment thread azure.go
switch {
case sasToken != "":
if conf.AccountKey != "" {
logger.Warnw("azure: both account_key and sas_token configured, using sas_token", nil)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually do not log warnings for bad user provided input. Even less so here where there is no actual failure.

@3nth

3nth commented Nov 18, 2026 •

Copy link
Copy Markdown

We'd like Azure egress to authenticate with a SAS token instead of the account key: one scoped to a single container, limited to create and write, and expiring soon after the egress ends. We'd be glad to deliver it across these repos:

  1. storage: finish this PR. We'd open a new one from our fork that builds on it, rebased on main, with the review notes addressed and tests for the SAS path in NewAzure and GeneratePresignedUrl.
  2. protocol: add sas_token to AzureBlobUpload, marked SENSITIVITY_SECRET like account_key.
  3. egress: map sas_token in pkg/config/storage.go, bump livekit/storage and livekit/protocol, add tests, and fold in the README change from update readme for Azure SAS Token egress#1196.
  4. python-sdks: bump the protocol submodule and regenerate, so livekit-api can set the field.

Does this plan work for you, and would LiveKit Cloud egress take it once it's merged? We'll sign the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants