From 2506331e250488d813b1561c320dab70ba318712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Mon, 25 Sep 2023 23:51:02 -1000 Subject: [PATCH] Improve wording for TLS-related options (#115) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When configuring a SMTP sender, the user is prompted for an "Encryption method" and given a drop-down list to choose from. The list currently contain "SSL", "TLS" and "None" which is a bit confusing given that TLS is built on deprecated SSL and both refer to the same thing. In this list, "SSL" actually mean TLS, and "TLS" actually mean StartTLS (aka Opportunistic TLS). Adjust wording to wake this more obvious. The new wording match the one used in Thunderbird when configuring connection security. Signed-off-by: Romain Tartière --- .cypress/integration/email_senders_and_groups.spec.js | 2 +- public/pages/Emails/__tests__/SendersTableControls.test.tsx | 2 +- public/pages/Emails/components/forms/CreateSenderForm.tsx | 2 +- public/utils/constants.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.cypress/integration/email_senders_and_groups.spec.js b/.cypress/integration/email_senders_and_groups.spec.js index 76155d93..2aef7889 100644 --- a/.cypress/integration/email_senders_and_groups.spec.js +++ b/.cypress/integration/email_senders_and_groups.spec.js @@ -67,7 +67,7 @@ describe('Test create email senders', () => { force: true, }); cy.wait(delay); - cy.get('.euiContextMenuItem__text').contains('TLS').click({ force: true }); + cy.get('.euiContextMenuItem__text').contains('STARTTLS').click({ force: true }); cy.wait(delay); cy.get('.euiButton__text').contains('Create').click({ force: true }); diff --git a/public/pages/Emails/__tests__/SendersTableControls.test.tsx b/public/pages/Emails/__tests__/SendersTableControls.test.tsx index b4f5a3e9..732af29e 100644 --- a/public/pages/Emails/__tests__/SendersTableControls.test.tsx +++ b/public/pages/Emails/__tests__/SendersTableControls.test.tsx @@ -56,7 +56,7 @@ describe(' spec', () => { ); fireEvent.click(utils.getByText('Encryption method')); - fireEvent.click(utils.getByText('TLS')); + fireEvent.click(utils.getByText('STARTTLS')); fireEvent.click(utils.getByText('None')); expect(onFiltersChange).toBeCalledWith({ encryptionMethod: ["start_tls", "none"] }); }); diff --git a/public/pages/Emails/components/forms/CreateSenderForm.tsx b/public/pages/Emails/components/forms/CreateSenderForm.tsx index 18274c15..df373d4f 100644 --- a/public/pages/Emails/components/forms/CreateSenderForm.tsx +++ b/public/pages/Emails/components/forms/CreateSenderForm.tsx @@ -147,7 +147,7 @@ export function CreateSenderForm(props: CreateSenderFormProps) { style={{ maxWidth: '650px' }} helpText={
- SSL or TLS is recommended for security. To use either one, you must + SSL/TLS or STARTTLS is recommended for security. To use either one, you must enter each sender account's credentials to the OpenSearch keystore using the CLI.{' '}