mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Replace email content with placeholders (#1530)
* Replace email content with placeholders * Improve sample email wording
This commit is contained in:
parent
b6acbc77f1
commit
b5c016dda2
2 changed files with 21 additions and 62 deletions
|
@ -486,9 +486,9 @@ sslCertificateValidation:
|
||||||
# The minimum number of days between two successive expiring notification emails.
|
# The minimum number of days between two successive expiring notification emails.
|
||||||
expirationWarningIntervalDays: 15
|
expirationWarningIntervalDays: 15
|
||||||
# Text for expiring certificate notification email subject.
|
# Text for expiring certificate notification email subject.
|
||||||
expirationWarningEmailSubjectText: "[Important] Expiring SSL certificate for Google Registry EPP connection"
|
expirationWarningEmailSubjectText: "Expiring SSL certificate for Example Registry EPP connection"
|
||||||
# Text for expiring certificate notification email body that accepts 3 parameters:
|
# Text for expiring certificate notification email body that accepts 4 parameters:
|
||||||
# registrar name, certificate type, and expiration date, respectively.
|
# registrar name, certificate type, expiration date and registrar id, respectively.
|
||||||
expirationWarningEmailBodyText: |
|
expirationWarningEmailBodyText: |
|
||||||
Dear %1$s,
|
Dear %1$s,
|
||||||
|
|
||||||
|
@ -496,25 +496,15 @@ sslCertificateValidation:
|
||||||
|
|
||||||
Kindly update your production account certificate within the support console using the following steps:
|
Kindly update your production account certificate within the support console using the following steps:
|
||||||
|
|
||||||
1. Navigate to support.registry.google and login using your %4$s@registry.google credentials.
|
1. Navigate to support.registry.example and login using your %4$s@registry.example credentials.
|
||||||
* If this is your first time logging in, you will be prompted to reset your password, so please keep your new password safe.
|
|
||||||
* If you are already logged in with some other Google account(s) but not your %4$s@registry.google account, you need to click on
|
|
||||||
“Add Account” and login using your %4$s@registry.google credentials.
|
|
||||||
2. Select “Settings > Security” from the left navigation bar.
|
2. Select “Settings > Security” from the left navigation bar.
|
||||||
3. Click “Edit” on the top left corner.
|
3. Click “Edit” on the top left corner.
|
||||||
4. Enter your full certificate string (including lines -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) in the box.
|
4. Enter your full certificate string in the box.
|
||||||
5. Click “Save”. If there are validation issues with the form, you will be prompted to fix them and click “Save” again.
|
5. Click “Save”.
|
||||||
|
|
||||||
A failover SSL certificate can also be added in order to prevent connection issues once your main certificate expires. Connecting with either of the certificates will work with our production EPP server.
|
|
||||||
|
|
||||||
Further information about our EPP connection requirements can be found in section 9.2 in the updated Technical Guide in your Google Drive folder.
|
|
||||||
|
|
||||||
Note that account certificate changes take a few minutes to become effective and that the existing connections will remain unaffected by the change.
|
|
||||||
|
|
||||||
If you also would like to update your OT&E account certificate, please send an email from your primary or technical contact to registry-support@google.com and include the full certificate string (including lines -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----).
|
|
||||||
|
|
||||||
Regards,
|
Regards,
|
||||||
Google Registry
|
Example Registry
|
||||||
|
|
||||||
# The minimum number of bits an RSA key must contain.
|
# The minimum number of bits an RSA key must contain.
|
||||||
minimumRsaKeyLength: 2048
|
minimumRsaKeyLength: 2048
|
||||||
|
|
|
@ -59,49 +59,18 @@ class SendExpiringCertificateNotificationEmailActionTest {
|
||||||
private static final String EXPIRATION_WARNING_EMAIL_BODY_TEXT =
|
private static final String EXPIRATION_WARNING_EMAIL_BODY_TEXT =
|
||||||
" Dear %1$s,\n"
|
" Dear %1$s,\n"
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " We would like to inform you that your %2$s SSL certificate will expire at\n"
|
+ "We would like to inform you that your %2$s certificate will expire at %3$s."
|
||||||
+ " %3$s. Please take note that using expired certificates will prevent\n"
|
|
||||||
+ " successful Registry login.\n"
|
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " Kindly update your production account certificate within the support\n"
|
+ " Kind update your account using the following steps: "
|
||||||
+ " console using the following steps:\n"
|
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " 1. Navigate to support.registry.google and login using your\n"
|
+ " 1. Navigate to support and login using your %4$s@registry.example credentials.\n"
|
||||||
+ " %4$s@registry.google credentials.\n"
|
+ " 2. Click Settings -> Privacy on the top left corner.\n"
|
||||||
+ " * If this is your first time logging in, you will be prompted to\n"
|
+ " 3. Click Edit and enter certificate string."
|
||||||
+ " reset your password, so please keep your new password safe.\n"
|
+ " 3. Click Save"
|
||||||
+ " * If you are already logged in with some other Google account(s) but\n"
|
+ "Regards,"
|
||||||
+ " not your %4$s@registry.google account, you need to click on\n"
|
+ "Example Registry";
|
||||||
+ " “Add Account” and login using your %4$s@registry.google credentials.\n"
|
|
||||||
+ " 2. Select “Settings > Security” from the left navigation bar.\n"
|
|
||||||
+ " 3. Click “Edit” on the top left corner.\n"
|
|
||||||
+ " 4. Enter your full certificate string\n"
|
|
||||||
+ " (including lines -----BEGIN CERTIFICATE----- and\n"
|
|
||||||
+ " -----END CERTIFICATE-----) in the box.\n"
|
|
||||||
+ " 5. Click “Save”. If there are validation issues with the form, you will\n"
|
|
||||||
+ " be prompted to fix them and click “Save” again.\n"
|
|
||||||
+ "\n"
|
|
||||||
+ " A failover SSL certificate can also be added in order to prevent connection\n"
|
|
||||||
+ " issues once your main certificate expires. Connecting with either of the\n"
|
|
||||||
+ " certificates will work with our production EPP server.\n"
|
|
||||||
+ "\n"
|
|
||||||
+ " Further information about our EPP connection requirements can be found in\n"
|
|
||||||
+ " section 9.2 in the updated Technical Guide in your Google Drive folder.\n"
|
|
||||||
+ "\n"
|
|
||||||
+ " Note that account certificate changes take a few minutes to become\n"
|
|
||||||
+ " effective and that the existing connections will remain unaffected by\n"
|
|
||||||
+ " the change.\n"
|
|
||||||
+ "\n"
|
|
||||||
+ " If you also would like to update your OT&E account certificate, please send\n"
|
|
||||||
+ " an email from your primary or technical contact to\n"
|
|
||||||
+ " registry-support@google.com and include the full certificate string\n"
|
|
||||||
+ " (including lines -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----).\n"
|
|
||||||
+ "\n"
|
|
||||||
+ " Regards,\n"
|
|
||||||
+ " Google Registry\n";
|
|
||||||
|
|
||||||
private static final String EXPIRATION_WARNING_EMAIL_SUBJECT_TEXT =
|
private static final String EXPIRATION_WARNING_EMAIL_SUBJECT_TEXT = "Expiration Warning Email";
|
||||||
"[Important] Expiring SSL certificate for Google " + "Registry EPP connection";
|
|
||||||
|
|
||||||
@RegisterExtension
|
@RegisterExtension
|
||||||
public final AppEngineExtension appEngine =
|
public final AppEngineExtension appEngine =
|
||||||
|
@ -623,11 +592,11 @@ class SendExpiringCertificateNotificationEmailActionTest {
|
||||||
assertThat(emailBody).contains(registrarName);
|
assertThat(emailBody).contains(registrarName);
|
||||||
assertThat(emailBody).contains(certificateType.getDisplayName());
|
assertThat(emailBody).contains(certificateType.getDisplayName());
|
||||||
assertThat(emailBody).contains(certExpirationDateStr);
|
assertThat(emailBody).contains(certExpirationDateStr);
|
||||||
assertThat(emailBody).contains(registrarId + "@registry.google");
|
assertThat(emailBody).contains(registrarId + "@registry.example");
|
||||||
assertThat(emailBody).doesNotContain("%1$s@registry.google");
|
assertThat(emailBody).doesNotContain("%1$s");
|
||||||
assertThat(emailBody).doesNotContain("%2$s@registry.google");
|
assertThat(emailBody).doesNotContain("%2$s");
|
||||||
assertThat(emailBody).doesNotContain("%3$s@registry.google");
|
assertThat(emailBody).doesNotContain("%3$s");
|
||||||
assertThat(emailBody).doesNotContain("%4$s@registry.google");
|
assertThat(emailBody).doesNotContain("%4$s");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestOfyAndSql
|
@TestOfyAndSql
|
||||||
|
|
Loading…
Add table
Reference in a new issue