mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[PR #1010] [CLOSED] feat: Add Support of Docker Host as the Provider #1103
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#1103
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/1010
Author: @Masterain98
Created: 10/27/2025
Status: ❌ Closed
Base:
main← Head:docker-host-support📝 Commits (2)
bf88c28Add Docker Host Provider Support3c4c002Update Compatibility on Docker Host Provider📊 Changes
25 files changed (+564 additions, -99 deletions)
View changed files
📝
docker/docker-compose.yml(+2 -0)📝
internal/certapply/applicators/sp_ssh.go(+38 -33)📝
internal/certdeploy/deployers/sp_ssh.go(+48 -43)📝
internal/domain/provider.go(+5 -2)➕
internal/rest/handlers/system.go(+35 -0)📝
internal/rest/routes/routes.go(+4 -0)➕
internal/system/environment.go(+35 -0)➕
internal/system/environment_test.go(+50 -0)➕
pkg/utils/netutil/dockerhost.go(+54 -0)➕
pkg/utils/netutil/dockerhost_test.go(+65 -0)➕
ui/public/imgs/providers/docker.svg(+16 -0)➕
ui/src/api/system.ts(+19 -0)📝
ui/src/components/access/AccessForm.tsx(+13 -2)➕
ui/src/components/access/forms/AccessConfigFieldsProviderDockerHost.tsx(+48 -0)📝
ui/src/components/access/forms/AccessConfigFieldsProviderSSH.tsx(+20 -8)📝
ui/src/components/provider/AccessProviderPicker.tsx(+23 -6)📝
ui/src/components/provider/AccessProviderSelect.tsx(+11 -3)📝
ui/src/components/provider/_shared.ts(+2 -0)📝
ui/src/components/workflow/designer/forms/BizApplyNodeConfigForm.tsx(+3 -0)📝
ui/src/domain/provider.ts(+6 -0)...and 5 more files
📄 Description
📚 新增和改变
在授权凭据的提供商中增加了一个
Docker 宿主机,允许那些通过 Docker 运行 Certimate 的用户以 SSH 的方式更加方便地连接到 Docker 宿主机。本质仍然是 SSH 连接,但允许那些不熟悉 Docker 的用户更容易使用。在使用 Dokcer 运行的时候需要增加
add-host参数:同样,在
docker-compose.yml配置文件中增加extra_hosts也可以使该改变生效:✨动机
service nginx reload之类的命令。所以目录挂载有用,但相比 SSH 作用有限。👩💻 截图
对于 Docker 容器环境
对于非 Docker 环境
Copilot Summary
This pull request introduces support for Docker host access as a provider, enabling the system to detect and utilize the Docker host address for certificate deployment and management. It also adds backend and frontend mechanisms for environment detection and improves the user experience by auto-filling Docker host information in relevant forms. The changes span backend service registration, environment detection utilities, API endpoints, and UI integration.Backend: Docker Host Provider Support
internal/domain/provider.goand registered them in both certificate application and deployment workflows, allowing Docker Host to be used similarly to SSH for ACME challenges and deployments. [1] [2] [3] [4] [5] [6] [7]Backend: Environment Detection and API
pkg/utils/netutil/dockerhost.go) to resolve the Docker host address, with tests for various scenarios. [1] [2]EnvironmentServiceand REST handler to expose environment information (specifically Docker host reachability and address) via/api/system/environment. [1] [2] [3] [4] [5] [6]Frontend: Environment Awareness and Docker Host Integration
AccessConfigFieldsProviderDockerHostcomponent that auto-fills the Docker host address if available. [1] [2] [3] [4] [5] [6]Infrastructure: Docker Compose
host.docker.internal, improving Docker host detection reliability.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.