AzBlob SAS URL doesn't work if Azurite is run on a custom hostname. #23496
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: 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
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
Hello 👋
I'm using the
azblob
package and had some trouble running tests against Azurite.These are the versions I'm using:
What happened?
I have some Go code that uses
azblob
which is backed by Azurite when testing.This all works fine when my tests are running locally, and Azurite is available on
127.0.0.1
.The full URLs are something like
I can create a container, create a blob, create a SAS URL for that blob, and download it OK.
However, if Azurite is on a custom hostname (for example in Gitlab CI, or when tests are also run inside docker), then
GET
-ing the SAS URL fails withIn this case the full URL is something like:
Note that I can see in the Azurite logs that creating the container and blob was successful (HTTP 200).
What did you expect or want to happen?
Expected
http.Get(url)
to work whenurl
was created without error.How can we reproduce it?
go.mod
reprod_test.go
docker-compose.yaml
Run
then compare
Anything we should know about your environment.
MacOS
The text was updated successfully, but these errors were encountered: