Questions tagged [sas-token]

A shared access signature token (SAS token)

From: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a SAS token, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters.

How a shared access signature works A shared access signature is a signed URI that points to one or more storage resources and includes a token that contains a special set of query parameters. The token indicates how the resources may be accessed by the client. One of the query parameters, the signature, is constructed from the SAS parameters and signed with the key that was used to create the SAS. This signature is used by Azure Storage to authorize access to the storage resource.

93 questions
0
votes
1 answer

CDN endpoint throws: the Url Query String's max length is 100

I'm generating a SAS token for a storage on Azure in Terraform. However, the token is always above 100 characters long. This causes azurerm_cdn_endpoint to throw: Error: the Url Query String's max length is 100. I need it because I wanted to add to…
Muerte
  • 83
  • 9
0
votes
0 answers

Kotlin Service Bus SAS Token Creation HMAC String

I'm creating a Kotlin app the requires as SAS Token creating which needs HMAC authentication. The Microsoft website includes various code examples but not a Kotlin…
Duncan Hill
  • 547
  • 2
  • 5
  • 16
0
votes
1 answer

Azure download blob: SAS token not working "Signature did not match"

I'm using Ruby to generate a blob URL. e.g.: https://anasstoragetest2023.blob.core.windows.net/telestream/test.mov?sp=r&st=2023-03-14T20:23:04Z&se=2023-03-18T20:23:04Z&spr=https&sv=2021-12-02&sr=b&sig=6wpeYAlfpnGLPtk5PcIe/P+0q+XeLkIT6XLFR6uY5Os= The…
anode84
  • 308
  • 2
  • 9
0
votes
1 answer

How to Prevent SAS URL being used for another file by just changing the filename in the URL, I'm not using Azure SDK

I'm generating a SAS token for every successful blob upload to Azure storage account and able to view file in browser using URL. But when I change the file names in the URL, I'm able to view another file with same token. How can we prevent this…
0
votes
1 answer

Error while creating azure blob SAS token from react app "Value for one of the query parameters specified in the request URI is invalid"

I am trying to create a sas token from react app async function GenerateSASToken() { const sasUrl =…
Imgane5h
  • 304
  • 1
  • 3
  • 16
0
votes
1 answer

Error while permanent deleting soft deleted blob through rest API

Please help with error PermanentDeleteNotSupportedOnRootBlob I generated SAStoken for BLOB with all permissions including Delete & Permanent Delete While making API call using below…
0
votes
1 answer

Create a SAS Token with Powershell

I would like to be able to create a SAS Token on a Datalake folder in a very specific manner using Powershell. I am able to create the SAS Token in the Azure Portal and cannot find a way to create it exactly like that in Powershell. The SAS Token…
Andreas
  • 336
  • 1
  • 8
0
votes
2 answers

Create SAS token for Azure Data Lake directory in Powershell

I have a storage account in Azure which hosts a data lake. I want to authorize a specific directory with SAS token and I was able to do configure it by clicking in the portal. First of all, I created a stored access policy lets call it "external1".…
Andreas
  • 336
  • 1
  • 8
0
votes
1 answer

SAS Token generated by Set-AzKeyVaultManagedStorageSasDefinition throws Signature did not match errors

I am trying to leverage https://learn.microsoft.com/en-us/powershell/module/az.keyvault/set-azkeyvaultmanagedstoragesasdefinition?view=azps-9.2.0 to create a managed sas definition. The SAS token I use as a template does work, and I am able to…
Papi Abi
  • 173
  • 1
  • 10
0
votes
1 answer

PowerBI Secure Access Blob Storage

I have created a PowerBI report with embedded videos using the HTML customer visual. The videos are hosted on an Azure Blob Storage so I have generated a SAS token that I have added to the video URL in my data. However, I would look to increase the…
Charlotte
  • 1
  • 1
0
votes
1 answer

SAS URL String-to-Sign includes extra newline characters (Azure)

We are creating a User-Delegation-based SAS URL to an Azure storage blob in our Typescript application, but our string-to-sign has extra newline (and ".") characters and we can't figure out why. Below is our code to create the token. What are we…
0
votes
0 answers

Connecting to Azure Data Lake by R using SAS Token

I am trying to connect to Azure DataLake Gen2 via R. I get from Azure DataLake administrator read access to given folder. I have: blob_service = 'https://DataLakeName.blob.core.windows.net' data_lake_storage =…
tomsu
  • 371
  • 2
  • 16
0
votes
1 answer

403 Error when using generated Sas token to display blobs from Azure blob storage

I've been trying to display images from Azure blob storage on my web app for a while now. My storage account SAS token…
0
votes
0 answers

Not able to read multiple files from azure blob with https signed URL from dataproc pyspark

I am only having access to signed HTTPS urls for csv files (seperate for each file) ex: https://.blob.core.windows.net//.csv?sig=****st=****&se=****&sv=****&sp=r&sr=b Below is the code I am using: for…
0
votes
1 answer

Azure SAS Token

I just upgraded Visual Studio to 2022 and discovered that Cloud Connector is no longer part of VS. We used to generate SAS Tokens for our IoT devices from VS, and they took this form: SharedAccessSignature…
Tim
  • 2,701
  • 3
  • 26
  • 47