Blob user delegation SAS wrong service version #19249
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
0.5.0
, lock file:go version
:go version go1.18.6 linux/amd64
With user delegation sas, the default for service version (sv) doesn't match the generated string to sign. It should be
2020-02-10
but it's2019-12-12
:azure-sdk-for-go/sdk/storage/azblob/sas/query_params.go
Line 26 in c4b71e1
As the string to sing includes the snapshotTime it must be version 2020-02-10:
https://learn.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas#version-2020-02-10
azure-sdk-for-go/sdk/storage/azblob/sas/service.go
Line 95 in c4b71e1
Opening the generated url causes this error:
Setting the version to
2020-02-10
manually in the BlobSignatureValues fixes it.The default of service version should match the used string to sign and the generated sas url should work.
The generate url will cause the error above.
The text was updated successfully, but these errors were encountered: