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 interceptors from configauth interface #4583

Merged
merged 3 commits into from Dec 20, 2021

Conversation

jpkrohling
Copy link
Member

Fixes #4582

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

Fixes open-telemetry#4582

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@jpkrohling jpkrohling requested a review from a team as a code owner December 20, 2021 09:47
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@codecov
Copy link

codecov bot commented Dec 20, 2021

Codecov Report

Merging #4583 (e14b483) into main (81ab024) will decrease coverage by 0.03%.
The diff coverage is 73.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4583      +/-   ##
==========================================
- Coverage   90.73%   90.69%   -0.04%     
==========================================
  Files         180      179       -1     
  Lines       10605    10600       -5     
==========================================
- Hits         9622     9614       -8     
- Misses        765      767       +2     
- Partials      218      219       +1     
Impacted Files Coverage Δ
config/configauth/mock_serverauth.go 100.00% <ø> (+16.66%) ⬆️
config/confighttp/confighttp.go 97.10% <55.55%> (-2.90%) ⬇️
config/configgrpc/configgrpc.go 92.10% <79.31%> (-2.38%) ⬇️

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 81ab024...e14b483. Read the comment docs.

return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx, err := authenticate(r.Context(), r.Header)
if err != nil {
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is missing a test, tracked via #4555

CHANGELOG.md Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu enabled auto-merge (squash) December 20, 2021 19:09
@bogdandrutu bogdandrutu merged commit e6f0e01 into open-telemetry:main Dec 20, 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.

Remove interceptors from configauth interface
2 participants