Repository navigation
Conversation
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>
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
AzureBlobUploadgetsstring sas_token = 4, with the same options asaccount_key:SENSITIVITY_SECRETandHIDE_AGENT_TOOLS.RedactUploadredacts it as{sas_token}.livekit/livekit_egress.pb.goandlivekit/livekit_egress.twirp.gowithgo tool mage protoand 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.How tested:
go test ./egress/... ./auth/..., with new cases for the redaction and the grants check.Related PRs:
AzureConfig(Azure: authenticate with a SAS token storage#76)sas_tokenthrough to the storage config (feat: upload to Azure Blob with a SAS token egress#1573)🤖 Generated with Claude Code