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
1
vote
2 answers

How to decode Azure MQTT username and password from the SAS token?

I am new to Azure MQTT server. I have created account in Azure and Device is registered. I received Hostname, DeviceID and shared access key. I am using an embedded device working on C. Previously I connected with another MQTT Broker. How to get the…
1
vote
2 answers

How to use SAS connection string from storage account in Azure function application setting

I can run function app by using connection string from access key from storage account and putting it into function application setting However, if I generate SAS and connection string from Shared access signature menu in storage account and use…
1
vote
1 answer

How use User Delegation SAS Or Azure RBAC to grant permissions on storage account containers for azure active directory B2C users?

I ‘m working with Active Directory B2C and Storage account in Azure. I would like to use User Delegation SAS or Azure RBAC to grant limited access to containers and blobs. I linked my new Tenant to my subscription, but I cannot create storage…
1
vote
1 answer

Why can't my app access by blob storage using this SAS token?

I am attempting to access a blob storage account and simply list the contents of a container using a SAS token. I am generating an access policy (according to this doc) and referencing that access policy within my access token as…
Matt Spinks
  • 6,380
  • 3
  • 28
  • 47
1
vote
1 answer

Azure Blob Storage Sas Error: AuthenticationFailed

I'm trying to use SAS tokens in Azure Blob Storage following this tutorial, but I hit this error: AuthenticationFailed Server failed to authenticate the request. Make sure the value of Authorization header is…
Maxime Gélinas
  • 2,202
  • 2
  • 18
  • 35
1
vote
0 answers

'Bad page state' kernel error appearing randomly on azure vm when SAS is running

Since a few months, we start seeing Bad page state errors appearing in /var/log/message. Here is the exact stack trace Sep 27 15:14:11 az-prod-sas1 kernel: BUG: Bad page state in process sas pfn:1a49ff Sep 27 15:14:11 az-prod-sas1 kernel:…
bagerard
  • 5,681
  • 3
  • 24
  • 48
1
vote
1 answer

How to connect Azure Data Lake Store gen 2 File Share with Azure Databricks?

I have an Azure data lake storage gen 2 account, with hierarchical namespace enabled. I generated a SAS-token to the account, and I recieve data to a folder in the File Share (File Service). Now I want to access these files through Azure Databricks…
Irmeli
  • 11
  • 4
0
votes
0 answers

Endpoint returning SAS tokens rather than downloading and serving content to the client

I am trying to re-design the flow we currently have in the app, where GET /image/123 endpoint would download image from Azure Blob Storage and serve it back to the client to use SAS tokens to offload our BE. Initially I tried doing it in a way that…
0
votes
1 answer

Generate Sas token for storage account with managed identity

I use the following to get a sas token, it works perfectly targeting the specific container and blob: [HttpGet] public IActionResult GetBlobSasToken() { var storageAccountName = "storage-Name"; var saUri =…
0
votes
2 answers

SAS token of azure container generated by c# client is not permitted to getAccessControl/setAccessControl

I have a Spark application and I want to access an Azure Blob container by writing the event log into the blob container. I want to authenticate using a SAS token. The SAS token generated by the Azure portal works fine. However, the one generated by…
0
votes
0 answers

How to connect azure queue storage and azure blob storage with celery by sas

I have this kind of code: app = Celery('myapp', broker='azurestoragequeues://:{sas_token}@{url}', backend='azureblockblob://:{another_sas_token}@{another_url}') When I run celery -A myapp, I got this…
Tiancheng Liu
  • 782
  • 2
  • 9
  • 22
0
votes
1 answer

Why I'm getting "Make sure Authorization header is formed correctly including the signature" issue while connecting to ADLS using SAS URI?

I have a SAS URI (read, list) for an ADLS hosted in another resource group. While I try to connect to that ADLS using the SAS URI, I get successful connection but unable to copy or browse files. Databricks Error: Server failed to authenticate the…
0
votes
1 answer

Is there a secure way to provide users with Shared Access Signature Tokens for Azure Storage containers?

My API allows users to upload and download files to my Azure Storage account. To do this, they need a SAS token with permissions based on if they want to download or upload a file. I was wondering if there was a secure method to provide users with…
0
votes
1 answer

Using C#, how do I retrieve SAS token for account key to access (read/write/delete, etc..) blob storage?

How do I rewrite this code used for User delegation to account key? public async Task GetBlobSASToken(string containerName) { _logger.LogInformation($"Initial Load Worker called Blob SAS Token creation."); try …
Chaka
  • 1,709
  • 11
  • 33
  • 58
0
votes
1 answer

How can I configure Azure Data Factory to create Table Storage tables during a copy activity (using SAS token)?

I'm creating a data factory pipeline to copy data from blob storage to table storage. The table may or may not exist in table storage and needs to be created if it doesn't exist. The Authentication method for my table storage linked service must…
humbleice
  • 816
  • 8
  • 15