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

Remove protocol-specific authenticator interfaces #4255

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

jpkrohling
Copy link
Member

This PR removes the gRPC and HTTP-specific interfaces from the client authenticators. Implementations should now comply with the main top-level interface, which defines the functions previously defined at the individual interfaces.

Fixes #4239

Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de

@jpkrohling jpkrohling requested review from a team and owais October 25, 2021 11:35
@jpkrohling
Copy link
Member Author

@pavankrish123, would you like to take a look at this one?

@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #4255 (c2ab6af) into main (b7e2e33) will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4255      +/-   ##
==========================================
+ Coverage   88.07%   88.22%   +0.15%     
==========================================
  Files         173      173              
  Lines       10188    10320     +132     
==========================================
+ Hits         8973     9105     +132     
  Misses        975      975              
  Partials      240      240              
Impacted Files Coverage Δ
config/configauth/mock_clientauth.go 100.00% <ø> (ø)
config/configauth/configauth.go 100.00% <100.00%> (+14.28%) ⬆️
config/configauth/mock_serverauth.go 100.00% <100.00%> (ø)
config/configgrpc/configgrpc.go 93.91% <100.00%> (ø)
config/confighttp/confighttp.go 100.00% <100.00%> (ø)
model/pdata/generated_metrics.go 96.82% <0.00%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7e2e33...c2ab6af. Read the comment docs.

This PR removes the gRPC and HTTP-specific interfaces from
the client authenticators. Implementations should now comply
with the main top-level interface, which defines the functions
previously defined at the individual interfaces.

Fixes open-telemetry#4239

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
Copy link
Contributor

@pavankrish123 pavankrish123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks.

Opened issue open-telemetry/opentelemetry-collector-contrib#5904 and corresponding PR open-telemetry/opentelemetry-collector-contrib#5905 for corresponding (Minor) changes that have to be made on the client authentication implementation modules.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, love the simplification. Just one comment about a test description, otherwise this looks good.

config/configauth/configauth_test.go Outdated Show resolved Hide resolved
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@bogdandrutu bogdandrutu merged commit 2cf0fbd into open-telemetry:main Oct 26, 2021
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.

Make client and server authenticator interfaces consistent
4 participants