Skip to content

Extract shared HTTP client auth into http-client-common module#6776

Open
srikanthpadakanti wants to merge 3 commits intoopensearch-project:mainfrom
srikanthpadakanti:http-client-common-6767-public
Open

Extract shared HTTP client auth into http-client-common module#6776
srikanthpadakanti wants to merge 3 commits intoopensearch-project:mainfrom
srikanthpadakanti:http-client-common-6767-public

Conversation

@srikanthpadakanti
Copy link
Copy Markdown
Contributor

Description

Per @kkondaka's feedback on #6743, the Basic Auth and Bearer Token auth in the Prometheus scrape source are generic enough to be reused by other HTTP-based sources and sinks. This PR pulls them into a new http-client-common module so plugins like http-source, http-sink, and prometheus-source can share the same auth code instead of each rolling their own.

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

Issues Resolved

Resolves #6767
#6767

Check List

  • [ X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
  • [ X ] New functionality has javadoc added
  • [ X ] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
@srikanthpadakanti
Copy link
Copy Markdown
Contributor Author

srikanthpadakanti commented Apr 22, 2026

Hello @dlvenable @kkondaka Please review this.

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.

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

1 participant