@geekmidas/cli 10.0.0-alpha.162 → 10.0.0-alpha.163
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/dist/{cli-Brr1IVq1.mjs → cli-BAn-gJ6S.mjs} +2 -2
- package/dist/{cli-Brr1IVq1.mjs.map → cli-BAn-gJ6S.mjs.map} +1 -1
- package/dist/{cli-D--xSSlK.cjs → cli-CI-wO3-w.cjs} +2 -2
- package/dist/{cli-D--xSSlK.cjs.map → cli-CI-wO3-w.cjs.map} +1 -1
- package/dist/deploy/public.cjs +1 -1
- package/dist/deploy/public.mjs +1 -1
- package/dist/{deploy-Bb-o2KYC.mjs → deploy-C4Qb-A-z.mjs} +26 -6
- package/dist/{deploy-Bb-o2KYC.mjs.map → deploy-C4Qb-A-z.mjs.map} +1 -1
- package/dist/{deploy-Ck0zXkM7.cjs → deploy-CGywNg5R.cjs} +26 -6
- package/dist/{deploy-Ck0zXkM7.cjs.map → deploy-CGywNg5R.cjs.map} +1 -1
- package/dist/{destroy-JHapr9UF.cjs → destroy-IUx8vz1q.cjs} +2 -2
- package/dist/{destroy-JHapr9UF.cjs.map → destroy-IUx8vz1q.cjs.map} +1 -1
- package/dist/{destroy-DIV6l_94.mjs → destroy-xjqqzAmU.mjs} +2 -2
- package/dist/{destroy-DIV6l_94.mjs.map → destroy-xjqqzAmU.mjs.map} +1 -1
- package/dist/{github-CRvdaD2Y.cjs → github-82k5-OZO.cjs} +4 -3
- package/dist/github-82k5-OZO.cjs.map +1 -0
- package/dist/{github-BOXn5NEP.mjs → github-DxgGIvq1.mjs} +4 -3
- package/dist/github-DxgGIvq1.mjs.map +1 -0
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +27 -27
- package/dist/index.mjs.map +1 -1
- package/dist/{serverSetup-BoxtHWkI.cjs → serverSetup-BXk8SGuz.cjs} +2 -2
- package/dist/{serverSetup-BoxtHWkI.cjs.map → serverSetup-BXk8SGuz.cjs.map} +1 -1
- package/dist/{serverSetup-DxcbUlwE.mjs → serverSetup-CzoKT3nH.mjs} +2 -2
- package/dist/{serverSetup-DxcbUlwE.mjs.map → serverSetup-CzoKT3nH.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/github-BOXn5NEP.mjs.map +0 -1
- package/dist/github-CRvdaD2Y.cjs.map +0 -1
|
@@ -2635,13 +2635,33 @@ async function ensureSesEmail(ctx) {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
2637
|
/**
|
|
2638
|
-
* The domain as an SES identity
|
|
2639
|
-
* through the stage's DNS.
|
|
2640
|
-
*
|
|
2641
|
-
*
|
|
2638
|
+
* The domain as an SES identity that signs what it sends with Easy DKIM: its
|
|
2639
|
+
* three CNAMEs, through the stage's DNS.
|
|
2640
|
+
*
|
|
2641
|
+
* The check is DKIM's own status, not the domain's: a domain verified by its
|
|
2642
|
+
* older TXT record is verified, and sends unsigned until DKIM is set up on it.
|
|
2643
|
+
* One whose DKIM is verified is left as it is, signing turned back on if it
|
|
2644
|
+
* was turned off; any other — new, verified only by TXT, or created by
|
|
2645
|
+
* another stack and never finished — is asked for its tokens, which SES
|
|
2646
|
+
* answers without making a second identity.
|
|
2642
2647
|
*/
|
|
2643
2648
|
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2644
|
-
|
|
2649
|
+
const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
|
|
2650
|
+
const dkim = DkimAttributes?.[domain];
|
|
2651
|
+
if (dkim?.DkimVerificationStatus === "Success") {
|
|
2652
|
+
if (dkim.DkimEnabled) return;
|
|
2653
|
+
await ctx.change({
|
|
2654
|
+
construct: "email",
|
|
2655
|
+
resource: `SES identity ${domain}`,
|
|
2656
|
+
change: "turn DKIM signing back on"
|
|
2657
|
+
}, async () => {
|
|
2658
|
+
await ses.send(new SES.SetIdentityDkimEnabledCommand({
|
|
2659
|
+
Identity: domain,
|
|
2660
|
+
DkimEnabled: true
|
|
2661
|
+
}));
|
|
2662
|
+
});
|
|
2663
|
+
return;
|
|
2664
|
+
}
|
|
2645
2665
|
let tokens = [];
|
|
2646
2666
|
await ctx.change({
|
|
2647
2667
|
construct: "email",
|
|
@@ -3685,4 +3705,4 @@ Object.defineProperty(exports, "deploy", {
|
|
|
3685
3705
|
}
|
|
3686
3706
|
});
|
|
3687
3707
|
|
|
3688
|
-
//# sourceMappingURL=deploy-
|
|
3708
|
+
//# sourceMappingURL=deploy-CGywNg5R.cjs.map
|