-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
spiffe: add support for spiffe bundle format #36190
base: main
Are you sure you want to change the base?
Conversation
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
api/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
Outdated
Show resolved
Hide resolved
/wait |
api/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
Show resolved
Hide resolved
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.
Thanks for the contribution. some new comments to the API to start the review. And please address the comment from @markdroth .
api/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
Outdated
Show resolved
Hide resolved
06a982e
to
b360f38
Compare
/lgtm api |
Please merge main. |
b360f38
to
28b5308
Compare
/wait on CI |
ff1fb7e
to
38f5dee
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.
Thanks for the contribution and patience. And some comments are added.
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc
Outdated
Show resolved
Hide resolved
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc
Outdated
Show resolved
Hide resolved
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h
Outdated
Show resolved
Hide resolved
Please also check the CI :) |
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.
Thanks so much for all your contribution and time for this great work. And only some points need to be addressed:
- Code: I think we have refactored the Json related code to make it exception free. I think you may need to update releated code.
- CI, CI still not happy.
- The unnecessary test data updateding.
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.cc
Outdated
Show resolved
Hide resolved
source/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator.h
Outdated
Show resolved
Hide resolved
And I just find another problem, seems the SPIFFE bundle map is still a Is this OK to accept this implementation? cc @alyssawilk |
/wait |
/lgtm api |
/wait ci |
@briansonnenberg please fix DCO and format https://github.com/envoyproxy/envoy/actions/runs/11732634738/job/32685328220#step:13:527 errors /wait |
Signed-off-by: Brian Sonnenberg <[email protected]>
07497e0
to
b390760
Compare
Looks like CI is failing? https://github.com/envoyproxy/envoy/actions/runs/11979451058/job/33401707343 |
/wait |
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Signed-off-by: Brian Sonnenberg <[email protected]>
Commit Message: Adds alternative to "trust_domains" config for the spiffe validator—"trust_bundle_map".
Additional Description:
#35567
trust_bundle_map points to a local file containing a SPIFFE bundle map. A file watcher is set up to trigger refreshes to the SPIFFE data when this file is modified. SPIFFE refresh hint and sequence number are currently ignored.
Risk Level: medium
Testing: WIP
Docs Changes: TBD
Release Notes: TBD