Skip to content

feat(egress): add sas_token to AzureBlobUpload - #2032

Open
ludovngh wants to merge 1 commit into
livekit:mainfrom
ludovngh:azure-sas-token
Open

ludovngh wants to merge 1 commit into
livekit:mainfrom
ludovngh:azure-sas-token

Conversation

@ludovngh

@ludovngh ludovngh commented Dec 1, 2026 •

Copy link
Copy Markdown

Egress can upload to Azure Blob Storage only with the storage account key. That key grants full access to every container in the account, so many teams cannot hand it to a third party. A shared access signature (SAS) can be scoped to one container (or a prefix, with a directory-scoped SAS), to write and create only, with a short expiry.

What changed:

  • AzureBlobUpload gets string sas_token = 4, with the same options as account_key: SENSITIVITY_SECRET and HIDE_AGENT_TOOLS.
  • RedactUpload redacts it as {sas_token}.
  • Token grants reject an Azure output carrying a SAS token, as they already reject one with an account key.
  • Regenerated livekit/livekit_egress.pb.go and livekit/livekit_egress.twirp.go with go tool mage proto and protoc 35.1. I left out the rest of the regenerated tree, which only changed gzip bytes and comment formatting with my local Go toolchain; the Generate workflow can refresh it if you prefer.
  • Changeset: patch.

How tested: go test ./egress/... ./auth/..., with new cases for the redaction and the grants check.

Related PRs:

🤖 Generated with Claude Code

Lets egress upload to Azure Blob Storage with a shared access signature
instead of the storage account key. The token is marked secret, hidden
from agent tools, redacted by RedactUpload and rejected in token grants
like the account key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Dec 1, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed 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.

2 participants