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

Cannot export using otlp with basic auth #8999

Closed
politician opened this issue Apr 1, 2022 · 1 comment
Closed

Cannot export using otlp with basic auth #8999

politician opened this issue Apr 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@politician
Copy link

politician commented Apr 1, 2022

Describe the bug
I would like to export traces to a Tempo instance hosted on Grafana Cloud. This requires authentication with basic auth, but I cannot make it work using the basicauth extension, it seems only supported when receiving traces via otlp but not exporting.

It works when using basic auth headers.

Steps to reproduce

receivers:
  jaeger:
    protocols:
      grpc:
      thrift_http:

processors:
  batch:

exporters:
  logging:
    logLevel: debug

  otlp:
    endpoint: tempo-eu-west-0.grafana.net:443
    auth:
      authenticator: basicauth

extensions:
  basicauth:
    htpasswd:
      inline: |
        user:pass

service:
  extensions:
    - basicauth

  pipelines:
    traces:
      receivers:
        - jaeger
      processors:
        - batch
      exporters:
        - logging
        - otlp

What did you expect to see?

Traces sent to Tempo

What did you see instead?

cannot start exporters: requested authenticator is not a client authenticator

Workaround using headers

receivers:
  jaeger:
    protocols:
      grpc:
      thrift_http:

processors:
  batch:

exporters:
  logging:
    logLevel: debug

  otlp:
    endpoint: tempo-eu-west-0.grafana.net:443
    headers:
      authorization: Basic {{ "user:pass" | b64enc }}

service:
  pipelines:
    traces:
      receivers:
        - jaeger
      processors:
        - batch
      exporters:
        - logging
        - otlp

What version did you use?
Version: 0.48.0

Environment
Kubernetes

@politician politician added the bug Something isn't working label Apr 1, 2022
@jpkrohling
Copy link
Member

The basic auth extension is only for incoming requests, not for outgoing. There's a plan to add support for basic auth on the client side, but it hasn't been merged yet (see #8847). As such, I'm closing this, as work is being tracked there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants