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

BasicAuth extract error: invalid Header provided for correctly configured headers #1214

Open
sikula opened this issue Feb 27, 2025 · 2 comments
Labels

Comments

@sikula
Copy link

sikula commented Feb 27, 2025

/about output:

{
  "version": "v1.7.3",
  "uiVersion": "v0.9.18",
  "commit": "624aef0",
  "deploymentId": "01JN3J24J4D87B8TKMV4R75484",
  "updateAvailable": false,
  "latestVersion": "v1.7.3",
  "llmActive": false,
  "llmProvider": null,
  "oidcActive": false,
  "license": "AGPL-3.0-only",
  "mode": "Standalone",
  "staging": "/staging",
  "hotTier": "Disabled",
  "grpcPort": 8001,
  "store": {
    "type": "S3 bucket",
    "path": "http://minio:9000/newrali-local"
  },
  "analytics": {
    "clarityTag": null
  }
}

Description:

When forwarding logs from otel collector, Parseable logs failed with DEBUG actix_web_httpauth::extractors::basic: BasicAuth extract error: invalid Header provided even though the otel collector is correctly configured with the correct Authorization header, confirmed because a curl request with the exact same header successfully creates an event in Parseable

@sikula sikula added the bug label Feb 27, 2025
@nitisht
Copy link
Member

nitisht commented Feb 27, 2025

Thanks for reporting @sikula we'll take a look shortly

@sikula
Copy link
Author

sikula commented Feb 27, 2025

Just for more context, I have an otel collector running with the following configuration

receivers:
  otlp:
    protocols:
      http:
        endpoint: "0.0.0.0:4318"


exporters:
  otlphttp/parseabletraces:
    endpoint: "http://localhost:4242"
    headers:
      Authorization: Basic cGFyc2VhZG1pbjpwYXJzZWFkbWlu
      X-P-Log-Source: otel-traces
      X-P-Stream: otel-traces
      Content-Type: application/json
    encoding: json
    tls:
      insecure: true

  debug:
    verbosity: detailed
    sampling_initial: 5
    sampling_thereafter: 200

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [otlphttp/parseabletraces, debug]

The traces are being picked up by the otel collector, and parseable does seem to see the request:

2025-02-27T16:19:52.132763Z  INFO actix_web::middleware::logger: 192.168.107.1 "POST /v1/traces HTTP/1.1" 200 0 "-" "OpenTelemetry Collector/0.120.1 (darwin/arm64)" 0.016495

But parseable doesn't show any results in the UI. Whenever performing some action in the UI the logs show the invalid Header error, so this might actually just be a different problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants