From 26d51de447b6b89f8634f374018332b298837edb Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Sat, 13 Apr 2024 19:12:51 +0000 Subject: [PATCH] fix: fingerprint auto accepted still asks for admin confirmation (#32202) --- .changeset/shaggy-yaks-train.md | 5 +++++ apps/meteor/server/settings/misc.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/shaggy-yaks-train.md diff --git a/.changeset/shaggy-yaks-train.md b/.changeset/shaggy-yaks-train.md new file mode 100644 index 000000000000..1dbc97b48228 --- /dev/null +++ b/.changeset/shaggy-yaks-train.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixed an issue where Rocket.Chat would ask admins to confirm fingerprint change (new workspace vs configuration update), even when `AUTO_ACCEPT_FINGERPRINT` environment variable set to `"true"`. diff --git a/apps/meteor/server/settings/misc.ts b/apps/meteor/server/settings/misc.ts index e04c4d6d3b8e..ae8371276533 100644 --- a/apps/meteor/server/settings/misc.ts +++ b/apps/meteor/server/settings/misc.ts @@ -40,6 +40,7 @@ const verifyFingerPrint = async function () { if (process.env.AUTO_ACCEPT_FINGERPRINT === 'true') { logger.info('Updating fingerprint as AUTO_ACCEPT_FINGERPRINT is true', fingerprint); await updateFingerprint(fingerprint, true); + return; } logger.warn('Updating fingerprint as pending for admin verification', fingerprint);