diff --git a/src/js/yunohost/controllers/home.js b/src/js/yunohost/controllers/home.js
index 052ea51f..b8a33cf1 100644
--- a/src/js/yunohost/controllers/home.js
+++ b/src/js/yunohost/controllers/home.js
@@ -71,6 +71,12 @@
c.flash('fail', y18n.t('error_retrieve_feed', [securityFeed]));
});
+ c.api("/meltdown-spectre-check", function(data) {
+ if (!data.safe) {
+ c.flash('danger', y18n.t('meltdown_spectre'));
+ }
+ });
+
c.view('home');
});
});
diff --git a/src/locales/en.json b/src/locales/en.json
index 8c6fe9c3..d4919263 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -343,6 +343,7 @@
"install_letsencrypt_cert" : "Install a Let's Encrypt certificate",
"manually_renew_letsencrypt_message" : "Certificate will be automatically renewed during the last 15 days of validity. You can manually renew it if you want to. (Not recommended).",
"manually_renew_letsencrypt" : "Manually renew now",
+ "meltdown_spectre" : "You are vulnerable to the spectre and meltdown critical security vulnerabilities. To fix that, you need to update your system then reboot it to load the new linux kernel.",
"regenerate_selfsigned_cert_message" : "If you want, you can regenerate the self-signed certificate.",
"regenerate_selfsigned_cert" : "Regenerate self-signed certificate",
"revert_to_selfsigned_cert_message" : "If you really want to, you can reinstall a self-signed certificate. (Not recommended)",