From e45f54ba1e5aa26fbdf42dcd907e9f4e777d7b7e Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Thu, 26 Mar 2020 15:23:34 -0700 Subject: Add SSL Certificate expiration warnings Adds status icons in data table and alert banners for expiring and expired certificates. Warning will be visible within 30 days of certificate expiration. Critical/danger indicators will be visible when certificate is expired. Signed-off-by: Yoshie Muranaka Change-Id: I6f8c27d4ba1563a79b46eec7b869366ecee42f75 --- src/locales/en-US.json | 6 ++ src/store/modules/GlobalStore.js | 2 +- .../SslCertificates/SslCertificates.vue | 77 ++++++++++++++++++++++ src/views/Overview/OverviewQuickLinks.vue | 5 +- 4 files changed, 88 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/locales/en-US.json b/src/locales/en-US.json index d1d5f615..22bb5142 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -238,6 +238,12 @@ "httpsCertificate": "HTTPS Certificate", "ldapCertificate": "LDAP Certificate", "replaceCertificate": "Replace certificate", + "alert": { + "certificateExpiredMessage": "%{certificate} has expired. Consider replacing it with a new certificate.", + "certificateExpiringMessage": "%{certificate} is expiring soon. Consider replacing it with a new certificate.", + "certificatesExpiredMessage": "Some certificates have expired. Consider replacing them with new certificates.", + "certificatesExpiringMessage": "Some certificates are expiring soon. Consider replacing them with new certificates." + }, "modal": { "certificateType": "Certificate type", "certificateFile": "Certificate file", diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js index dd12fc23..6511a45a 100644 --- a/src/store/modules/GlobalStore.js +++ b/src/store/modules/GlobalStore.js @@ -25,7 +25,7 @@ const GlobalStore = { namespaced: true, state: { hostName: '--', - bmcTime: '--', + bmcTime: null, hostStatus: 'unreachable' }, getters: { diff --git a/src/views/AccessControl/SslCertificates/SslCertificates.vue b/src/views/AccessControl/SslCertificates/SslCertificates.vue index ae28271f..313b3218 100644 --- a/src/views/AccessControl/SslCertificates/SslCertificates.vue +++ b/src/views/AccessControl/SslCertificates/SslCertificates.vue @@ -1,6 +1,36 @@