mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[PR #945] [MERGED] v0.4 multiprocessing lego & http-01 pre-work #1082
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#1082
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/certimate-go/certimate/pull/945
Author: @fudiwei
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/3/2025
Merged by: @fudiwei
Base:
next← Head:dev📝 Commits (10+)
9090742refactor(ui): clean coded9a46b3refactor: clean codeb8c612erefactor: certapplyf98597achore(deps): upgrade go mod dependenciesa5ae2fcfeat: redirect lego logging4ad5ad4fix(ui): system logs overflow264205echore(deps): upgrade npm dependenciese1fc2bafeat: use lego with multi-processingf7aed27fix(ui): status not realtime changed in WorkflowRunDetaila7cb3dcchore(ui): improve i18n📊 Changes
206 files changed (+3103 additions, -2422 deletions)
View changed files
➕
cmd/intercmd.go(+93 -0)📝
go.mod(+34 -33)📝
go.sum(+77 -180)➖
internal/applicant/acme_ca.go(+0 -31)➖
internal/applicant/acme_user.go(+0 -206)➖
internal/applicant/applicant.go(+0 -279)➖
internal/applicant/applicant_test.go(+0 -44)➖
internal/applicant/providers.go(+0 -44)➕
internal/certapply/account.go(+114 -0)📝
internal/certapply/applicators/registry.go(+7 -8)📝
internal/certapply/applicators/sp_acmehttpreq.go(+6 -6)📝
internal/certapply/applicators/sp_aliyun_dns.go(+4 -4)📝
internal/certapply/applicators/sp_aliyun_esa.go(+5 -5)📝
internal/certapply/applicators/sp_aws_route53.go(+6 -6)📝
internal/certapply/applicators/sp_azure_dns.go(+6 -6)📝
internal/certapply/applicators/sp_baiducloud_dns.go(+4 -4)📝
internal/certapply/applicators/sp_bunny.go(+3 -3)📝
internal/certapply/applicators/sp_cloudflare.go(+4 -4)📝
internal/certapply/applicators/sp_cloudns.go(+4 -4)📝
internal/certapply/applicators/sp_cmcccloud_dns.go(+4 -4)...and 80 more files
📄 Description
该 PR 包含以下内容变更:
备注
关于多进程
截止此 PR 发起时,lego 只提供了输出到 stderr 简单的日志能力。虽然可通过自定义日志器的方式记录日志,但其本身不区分调用者,对于 certimate 这样需要并发调用 lego 来申请证书的场景,无法满足将日志准确与相应工作流运行相关联的需要。在之前的版本中,用户必须通过命令行终端才能查看 lego 的相关日志。
因此,此 PR 封装了多进程执行指令的能力,将调用 lego 的相关逻辑转移到子进程中执行,这样可以通过重定向子进程 stdout、stderr 的方式来实现上述的日志记录需求。
由于多进程会产生一些额外的系统开销,对于对此敏感的部分用户,仍可以通过指定环境变量
CERTIMATE_WORKFLOW_MULTIPROC=0来禁用多进程模式。禁用后的 lego 日志记录方式与之前版本保持一致。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.