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

[BearerAuth] Implement Bearer Token Auth for HTTP Clients #5927

Closed
pavankrish123 opened this issue Oct 26, 2021 · 0 comments
Closed

[BearerAuth] Implement Bearer Token Auth for HTTP Clients #5927

pavankrish123 opened this issue Oct 26, 2021 · 0 comments
Assignees

Comments

@pavankrish123
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Current implementation for Bearer token auth only supports gRPC clients only as the same effect can be achieved by setting "headers" option in exporters with {Authorization: Bearer *****}

Describe the solution you'd like

extensions:
  bearertokenauth:
    token: "somerandomtoken"

receivers:
  hostmetrics:
    scrapers:
      memory:

exporters:
  otlphttp/withauth:
    endpoint: https://someendpoint:8090
    ca_file: /tmp/certs/ca.pem
    auth:
      authenticator: bearertokenauth

Describe alternatives you've considered
We can also make do with directly setting headers but that is not clean nor consistent with grpc clients

Additional context
Add any other context or screenshots about the feature request here.

povilasv referenced this issue in coralogix/opentelemetry-collector-contrib Dec 19, 2022
Do not use uppercase in severity number constants for consistency with other pdata constants. Old constants are deprecated.
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

No branches or pull requests

1 participant