emailengine-app 2.79.5 → 2.79.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +24 -0
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/account-routes.js +6 -3
- package/lib/api-routes/behavior-notes.js +6 -3
- package/lib/consts.js +4 -2
- package/lib/email-client/imap/mailbox.js +32 -8
- package/lib/enum-descriptions.js +1 -1
- package/lib/passkeys.js +39 -7
- package/lib/sso.js +47 -4
- package/lib/tools.js +19 -0
- package/lib/ui-routes/account-routes.js +9 -1
- package/lib/ui-routes/auth-routes.js +158 -62
- package/lib/ui-routes/network-config-routes.js +10 -1
- package/package.json +21 -21
- package/sbom.json +1 -1
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +55 -0
- package/static/js/app.js +4 -35
- package/static/js/passkey-register.js +50 -1
- package/static/js/public.js +128 -0
- package/static/js/ui.js +183 -6
- package/static/licenses.html +375 -774
- package/translations/messages.pot +66 -66
- package/views/account/passkeys.hbs +133 -0
- package/views/account/security.hbs +300 -319
- package/views/accounts/account.hbs +84 -114
- package/views/accounts/register/imap-server.hbs +8 -10
- package/views/config/document-store/index.hbs +6 -6
- package/views/config/license.hbs +4 -1
- package/views/config/oauth/app.hbs +1 -1
- package/views/config/oauth/edit.hbs +1 -1
- package/views/config/oauth/new.hbs +1 -1
- package/views/config/webhooks.hbs +7 -6
- package/views/partials/gateway_js.hbs +7 -6
- package/views/partials/ui/btn.hbs +8 -2
- package/views/partials/ui/confirm-modal.hbs +2 -3
- package/views/partials/ui/empty-state.hbs +25 -0
- package/views/partials/webhooks_editor_functions.hbs +5 -5
- package/workers/api.js +56 -18
|
@@ -52,6 +52,73 @@ async function oidcForcedActive(h) {
|
|
|
52
52
|
return !!(sso.OIDC_FORCED && sso.USE_OIDC_AUTH && (await h.validateOidcConfig()));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
// Authenticator transports recorded at registration, turned into the wording and icon the
|
|
56
|
+
// passkey list shows for each entry. 'internal' outranks 'hybrid' because a platform
|
|
57
|
+
// authenticator that can additionally be driven from a phone is still, to the person
|
|
58
|
+
// reading the list, the passkey living on that computer. The icon class is emitted whole
|
|
59
|
+
// and safelisted in app.tailwind.css with the other server-driven icons - this file is not
|
|
60
|
+
// scanned by Tailwind - so that the wording and the icon stay one mapping in one place.
|
|
61
|
+
const SECURITY_KEY_TRANSPORTS = ['usb', 'nfc', 'ble'];
|
|
62
|
+
|
|
63
|
+
function describePasskeyDevice(transports) {
|
|
64
|
+
let list = Array.isArray(transports) ? transports : [];
|
|
65
|
+
|
|
66
|
+
if (list.includes('internal')) {
|
|
67
|
+
return { label: 'Built-in authenticator', icon: 'icon-[tabler--fingerprint]' };
|
|
68
|
+
}
|
|
69
|
+
if (list.includes('hybrid')) {
|
|
70
|
+
return { label: 'Phone or tablet', icon: 'icon-[tabler--device-mobile]' };
|
|
71
|
+
}
|
|
72
|
+
if (list.some(transport => SECURITY_KEY_TRANSPORTS.includes(transport))) {
|
|
73
|
+
return { label: 'Security key', icon: 'icon-[tabler--usb]' };
|
|
74
|
+
}
|
|
75
|
+
return { label: 'Passkey', icon: 'icon-[tabler--key]' };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Normalizes a stored timestamp into the ISO string the client-side .relative-time
|
|
79
|
+
// formatter parses. A value that does not parse becomes null so the cell renders as
|
|
80
|
+
// "unknown" rather than as an empty gap.
|
|
81
|
+
function passkeyTimestamp(value) {
|
|
82
|
+
let date = value ? new Date(value) : null;
|
|
83
|
+
return date && !isNaN(date.getTime()) ? date.toISOString() : null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Single place that knows how a failed password check is interpreted: an absent password and a
|
|
87
|
+
// verify() that throws (which happens only on a malformed stored hash, never on a wrong password)
|
|
88
|
+
// are both failures, never a pass. Sign-in, the password change and both passkey registration
|
|
89
|
+
// steps all come through here, so a change to how the account password is checked - a KDF swap,
|
|
90
|
+
// a dummy verify to flatten timing - lands in one place.
|
|
91
|
+
async function verifyAdminPassword(hash, password, logger) {
|
|
92
|
+
if (!password) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
return await pbkdf2.verify(hash, password);
|
|
97
|
+
} catch (err) {
|
|
98
|
+
logger.error({ msg: 'Failed to verify password hash', err });
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// View model for the security page's passkey list. Only the fields the list renders are
|
|
104
|
+
// exposed - the stored credential also carries the public key, the signature counter and
|
|
105
|
+
// the owning user, none of which belong in a template context.
|
|
106
|
+
async function listPasskeysForView(username) {
|
|
107
|
+
let credentials = await passkeys.listCredentials(username);
|
|
108
|
+
|
|
109
|
+
return credentials.map(credential => {
|
|
110
|
+
let device = describePasskeyDevice(credential.transports);
|
|
111
|
+
return {
|
|
112
|
+
id: credential.id,
|
|
113
|
+
name: credential.name,
|
|
114
|
+
deviceLabel: device.label,
|
|
115
|
+
deviceIcon: device.icon,
|
|
116
|
+
createdAt: passkeyTimestamp(credential.createdAt),
|
|
117
|
+
lastUsedAt: passkeyTimestamp(credential.lastUsedAt)
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
55
122
|
function init(args) {
|
|
56
123
|
const { server } = args;
|
|
57
124
|
|
|
@@ -206,14 +273,7 @@ function init(args) {
|
|
|
206
273
|
}
|
|
207
274
|
|
|
208
275
|
if (authData && authData.password) {
|
|
209
|
-
let valid;
|
|
210
|
-
try {
|
|
211
|
-
valid = await pbkdf2.verify(authData.password, request.payload.password);
|
|
212
|
-
} catch (E) {
|
|
213
|
-
// verify() only throws on a malformed stored hash, not on a wrong password
|
|
214
|
-
request.logger.error({ msg: 'Failed to verify password hash', err: E });
|
|
215
|
-
valid = false;
|
|
216
|
-
}
|
|
276
|
+
let valid = await verifyAdminPassword(authData.password, request.payload.password, request.logger);
|
|
217
277
|
if (!valid) {
|
|
218
278
|
request.logger.warn({ msg: 'Invalid password', user: request.payload.username, method: 'password', remoteAddress: request.app.ip });
|
|
219
279
|
let err = new Error('Failed to authenticate');
|
|
@@ -558,13 +618,16 @@ function init(args) {
|
|
|
558
618
|
return h.redirect(`/admin`);
|
|
559
619
|
}
|
|
560
620
|
|
|
621
|
+
// Single read for everything the page renders from - serviceUrl feeds both the TOTP
|
|
622
|
+
// label and the passkey registration gate
|
|
623
|
+
let { totpEnabled, totpSeed, serviceUrl } = await settings.getMulti('totpEnabled', 'totpSeed', 'serviceUrl');
|
|
624
|
+
|
|
561
625
|
let totp = {
|
|
562
|
-
enabled:
|
|
626
|
+
enabled: totpEnabled || false
|
|
563
627
|
};
|
|
564
628
|
|
|
565
629
|
let username = (request.auth && request.auth.credentials && request.auth.credentials.user) || 'admin';
|
|
566
630
|
|
|
567
|
-
let totpSeed = await settings.get('totpSeed');
|
|
568
631
|
if (!totpSeed) {
|
|
569
632
|
totpSeed = generateTotpSeed();
|
|
570
633
|
await settings.set('totpSeed', totpSeed);
|
|
@@ -572,10 +635,8 @@ function init(args) {
|
|
|
572
635
|
|
|
573
636
|
if (!totp.enabled) {
|
|
574
637
|
// create QR code
|
|
575
|
-
const serviceUrl = (await settings.get('serviceUrl')) || '';
|
|
576
|
-
|
|
577
638
|
let otpauth_url = generateTotpUrl(totpSeed, {
|
|
578
|
-
label: serviceUrl.replace(/^https?:\/\/|\/$/g, ''),
|
|
639
|
+
label: (serviceUrl || '').replace(/^https?:\/\/|\/$/g, ''),
|
|
579
640
|
issuer: 'EmailEngine'
|
|
580
641
|
});
|
|
581
642
|
|
|
@@ -586,20 +647,9 @@ function init(args) {
|
|
|
586
647
|
}
|
|
587
648
|
}
|
|
588
649
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
pk.createdAtFormatted = new Date(pk.createdAt).toLocaleDateString('en-US', {
|
|
593
|
-
year: 'numeric',
|
|
594
|
-
month: 'short',
|
|
595
|
-
day: 'numeric'
|
|
596
|
-
});
|
|
597
|
-
} catch (err) {
|
|
598
|
-
pk.createdAtFormatted = pk.createdAt;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
let serviceUrl = await settings.get('serviceUrl');
|
|
650
|
+
// A count, not the list: this page summarizes passkeys and links to the page that
|
|
651
|
+
// manages them, so one SCARD replaces fetching every credential hash.
|
|
652
|
+
let passkeyCount = await passkeys.countCredentials(username);
|
|
603
653
|
|
|
604
654
|
return h.view(
|
|
605
655
|
'account/security',
|
|
@@ -612,7 +662,7 @@ function init(args) {
|
|
|
612
662
|
username,
|
|
613
663
|
|
|
614
664
|
totp,
|
|
615
|
-
|
|
665
|
+
passkeyCount,
|
|
616
666
|
serviceUrl,
|
|
617
667
|
providers: await ssoProviders(h),
|
|
618
668
|
okta: {
|
|
@@ -640,6 +690,55 @@ function init(args) {
|
|
|
640
690
|
}
|
|
641
691
|
});
|
|
642
692
|
|
|
693
|
+
// Passkeys get a page of their own, the way the password does: the security page above is an
|
|
694
|
+
// inventory of ways into the account, and a credential list that grows to MAX_PASSKEYS_PER_USER
|
|
695
|
+
// rows would take it over. Registering needs an account password, so an instance without one
|
|
696
|
+
// has nothing to show here.
|
|
697
|
+
server.route({
|
|
698
|
+
method: 'GET',
|
|
699
|
+
path: '/admin/account/passkeys',
|
|
700
|
+
async handler(request, h) {
|
|
701
|
+
if (request.auth.artifacts && request.auth.artifacts.provider) {
|
|
702
|
+
return h.redirect(`/admin`);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
let authData = await settings.get('authData');
|
|
706
|
+
if (!authData || !authData.password) {
|
|
707
|
+
return h.redirect('/admin/account/security');
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
let username = (request.auth && request.auth.credentials && request.auth.credentials.user) || 'admin';
|
|
711
|
+
|
|
712
|
+
let [registeredPasskeys, serviceUrl] = await Promise.all([listPasskeysForView(username), settings.get('serviceUrl')]);
|
|
713
|
+
|
|
714
|
+
// Both reasons registration would fail are known here, so the button is disabled with
|
|
715
|
+
// the reason on it instead of letting the ceremony run into a server error.
|
|
716
|
+
let passkeyBlockReason = null;
|
|
717
|
+
if (!serviceUrl) {
|
|
718
|
+
passkeyBlockReason = 'Set a Service URL in configuration before registering passkeys';
|
|
719
|
+
} else if (registeredPasskeys.length >= consts.MAX_PASSKEYS_PER_USER) {
|
|
720
|
+
passkeyBlockReason = `Maximum of ${consts.MAX_PASSKEYS_PER_USER} passkeys reached - remove one to register another`;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return h.view(
|
|
724
|
+
'account/passkeys',
|
|
725
|
+
{
|
|
726
|
+
pageTitle: 'Passkeys',
|
|
727
|
+
menuAccountSecurity: true,
|
|
728
|
+
activePassword: false,
|
|
729
|
+
disableAuthWarning: true,
|
|
730
|
+
|
|
731
|
+
passkeys: registeredPasskeys,
|
|
732
|
+
passkeyBlockReason,
|
|
733
|
+
serviceUrl
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
layout: 'app'
|
|
737
|
+
}
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
|
|
643
742
|
server.route({
|
|
644
743
|
method: 'POST',
|
|
645
744
|
path: '/admin/account/tfa/enable',
|
|
@@ -831,20 +930,6 @@ function init(args) {
|
|
|
831
930
|
return h.response({ error: 'Account password must be configured before registering passkeys' }).code(403);
|
|
832
931
|
}
|
|
833
932
|
|
|
834
|
-
if (!request.payload.password) {
|
|
835
|
-
return h.response({ error: 'Current password is required' }).code(403);
|
|
836
|
-
}
|
|
837
|
-
let valid;
|
|
838
|
-
try {
|
|
839
|
-
valid = await pbkdf2.verify(authData.password, request.payload.password);
|
|
840
|
-
} catch (err) {
|
|
841
|
-
request.logger.error({ msg: 'Failed to verify password for passkey registration', err });
|
|
842
|
-
valid = false;
|
|
843
|
-
}
|
|
844
|
-
if (!valid) {
|
|
845
|
-
return h.response({ error: 'Invalid password' }).code(403);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
933
|
let { rpId, origin } = await passkeys.getRpConfig();
|
|
849
934
|
if (!rpId || !origin) {
|
|
850
935
|
return h.response({ error: 'Service URL must be configured before registering passkeys' }).code(400);
|
|
@@ -857,6 +942,12 @@ function init(args) {
|
|
|
857
942
|
return h.response({ error: 'Maximum number of passkeys reached' }).code(400);
|
|
858
943
|
}
|
|
859
944
|
|
|
945
|
+
// Last, because it is the expensive check: the request is refused for a missing
|
|
946
|
+
// Service URL or a full list without paying for a PBKDF2 verification first
|
|
947
|
+
if (!(await verifyAdminPassword(authData.password, request.payload.password, request.logger))) {
|
|
948
|
+
return h.response({ error: 'Invalid password' }).code(403);
|
|
949
|
+
}
|
|
950
|
+
|
|
860
951
|
let options = await generateRegistrationOptions({
|
|
861
952
|
rpName: 'EmailEngine',
|
|
862
953
|
rpID: rpId,
|
|
@@ -873,7 +964,7 @@ function init(args) {
|
|
|
873
964
|
}
|
|
874
965
|
});
|
|
875
966
|
|
|
876
|
-
let challengeId = await passkeys.storeChallenge(options.challenge);
|
|
967
|
+
let challengeId = await passkeys.storeChallenge(options.challenge, passkeys.CHALLENGE_REGISTER);
|
|
877
968
|
|
|
878
969
|
return h.response({ challengeId, options }).code(200);
|
|
879
970
|
} catch (err) {
|
|
@@ -911,7 +1002,23 @@ function init(args) {
|
|
|
911
1002
|
return h.response({ error: 'Service URL must be configured' }).code(400);
|
|
912
1003
|
}
|
|
913
1004
|
|
|
914
|
-
let
|
|
1005
|
+
let authData = await settings.get('authData');
|
|
1006
|
+
if (!authData || !authData.password) {
|
|
1007
|
+
return h.response({ error: 'Account password must be configured before registering passkeys' }).code(403);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// The password is confirmed again here, not only when the options were issued:
|
|
1011
|
+
// this is the request that stores a permanent credential, and a check one hop
|
|
1012
|
+
// upstream is only as good as the binding between the two hops. Belt and braces
|
|
1013
|
+
// over the challenge namespacing - a future third way to obtain a registration
|
|
1014
|
+
// challenge would otherwise reopen the bypass. Checked before the challenge is
|
|
1015
|
+
// consumed, so a mistyped password does not burn the nonce and force the whole
|
|
1016
|
+
// ceremony to be repeated.
|
|
1017
|
+
if (!(await verifyAdminPassword(authData.password, request.payload.password, request.logger))) {
|
|
1018
|
+
return h.response({ error: 'Invalid password' }).code(403);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
let challenge = await passkeys.consumeChallenge(request.payload.challengeId, passkeys.CHALLENGE_REGISTER);
|
|
915
1022
|
if (!challenge) {
|
|
916
1023
|
return h.response({ error: 'Challenge expired or invalid. Please try again.' }).code(400);
|
|
917
1024
|
}
|
|
@@ -930,11 +1037,6 @@ function init(args) {
|
|
|
930
1037
|
let { credential } = verification.registrationInfo;
|
|
931
1038
|
let user = (request.auth && request.auth.credentials && request.auth.credentials.user) || 'admin';
|
|
932
1039
|
|
|
933
|
-
let authData = await settings.get('authData');
|
|
934
|
-
if (!authData || !authData.password) {
|
|
935
|
-
return h.response({ error: 'Account password must be configured before registering passkeys' }).code(403);
|
|
936
|
-
}
|
|
937
|
-
|
|
938
1040
|
let saved = await passkeys.saveCredentialIfUnderLimit(
|
|
939
1041
|
{
|
|
940
1042
|
id: credential.id,
|
|
@@ -974,6 +1076,7 @@ function init(args) {
|
|
|
974
1076
|
},
|
|
975
1077
|
payload: Joi.object({
|
|
976
1078
|
challengeId: Joi.string().hex().length(64).required(),
|
|
1079
|
+
password: Joi.string().max(256).allow('', null).optional().label('Current password'),
|
|
977
1080
|
name: Joi.string().max(100).empty('').default('Unnamed passkey'),
|
|
978
1081
|
credential: passkeyCredentialSchema
|
|
979
1082
|
})
|
|
@@ -1009,7 +1112,7 @@ function init(args) {
|
|
|
1009
1112
|
await request.flash({ type: 'danger', message: 'Failed to remove passkey' });
|
|
1010
1113
|
request.logger.error({ msg: 'Failed to delete passkey', err });
|
|
1011
1114
|
}
|
|
1012
|
-
return h.redirect('/admin/account/
|
|
1115
|
+
return h.redirect('/admin/account/passkeys');
|
|
1013
1116
|
},
|
|
1014
1117
|
options: {
|
|
1015
1118
|
validate: {
|
|
@@ -1022,7 +1125,7 @@ function init(args) {
|
|
|
1022
1125
|
async failAction(request, h, err) {
|
|
1023
1126
|
await request.flash({ type: 'danger', message: 'Failed to remove passkey' });
|
|
1024
1127
|
request.logger.debug({ msg: 'Failed to delete passkey', err });
|
|
1025
|
-
return h.redirect('/admin/account/
|
|
1128
|
+
return h.redirect('/admin/account/passkeys').takeover();
|
|
1026
1129
|
},
|
|
1027
1130
|
|
|
1028
1131
|
payload: Joi.object({
|
|
@@ -1070,7 +1173,7 @@ function init(args) {
|
|
|
1070
1173
|
userVerification: 'required'
|
|
1071
1174
|
});
|
|
1072
1175
|
|
|
1073
|
-
let challengeId = await passkeys.storeChallenge(options.challenge);
|
|
1176
|
+
let challengeId = await passkeys.storeChallenge(options.challenge, passkeys.CHALLENGE_AUTH);
|
|
1074
1177
|
|
|
1075
1178
|
return h.response({ challengeId, options }).code(200);
|
|
1076
1179
|
} catch (err) {
|
|
@@ -1120,7 +1223,7 @@ function init(args) {
|
|
|
1120
1223
|
return h.response({ success: false, error: 'Authentication failed' }).code(400);
|
|
1121
1224
|
}
|
|
1122
1225
|
|
|
1123
|
-
let challenge = await passkeys.consumeChallenge(request.payload.challengeId);
|
|
1226
|
+
let challenge = await passkeys.consumeChallenge(request.payload.challengeId, passkeys.CHALLENGE_AUTH);
|
|
1124
1227
|
if (!challenge) {
|
|
1125
1228
|
request.logger.warn({ msg: 'Passkey auth failed: challenge expired or invalid', method: 'passkey', remoteAddress: request.app.ip });
|
|
1126
1229
|
return h.response({ success: false, error: 'Challenge expired or invalid. Please try again.' }).code(400);
|
|
@@ -1159,7 +1262,7 @@ function init(args) {
|
|
|
1159
1262
|
return h.response({ success: false, error: 'Authentication failed' }).code(400);
|
|
1160
1263
|
}
|
|
1161
1264
|
|
|
1162
|
-
await passkeys.
|
|
1265
|
+
await passkeys.recordAuthentication(storedCredential.id, verification.authenticationInfo.newCounter);
|
|
1163
1266
|
|
|
1164
1267
|
setAdminSession(request, {
|
|
1165
1268
|
user,
|
|
@@ -1264,14 +1367,7 @@ function init(args) {
|
|
|
1264
1367
|
throw err;
|
|
1265
1368
|
}
|
|
1266
1369
|
|
|
1267
|
-
let valid;
|
|
1268
|
-
try {
|
|
1269
|
-
valid = await pbkdf2.verify(authData.password, request.payload.password0);
|
|
1270
|
-
} catch (E) {
|
|
1271
|
-
// verify() only throws on a malformed stored hash, not on a wrong password
|
|
1272
|
-
request.logger.error({ msg: 'Failed to verify password hash', err: E });
|
|
1273
|
-
valid = false;
|
|
1274
|
-
}
|
|
1370
|
+
let valid = await verifyAdminPassword(authData.password, request.payload.password0, request.logger);
|
|
1275
1371
|
if (!valid) {
|
|
1276
1372
|
request.logger.warn({ msg: 'Invalid current password', remoteAddress: request.app.ip });
|
|
1277
1373
|
let err = new Error('Failed to verify current password');
|
|
@@ -13,7 +13,7 @@ const { parentPort } = require('worker_threads');
|
|
|
13
13
|
const settings = require('../settings');
|
|
14
14
|
const { redis } = require('../db');
|
|
15
15
|
const { REDIS_PREFIX } = require('../consts');
|
|
16
|
-
const { failAction, getServiceHostname } = require('../tools');
|
|
16
|
+
const { failAction, getServiceHostname, reloadTlsServers } = require('../tools');
|
|
17
17
|
const { ADDRESS_STRATEGIES, settingsSchema } = require('../schemas');
|
|
18
18
|
const { updatePublicInterfaces } = require('../utils/network');
|
|
19
19
|
const { getServerStatus, cachedTemplates } = require('./route-helpers');
|
|
@@ -362,11 +362,20 @@ function init(args) {
|
|
|
362
362
|
path: '/admin/config/smtp/certificate',
|
|
363
363
|
async handler(request, h) {
|
|
364
364
|
try {
|
|
365
|
+
// What is installed before provisioning, so the reload below fires only when a new
|
|
366
|
+
// certificate actually arrived and repeated clicks do not keep restarting both
|
|
367
|
+
// servers.
|
|
368
|
+
let existingCertificateData = await h.getCertificate();
|
|
369
|
+
|
|
365
370
|
let certificateData = await h.getCertificate(true);
|
|
366
371
|
if (!certificateData) {
|
|
367
372
|
throw new Error(`Failed to provision a ceritifcate`);
|
|
368
373
|
}
|
|
369
374
|
|
|
375
|
+
if (certificateData.fingerprint && certificateData.fingerprint !== (existingCertificateData && existingCertificateData.fingerprint)) {
|
|
376
|
+
await reloadTlsServers(call, request.logger, { domain: certificateData.domain });
|
|
377
|
+
}
|
|
378
|
+
|
|
370
379
|
return {
|
|
371
380
|
success: true,
|
|
372
381
|
domain: certificateData.domain,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emailengine-app",
|
|
3
|
-
"version": "2.79.
|
|
3
|
+
"version": "2.79.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"productTitle": "EmailEngine",
|
|
6
6
|
"description": "Email Sync Engine",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://emailengine.app/",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bull-board/api": "9.
|
|
55
|
-
"@bull-board/hapi": "9.
|
|
54
|
+
"@bull-board/api": "9.6.0",
|
|
55
|
+
"@bull-board/hapi": "9.6.0",
|
|
56
56
|
"@elastic/elasticsearch": "8.15.3",
|
|
57
57
|
"@hapi/accept": "6.0.3",
|
|
58
58
|
"@hapi/bell": "13.1.0",
|
|
@@ -65,26 +65,26 @@
|
|
|
65
65
|
"@msgpack/msgpack": "3.1.3",
|
|
66
66
|
"@phc/pbkdf2": "1.1.14",
|
|
67
67
|
"@postalsys/bounce-classifier": "3.0.0",
|
|
68
|
-
"@postalsys/certs": "1.0.
|
|
68
|
+
"@postalsys/certs": "1.0.19",
|
|
69
69
|
"@postalsys/ee-client": "1.7.0",
|
|
70
|
-
"@postalsys/email-ai-tools": "1.13.
|
|
71
|
-
"@postalsys/email-content": "0.1.
|
|
72
|
-
"@postalsys/email-text-tools": "2.4.
|
|
70
|
+
"@postalsys/email-ai-tools": "1.13.23",
|
|
71
|
+
"@postalsys/email-content": "0.1.4",
|
|
72
|
+
"@postalsys/email-text-tools": "2.4.15",
|
|
73
73
|
"@postalsys/gettext": "4.1.1",
|
|
74
74
|
"@postalsys/joi-messages": "1.0.5",
|
|
75
75
|
"@postalsys/templates": "2.0.2",
|
|
76
|
-
"@sentry/node": "10.
|
|
76
|
+
"@sentry/node": "10.72.0",
|
|
77
77
|
"@simplewebauthn/browser": "13.3.0",
|
|
78
|
-
"@simplewebauthn/server": "13.3.
|
|
79
|
-
"@zone-eu/mailsplit": "5.4.
|
|
78
|
+
"@simplewebauthn/server": "13.3.3",
|
|
79
|
+
"@zone-eu/mailsplit": "5.4.16",
|
|
80
80
|
"@zone-eu/wild-config": "1.7.6",
|
|
81
81
|
"ace-builds": "1.44.0",
|
|
82
|
-
"bullmq": "6.
|
|
82
|
+
"bullmq": "6.3.3",
|
|
83
83
|
"compare-versions": "6.1.1",
|
|
84
84
|
"dotenv": "17.4.2",
|
|
85
|
-
"encoding-japanese": "2.
|
|
85
|
+
"encoding-japanese": "2.3.0",
|
|
86
86
|
"exponential-backoff": "3.1.3",
|
|
87
|
-
"fast-xml-parser": "5.11.
|
|
87
|
+
"fast-xml-parser": "5.11.1",
|
|
88
88
|
"gettext-parser": "7.0.1",
|
|
89
89
|
"handlebars": "4.7.9",
|
|
90
90
|
"hapi-auth-bearer-token": "8.0.0",
|
|
@@ -93,27 +93,27 @@
|
|
|
93
93
|
"html-to-text": "10.0.1",
|
|
94
94
|
"ical.js": "1.5.0",
|
|
95
95
|
"iconv-lite": "0.7.3",
|
|
96
|
-
"imapflow": "1.7.
|
|
96
|
+
"imapflow": "1.7.7",
|
|
97
97
|
"ioredfour": "1.4.3",
|
|
98
98
|
"ioredis": "6.0.0",
|
|
99
99
|
"ipaddr.js": "2.5.0",
|
|
100
100
|
"joi": "18.2.5",
|
|
101
101
|
"libbase64": "1.3.0",
|
|
102
|
-
"libmime": "5.4.
|
|
102
|
+
"libmime": "5.4.3",
|
|
103
103
|
"libqp": "2.1.1",
|
|
104
|
-
"mailparser": "3.9.
|
|
104
|
+
"mailparser": "3.9.19",
|
|
105
105
|
"marked": "15.0.12",
|
|
106
106
|
"minimist": "1.2.8",
|
|
107
107
|
"murmurhash": "2.0.1",
|
|
108
108
|
"nanoid": "3.3.18",
|
|
109
|
-
"nodemailer": "9.0
|
|
109
|
+
"nodemailer": "9.1.0",
|
|
110
110
|
"pino": "10.3.1",
|
|
111
111
|
"prom-client": "15.1.3",
|
|
112
112
|
"psl": "1.15.0",
|
|
113
|
-
"pubface": "1.1.
|
|
113
|
+
"pubface": "1.1.8",
|
|
114
114
|
"punycode.js": "2.3.1",
|
|
115
115
|
"qrcode": "1.5.4",
|
|
116
|
-
"smtp-server": "3.19.
|
|
116
|
+
"smtp-server": "3.19.5",
|
|
117
117
|
"socks": "2.8.9",
|
|
118
118
|
"timezones-list": "3.1.0",
|
|
119
119
|
"undici": "7.29.0"
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"acorn-walk": "8.3.5",
|
|
129
129
|
"chai": "4.5.0",
|
|
130
130
|
"eerawlog": "1.5.5",
|
|
131
|
-
"eslint": "10.9.
|
|
131
|
+
"eslint": "10.9.1",
|
|
132
132
|
"flyonui": "2.4.1",
|
|
133
133
|
"pino-pretty": "13.1.3",
|
|
134
134
|
"prettier": "3.9.6",
|
|
135
|
-
"resedit": "3.0
|
|
135
|
+
"resedit": "3.1.0",
|
|
136
136
|
"spdx-satisfies": "6.0.0",
|
|
137
137
|
"supertest": "7.2.2",
|
|
138
138
|
"tailwindcss": "4.3.3",
|