-
Notifications
You must be signed in to change notification settings - Fork 690
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
Add support for optional certificate validation #4796
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4796 +/- ##
==========================================
- Coverage 76.09% 76.09% -0.01%
==========================================
Files 140 140
Lines 16895 16896 +1
==========================================
Hits 12857 12857
- Misses 3786 3787 +1
Partials 252 252
|
9fe25e9
to
2588e2a
Compare
Do you think this change could make it to the 1.23 release? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good to me! 👍 Small comment about the field name
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
2588e2a
to
0f03cb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gautierdelorme nice work, everything looks great to me, just one minor wording suggestion on the changelog. Thanks for the PR!
d910de6
to
e9efdcb
Compare
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
e9efdcb
to
45a2250
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending CI, will leave for a second maintainer to approve though. Thanks again @gautierdelorme!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have this feature, thank you for contributing this @gautierdelorme!
* Add support for optional certificate validation Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
This is required to support optional mTLS so that apps can use different authentication schemes (e.g. mTLS, cookies, tokens, etc...).
I initially named the new option
OnlyVerifyClientCertIfGiven
but this was confusing whenSkipClientCertValidation
is also enabled. I decided to go withOnlyRequestClientCert
(and notRequireClientCert
for example) since all the other option are opt-in by setting them to true so I would like to avoid changing this assumption with this new option. The other problem was at the Go API levelDownstreamValidation.RequireClientCert
default value would befalse
since that's the null value for booleans which would change the current behavior and I wanted to avoid implementing it as a pointer.Signed-off-by: Gautier Delorme gautier.delorme@gmail.com