Skip to content

blob/azureblob: validate URL endpoint overrides#3737

Open
huynhtrungcip wants to merge 1 commit into
google:masterfrom
huynhtrungcip:fix-azureblob-domain-override
Open

blob/azureblob: validate URL endpoint overrides#3737
huynhtrungcip wants to merge 1 commit into
google:masterfrom
huynhtrungcip:fix-azureblob-domain-override

Conversation

@huynhtrungcip

Copy link
Copy Markdown

This change restricts endpoint overrides supplied through azblob:// bucket URLs.

domain URL overrides are now limited to known Azure Blob service domains, and protocol=http is rejected in bucket URLs. Custom endpoints and local emulators remain configurable through trusted ServiceURLOptions or environment configuration instead of URL query parameters.

The patch also updates the Azure Blob URL example and regenerated website example data.

Tests:

  • go test ./blob/azureblob -count=1
  • go test ./blob/... -count=1
  • (cd internal/website/gatherexamples && go test -count=1)
  • internal/website/gatherexamples/run.sh | diff -u internal/website/data/examples.json -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant