-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[Security] Add verification logic using SPIFFE Bundle Maps in XDS #8229
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
[Security] Add verification logic using SPIFFE Bundle Maps in XDS #8229
Conversation
I'll wait for an LGTM from @matthewstevenson88 before making a pass. |
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.
Addressed all comments, still working offline about adjusting the MTLS tests - fixes will come for test failures soon
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, modulo failing tests and the one open comment thread.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8229 +/- ##
==========================================
+ Coverage 81.98% 82.04% +0.06%
==========================================
Files 410 412 +2
Lines 40382 40564 +182
==========================================
+ Hits 33107 33282 +175
- Misses 5895 5899 +4
- Partials 1380 1383 +3
🚀 New features to boost your workflow:
|
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.
Mostly LGTM. Just some minor comments.
authType := pr.AuthInfo.AuthType() | ||
switch wantSecLevel { | ||
case e2e.SecurityLevelNone: | ||
// if pr.AuthInfo.AuthType() != "insecure" { |
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.
Please remove the commented out line.
This adds support for using SPIFFE Bundle Maps for verification in XDS clients and servers.
As part of this, setting
cfg.VerifyPeerCertificate
moved fromxds.go
tohandshake_info.go
because of how the layering works with accessing the SPIFFE Bundle Map of roots - note, this makes the diff a touch harder to read.See the gRFC for more detail grpc/proposal#462
RELEASE NOTES: N/A