Skip to content

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

Merged
dlvenable merged 3 commits into
opensearch-project:mainfrom
srikanthpadakanti:http-client-common-6767-public
May 11, 2026
Merged

Extract shared HTTP client auth into http-client-common module#6776
dlvenable merged 3 commits into
opensearch-project:mainfrom
srikanthpadakanti:http-client-common-6767-public

Conversation

@srikanthpadakanti

Copy link
Copy Markdown
Collaborator

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

srikanthpadakanti commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator Author

Hello @dlvenable @kkondaka Please review this.

@kkondaka kkondaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this change @srikanthpadakanti

@dlvenable dlvenable merged commit 2af21f5 into opensearch-project:main May 11, 2026
103 of 108 checks passed
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

3 participants