-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[xDS] A65 mTLS credentials in bootstrap (part 2) #12255
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
@ejona86 Could you please review this PR when you get a chance? Thanks! |
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.
One quick/important comment. But I'll need to look over this a bit more before merging.
8248816
to
faaa15c
Compare
xds/src/main/java/io/grpc/xds/internal/TlsXdsCredentialsProvider.java
Outdated
Show resolved
Hide resolved
xds/src/main/java/io/grpc/xds/internal/TlsXdsCredentialsProvider.java
Outdated
Show resolved
Hide resolved
5a59b20
to
46f7ddc
Compare
Lifetime of `ChannelCredentials` is now bounded to `GrpcXdsTransport`
46f7ddc
to
434579a
Compare
private static final String CREDS_NAME = "tls"; | ||
private static final String CERT_FILE_KEY = "certificate_file"; |
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.
The grfc says implementations should be able to reuse the FileWatcherCertificateProvider
. It is a bit more work though - we could do similar to CertProvidersslContextProvider's usage here. (You can see it getting used during XdsClientServerSecurityTest
)
- passing the plugin name as file_watcher and
- Make this class (
TlsXdsCredentialsProvider
) implementWatcher
interface for the Watcher parameter that receives certificate updates - Add the returned
Handle
to the list ofCloseable
s inResourceAllocationChannelProvider
. - This will require making CertificateProviderStore.Handle public.
@ejona86 WDYT?
implementing gRFC A65 grpc/proposal/pull/372
This change contains:
TlsChannelCredentials
instantiation process, which involves reading trust certificates from paths provided in the bootstrap configuration file.TlsChannelCredentials
are no longer used (as per [xDS] A65 mTLS credentials in bootstrap (part1) #12350)