Skip to content
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

otelcol.receiver.otlp should support otelcol.auth.* for http {} block. #2228

Closed
EconomicTouristsArmLate opened this issue Dec 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@EconomicTouristsArmLate
Copy link

EconomicTouristsArmLate commented Dec 6, 2024

Request

Add auth field to otelcol.receiver.otlp config block http (and ideally on grpc too), which accepts handlers from modules like otelcol.auth.bearer and otelcol.auth.basic.

According to docs on eg otelcol.auth.basic, it should be possible to use these auth methods on other otelcol components, which is not the case for otelcol.receiver.otlp.

Use case

I need to expose Alloy publicly to receive OTLP from external sources.
Thus i need to add auth on the receiver.
I do not have access to mTLS based auth, and want to avoid authenticating on my k8s ingress to simplify secrets management.

@EconomicTouristsArmLate EconomicTouristsArmLate added the enhancement New feature or request label Dec 6, 2024
@ptodev
Copy link
Contributor

ptodev commented Dec 11, 2024

Hi, thanks for opening an issue! From what I can tell, it does look like the upstream OTel Collector supports this use case. I agree that we should port it to Alloy.

I am not sure when the Alloy dev team will find time for this though. In the meantime, if anyone would like to submit a PR then I'd be happy to review it.

@ptodev ptodev closed this as completed Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants