vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.2k stars 1.6k forks source link

Support Bearer Authorization headers in http_server source #21850

Open watsonian opened 1 day ago

watsonian commented 1 day ago

A note for the community

Use Cases

Some places pushing logs via webhook only support specifying a bearer token for the Authorization header (e.g., Authorization: Bearer <token>). Vector's http_server source currently only supports basic auth here (e.g., Authorization: Basic <base64-encoded-user:pass>).

Attempted Solutions

No response

Proposal

There should be an additional auth.token (or similar) option that Vector would use to authenticate Authorization: Bearer <token> headers.

References

No response

Version

0.42.0