Skip to content

feat(otelcol): add support for htpasswd file authentication #3916

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pkarakal
Copy link

PR Description

This adds support for using htpasswd for server authentication. Since otelcol.auth.basic is a wrapper around basicauthextension, which already supports both inline and file based server authentication, this adds such support for alloy as well. This would be really useful when we want to have multiple users trying to send data to Alloy and we don't want to a reverse proxy for authenticating calls.

This also makes the username and password fields optional since we should be able to just use htpasswd files for server side authentication. They must be filled in when the handler is used for client authentication.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
@CLAassistant
Copy link

CLAassistant commented Jun 29, 2025

CLA assistant check
All committers have signed the CLA.

@pkarakal pkarakal force-pushed the basic-auth-htpasswd branch from 920e168 to f15ea16 Compare June 29, 2025 13:29
@pkarakal pkarakal marked this pull request as ready for review June 29, 2025 13:30
@pkarakal pkarakal requested review from clayton-cornell and a team as code owners June 29, 2025 13:30
@pkarakal pkarakal force-pushed the basic-auth-htpasswd branch from f15ea16 to c9b7cb7 Compare June 29, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants