Commit Graph

22 Commits

Author SHA1 Message Date
greper 5e8bdac008 Revert "perf: 添加AWS Rate Limit应对措施 (#748)" (#749)
This reverts commit 56b8c689ec.
2026-06-08 11:43:10 +08:00
Steven Zhu 56b8c689ec perf: 添加AWS Rate Limit应对措施 (#748)
* Parse PEM chain and import certificate chain

Split the PEM in certInfo.crt into a leaf certificate and intermediate chain (using a lookbehind regex), trim the blocks, and pass the chain to ImportCertificateCommand only when present. Replace console.log with this.logger.info and log the returned CertificateArn. This ensures the leaf cert is uploaded separately from its chain and avoids sending an empty CertificateChain.

* Add AWS retry & CloudFront deployment wait

Introduce robust retry and polling helpers to handle AWS throttling and CloudFront propagation. Added AwsClient.withRetry (exponential backoff, handles common throttling errors, default 5 attempts/base 2s) and waitForDistributionDeployed (polls until distribution Status is "Deployed", default 10min timeout/15s interval). Update deploy-to-cloudfront plugin to use withRetry for Get/UpdateDistribution and importCertificate, pass AwsClient into uploadToACM, and wait for each distribution to finish deploying before continuing to avoid PreconditionFailed errors. Improves reliability when facing rate limits and global CloudFront propagation delays; adds informative logging for retry and deployment status.
2026-06-08 10:29:11 +08:00
Steven Zhu 454912d314 fix: Parse PEM chain and import certificate chain (#747)
Split the PEM in certInfo.crt into a leaf certificate and intermediate chain (using a lookbehind regex), trim the blocks, and pass the chain to ImportCertificateCommand only when present. Replace console.log with this.logger.info and log the returned CertificateArn. This ensures the leaf cert is uploaded separately from its chain and avoids sending an empty CertificateChain.
2026-06-08 10:28:39 +08:00
xiaojunnuo 4b57a0d729 chore: format 2026-05-31 01:41:33 +08:00
xiaojunnuo 7a3e68d656 perf: 所有授权增加测试按钮 2026-02-15 18:44:35 +08:00
xiaojunnuo 9f21b1a097 perf: 所有的dnsprovider 支持导入域名列表 2026-01-23 18:37:38 +08:00
xiaojunnuo db453c8038 chore: 修复metadata的一些bug 2026-01-14 02:05:31 +08:00
xiaojunnuo 8caab1fd92 perf: aws route53 2025-12-26 23:20:14 +08:00
xiaojunnuo 74865d53f8 chore: 修复aws route53 删除record失败的问题 2025-12-26 09:29:29 +08:00
xiaojunnuo cbb8319cfa perf: 支持aws route53 dns 2025-12-25 18:56:27 +08:00
xiaojunnuo 0e467a6024 chore: docs 2025-12-22 16:36:32 +08:00
xiaojunnuo 8f6e5bd24b feat: dist打包前检查 2025-09-28 11:02:25 +08:00
xiaojunnuo 4b3f4a868a fix: 某些插件找不到的bug 2025-07-11 09:45:33 +08:00
xiaojunnuo 06a7371d2b chore: 2025-05-10 15:04:57 +08:00
xiaojunnuo 8087524bef chore: product info 2025-04-27 22:51:47 +08:00
xiaojunnuo 91ffb0820a chore: plugin元数据换成yaml格式 2025-04-15 00:16:57 +08:00
xiaojunnuo 759cfdaabd pref: 日志中加密授权信息输出替换成星号 2025-04-12 00:14:55 +08:00
xiaojunnuo c56f48c1e3 perf: 优化图标 2025-03-24 21:27:31 +08:00
xiaojunnuo de40be430b chore: 支持手动上传证书并部署 2025-03-18 00:52:50 +08:00
xiaojunnuo 26adf7d437 perf: 优化插件名称显示 2024-12-26 01:32:52 +08:00
xiaojunnuo 0db3570026 chore: 2024-12-10 18:30:32 +08:00
xiaojunnuo 0ae39f160a perf: 支持aws cloudfront 2024-12-10 18:28:48 +08:00