Skip to content

[configgrpc] respect auth extension error codes #14005

@therealpandey

Description

@therealpandey

Component(s)

otelcol

Is your feature request related to a problem? Please describe.

The configgrpc helper ignores the error returned by a custom authenticator and always returns a status.Error(codes.Unauthenticated, err.Error()).

https://github.com/open-telemetry/opentelemetry-collector/blame/6cd9c4e26feb910f19720950c8337af28194a70d/config/configgrpc/configgrpc.go#L614

Describe the solution you'd like

If the authenticator extensions sends an error of type "google.golang.org/grpc/status".Error, it should be respected and propagated to the upstream client.

Use cases:

  1. The authenticator extension might itself want to send retryable errors.

Describe alternatives you've considered

Additional context

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions