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

Authentication processor 3/4 - Add implementation #1809

Conversation

jpkrohling
Copy link
Member

@jpkrohling jpkrohling commented Sep 18, 2020

Description: Added the OIDC authenticator. Split from #1728.

This PR is based on top of #1808.

Link to tracking Issue: Part of the solution for #1424.

Testing: unit tests.

Documentation: none.

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

@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #1809 into master will increase coverage by 0.03%.
The diff coverage is 98.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1809      +/-   ##
==========================================
+ Coverage   91.16%   91.19%   +0.03%     
==========================================
  Files         271      272       +1     
  Lines       16235    16337     +102     
==========================================
+ Hits        14801    14899      +98     
- Misses       1008     1010       +2     
- Partials      426      428       +2     
Impacted Files Coverage Δ
internal/auth/oidc_authenticator.go 98.03% <98.03%> (ø)
internal/auth/authenticator.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 89.36% <0.00%> (-2.13%) ⬇️

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 430c002...b41363e. Read the comment docs.

@bogdandrutu
Copy link
Member

Please rebase

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@jpkrohling jpkrohling force-pushed the jpkrohling/authentication-processor-part-3 branch from 69ebc55 to b41363e Compare September 24, 2020 08:10
}

func (o *oidcAuthenticator) UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
return o.unaryInterceptor(ctx, req, info, handler, o.Authenticate)
Copy link
Member Author

Choose a reason for hiding this comment

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

@bogdandrutu just realized that moving this to config/configauth/internal might be easier than I thought. I'd still do it in a follow-up PR if you agree.

@jpkrohling
Copy link
Member Author

Any news on this one?

@jpkrohling
Copy link
Member Author

jpkrohling commented Sep 28, 2020

Ping @bogdandrutu

return nil
}

func (o *oidcAuthenticator) Close() error {
Copy link
Member

Choose a reason for hiding this comment

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

In a different PR, rename to Shutdown and pass Context.

@bogdandrutu bogdandrutu merged commit 81936d6 into open-telemetry:master Sep 28, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
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.

2 participants