Skip to content

Move common HTTP auth mechanisms (Basic Auth, Bearer Token) to a shared module #6767

@srikanthpadakanti

Description

@srikanthpadakanti

Per @kkondaka's feedback on #6743, the Basic Auth and Bearer Token auth in the Prometheus scrape source (ScrapeAuthenticationConfig, BasicAuthenticator, BearerTokenAuthenticator) are generic enough to be reused by other HTTP-based sources and sinks.

We should pull these into a common module so plugins like the HTTP source, HTTP sink (#6747), and Prometheus source can share the same auth code instead of each rolling their own.

This also makes it easier to add new auth schemes (like SigV4) down the road since you'd only implement it once.

Related PR: #6743

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions