Skip to content

[processor/resourcedetection] Fix consul TokenFile using path as token value#46746

Merged
ChrsMark merged 3 commits into
open-telemetry:mainfrom
paulojmdias:fix/46745
Mar 11, 2026
Merged

[processor/resourcedetection] Fix consul TokenFile using path as token value#46746
ChrsMark merged 3 commits into
open-telemetry:mainfrom
paulojmdias:fix/46745

Conversation

@paulojmdias

@paulojmdias paulojmdias commented Mar 7, 2026

Copy link
Copy Markdown
Member

Description

When token_file was configured, the file path string was assigned to api.Config.Token instead of api.Config.TokenFile, causing the consul API client to use the path as the authentication token.

Link to tracking issue

Fixes #46745

Testing

Added unit tests.

…h as token value

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@paulojmdias paulojmdias requested review from a team and dashpole as code owners March 7, 2026 21:29
@github-actions github-actions Bot added the processor/resourcedetection Resource detection processor label Mar 7, 2026
@github-actions github-actions Bot requested a review from Aneurysm9 March 7, 2026 21:29
@paulojmdias

Copy link
Copy Markdown
Member Author

/rerun

@paulojmdias paulojmdias changed the title [processor/resourcedetectionprocessor] Fix consul TokenFile using path as token value [processor/resourcedetection] Fix consul TokenFile using path as token value Mar 10, 2026
@paulojmdias paulojmdias added ready to merge Code review completed; ready to merge by maintainers and removed waiting-for-code-owners labels Mar 11, 2026
@ChrsMark ChrsMark merged commit d843e0e into open-telemetry:main Mar 11, 2026
191 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

processor/resourcedetection Resource detection processor ready to merge Code review completed; ready to merge by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[processor/resourcedetection] Consul is defining token_file as raw token

4 participants