-
Notifications
You must be signed in to change notification settings - Fork 4.6k
xds/bootstrap: add trusted_xds_server server feature
#8692
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
base: master
Are you sure you want to change the base?
Conversation
ab07959 to
c691084
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8692 +/- ##
==========================================
- Coverage 83.42% 83.27% -0.16%
==========================================
Files 416 416
Lines 32303 32308 +5
==========================================
- Hits 26948 26903 -45
- Misses 3993 4026 +33
- Partials 1362 1379 +17
🚀 New features to boost your workflow:
|
trusted_xds_server server feature
|
The generic xDS client's configuration can be found here:
We need to propagate this newly added server feature to the generic xDS client as well. In order to do that, we need to do the following:
func (s *ServerConfig) SupportsServerFeature(feature ServerFeature) bool { ... }
type ServerFeature int
const (
ServerFeatureIgnoreResourceDeletion ServerFeature = iota
ServerFeatureTrustedXDSServer
)
|
This PR implements the Bootstrap config changes for gRFC A81.
Authority rewriting is a security-sensitive feature that should only be enabled when the xDS server is explicitly trusted to provide such configuration. gRFC A81 specifies that this trust is indicated by adding
trusted_xds_serverto the server_features list for a given server in the bootstrap file.RELEASE NOTES: None