[GH-ISSUE #612] 建议本地部署路径不要使用/etc/ssl/certs #406

Closed
opened 2026-03-03 01:03:05 +03:00 by kerem · 0 comments
Owner

Originally created by @imaxwen on GitHub (Apr 14, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/612

软件版本 / Release Version

v0.3.7

问题描述 / Description

本地部署节点,WebUI中的部署路径的默认值是/etc/ssl/certs, 这个目录在alpine容器中,也用来存储ca-certificates.

如果将/etc/ssl/certs目录挂载到本地,比如本地部署后将证书加载指nginx中,或者直接将此目录挂载指Nginx容器的证书路径。

会导致两种场景的问题:
1、如果/etc/ssl/certs挂载的本地路径原本有文件,会覆盖容器中的目录,导致ca证书丢失。
2、如果本地挂载路径为空,会导致容器中的ca证书相关大量文件被挂载出来,但实际是无用的,还可能导致文件被修改,ca证书损坏等隐患。

建议:
将本地部署的默认路径修改为: /etc/ssl/certs之外的目录,比如:/etc/certs

其他 / Miscellaneous

No response

Originally created by @imaxwen on GitHub (Apr 14, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/612 ### 软件版本 / Release Version v0.3.7 ### 问题描述 / Description 本地部署节点,WebUI中的部署路径的默认值是`/etc/ssl/certs`, 这个目录在alpine容器中,也用来存储ca-certificates. 如果将`/etc/ssl/certs`目录挂载到本地,比如本地部署后将证书加载指nginx中,或者直接将此目录挂载指Nginx容器的证书路径。 会导致两种场景的问题: 1、如果`/etc/ssl/certs`挂载的本地路径原本有文件,会覆盖容器中的目录,导致ca证书丢失。 2、如果本地挂载路径为空,会导致容器中的ca证书相关大量文件被挂载出来,但实际是无用的,还可能导致文件被修改,ca证书损坏等隐患。 建议: 将本地部署的默认路径修改为: `/etc/ssl/certs`之外的目录,比如:`/etc/certs` ### 其他 / Miscellaneous _No response_
kerem closed this issue 2026-03-03 01:03:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#406
No description provided.