-
Notifications
You must be signed in to change notification settings - Fork 2.3k
enhancement(sinks): validate sink endpoints as absolute http(s) URLs #26116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomasqueirozb
merged 16 commits into
master
from
sinks/http-endpoint-host-authority-validation
Aug 16, 2026
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
eb68a4a
Add HttpEndpoint type and migrate HTTP sinks to validated endpoint URIs
thomasqueirozb 135c724
feat(sinks): migrate sink endpoints to HttpEndpoint
thomasqueirozb 4fd530d
chore(changelog): note sink endpoint validation
thomasqueirozb e45a1a4
Require a non-empty host in HttpEndpoint validation
thomasqueirozb b12d379
Default a missing endpoint scheme to https in HttpEndpoint
thomasqueirozb 8cb4c9e
chore(changelog): narrow endpoint validation claim to load-time sinks
thomasqueirozb 17d819d
fix(pubsub sink): preserve :publish method suffix on topic path
thomasqueirozb 1b1f2d5
fix(sinks): reject malformed ports in HttpEndpoint
thomasqueirozb 2c777aa
fix(datadog sinks): normalize scheme-less endpoints in healthcheck
thomasqueirozb 110d222
fix(sinks): trim leading slash when appending to a non-root base path
thomasqueirozb 9633a53
Revert "chore(changelog): narrow endpoint validation claim to load-ti…
thomasqueirozb 2b7b923
test(azure_logs_ingestion): expect trailing slash in endpoint string …
thomasqueirozb d30d42f
Fix examples
thomasqueirozb fca2931
fix(gcs sink): preserve significant leading slashes in object keys
thomasqueirozb b8080a6
test(sinks): document rejection of multiple port separators
thomasqueirozb 0576d67
fix(sinks): detect endpoint scheme only at the start
thomasqueirozb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Sink `endpoint` options now require an absolute `http://` or `https://` URL that includes a host. Previously, partial or empty endpoints (for example `endpoint: ""` or `endpoint: "localhost:8080"` without a scheme) were accepted at configuration load and only failed when the sink attempted to send data, or were silently completed with a default scheme and host. Such configurations now fail validation, including with `vector validate --no-environment`, with a clear error. This affects the `appsignal`, `azure_logs_ingestion`, `azure_monitor_logs`, `datadog_metrics`, `datadog_traces`, `gcp_cloud_storage`, `gcp_pubsub`, `gcp_stackdriver_logs`, `gcp_stackdriver_metrics`, `honeycomb`, `humio`, `influxdb`, `prometheus_remote_write`, `sematext`, and `splunk_hec` sinks. | ||
|
|
||
| authors: thomasqueirozb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.