Skip to content

Commit 7e3dd12

Browse files
committed
Auto-verify accepted deployment fingerprint
1 parent 5c15ffc commit 7e3dd12

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/meteor/server/settings/misc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const updateFingerprint = async function (fingerprint: string, verified: boolean
3535

3636
export const verifyFingerPrint = async function (emit = true) {
3737
const DeploymentFingerPrintRecordHash = await Settings.getValueById('Deployment_FingerPrint_Hash');
38+
const deploymentFingerPrintVerified = await Settings.getValueById('Deployment_FingerPrint_Verified');
3839

3940
const fingerprint = generateFingerprint();
4041

@@ -45,6 +46,10 @@ export const verifyFingerPrint = async function (emit = true) {
4546
}
4647

4748
if (DeploymentFingerPrintRecordHash === fingerprint) {
49+
if (process.env.AUTO_ACCEPT_FINGERPRINT === 'true' && deploymentFingerPrintVerified === false) {
50+
logger.info({ msg: 'Verifying current fingerprint as AUTO_ACCEPT_FINGERPRINT is true', fingerprint });
51+
await updateFingerprint(fingerprint, true, emit);
52+
}
4853
return;
4954
}
5055

0 commit comments

Comments
 (0)