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

[configauth] Fix unmarshaling of confighttp.AuthConfig #10749

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Jul 30, 2024

Description

  • Uses mapstructure:",squash" instead of mapstructure:"-" for the Authenticator field
  • Removes pointer (since pointers can't be squashed)
  • Adds test in OTLP receiver for this reproducing the user's issue

Link to tracking issue

Fixes #10750

…10752)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds fix to #10749
@mx-psi mx-psi changed the title add test config for http receiver w/ auth [configauth] Fix unmarshaling of confighttp.AuthConfig Jul 30, 2024
@songy23 songy23 marked this pull request as ready for review July 30, 2024 15:05
@songy23 songy23 requested review from a team and bogdandrutu July 30, 2024 15:05
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.06%. Comparing base (14e8ac8) to head (832e2bb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10749   +/-   ##
=======================================
  Coverage   92.06%   92.06%           
=======================================
  Files         403      403           
  Lines       18812    18812           
=======================================
  Hits        17320    17320           
  Misses       1132     1132           
  Partials      360      360           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit b81b76b into main Jul 30, 2024
61 of 67 checks passed
@codeboten codeboten deleted the codeboten/test-106-bug branch July 30, 2024 15:24
@github-actions github-actions bot added this to the next release milestone Jul 30, 2024
songy23 pushed a commit to songy23/opentelemetry-service that referenced this pull request Jul 30, 2024
…y#10749)

#### Description

- Uses `mapstructure:",squash"` instead of `mapstructure:"-"` for the
Authenticator field
- Removes pointer (since pointers can't be squashed)
- Adds test in OTLP receiver for this reproducing the user's issue

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes open-telemetry#10750

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
songy23 added a commit that referenced this pull request Jul 30, 2024
cherry-pick of
#10749

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
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

Successfully merging this pull request may close these issues.

Authentication broken in confighttp.ServerConfig since OTel Collector v0.106.0
3 participants