Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Dec 20, 2021

First part of COMPASS-5232 - decided to break it into a few PRs to hopefully make reviewing it a bit easier.

Here's how it looks:

tls-ssl-options.mp4

This PR has a bit of logic for removing ssl and using only tls. Once we add more options for tls/ssl configuration we'll need to add a bit more to ensure when users change this setting we take their existing connection string into consideration (for example they have sslAllowInvalidCertificates=true set and they change tls/ssl to on we can update it to tlsAllowInvalidCertificates=true).
In cases where we can't map the connection string ssl/tls into one of our three buckets we don't select any radio box.
We probably want to update the description for each mode. Open to ideas, I think we can also update them in a later pr if needed.

updatedConnectionString.searchParams.set('tls', 'false');
} else if (tlsOption === TLS_OPTIONS.DEFAULT) {
updatedConnectionString.searchParams.delete('ssl');
updatedConnectionString.searchParams.delete('tls');
Copy link
Collaborator

Choose a reason for hiding this comment

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

fyi, if #2651 is merged first it might be nice to update the core here to have similar changes :)

@Anemy Anemy merged commit 2da9577 into main Dec 22, 2021
@Anemy Anemy deleted the COMPASS-5232-connect-form-tls-tab branch December 22, 2021 18:56
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.

2 participants