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

Add flag for backward compatibility with TLS checks #421

Merged
merged 11 commits into from
May 30, 2024

Conversation

msft-paddy14
Copy link
Contributor

In #392, we added stronger TLS checks for cluster gossip to prevent an unintended node from connecting. The behavior might be unexpected for some of consumers (using older versions of Garnet) as this would mean specifying the ClusterTlsClientTargetHost parameter which they might've missed earlier as it was not validated in all scenarios - it was behind a ClientCertificateRequired flag. This flag also implied that server cert was also not validated when Garnet acted as a client in gossip scenarios.
But to maintain backward compatibility we're adding another flag to enable the stronger TLS checks conditionally. However, it should be recommended that this is turned on to prevent unexpected cluster connections.

@msft-paddy14 msft-paddy14 requested a review from vazois May 24, 2024 18:28
@badrishc
Copy link
Contributor

This flag also implied that server cert was also not validated when Garnet acted as a client in gossip scenarios

This flag should be enabled by default, and gossip should set this flag as well so that the gossip client validates the certificate.

@badrishc badrishc merged commit 12e9656 into main May 30, 2024
4 checks passed
@badrishc badrishc deleted the users/padgupta/add_flag_to_control_tlscheck branch May 30, 2024 00:28
chyin6 pushed a commit to jusjin-org/garnet that referenced this pull request Jul 2, 2024
* change option name

* update flag name

* remove braces

* nit; fix breaking TestUtils initialization for TLS options

* cleanup of PR

* minor rephrasing

---------

Co-authored-by: Vasileios Zois <vazois@microsoft.com>
Co-authored-by: Badrish Chandramouli <badrishc@microsoft.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants