Skip to content
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

Auto-discover CA certs if TLS is used and --remote-ca-certs-path is unset #11572

Merged
merged 2 commits into from Feb 18, 2021

Conversation

Eric-Arellano
Copy link
Contributor

Closes #11545. This makes it easier for folks to get set up with remote caching and execution.

Users can still set their own cert file with --remote-ca-certs-path.

By now setting up TLS based on the scheme used for --remote-store-address and --remote-execution-address, rather than if --remote-ca-certs-path is set, users can now optionally use TLS for only the store or only remote execution, for example.

[ci skip-rust]
[ci skip-build-wheels]

…te-ca-certs-path` is unset

[ci skip-rust]
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano changed the title Auto-discover CA certs if TLS is used with remote caching and --remote-ca-certs-path is unset Auto-discover CA certs if TLS is used and --remote-ca-certs-path is unset Feb 17, 2021
src/rust/engine/grpc_util/src/lib.rs Outdated Show resolved Hide resolved
[ci skip-rust]
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit d1f5693 into pantsbuild:master Feb 18, 2021
@Eric-Arellano Eric-Arellano deleted the auto-tls branch February 18, 2021 00:55
grpc_util::create_endpoint(
addr.as_str(),
if store_use_tls {
tls_client_config.as_ref()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more functional is: tls_client_config.filter(|_| store_use_tls).as_ref()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But no need to change now that it's landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

configure truststore in TLS mode for gRPC automatically
3 participants