harden: default systemd deploy to operator-managed secrets#169
Merged
liujuanjuan1984 merged 1 commit intomainfrom Mar 13, 2026
Merged
harden: default systemd deploy to operator-managed secrets#169liujuanjuan1984 merged 1 commit intomainfrom
liujuanjuan1984 merged 1 commit intomainfrom
Conversation
This was referenced Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
本 PR 聚焦三类高度相关的改动:
a2a-client-hub作为客户端消费层模块一:systemd deploy secret handling
对应:
#163本次将 systemd deploy 的 secret handling 调整为“默认由运维方预置 root-only runtime secret files,显式 opt-in 才允许 deploy 代写” :
scripts/deploy.shenable_secret_persistence输入ENABLE_SECRET_PERSISTENCE=falseGH_TOKEN/A2A_BEARER_TOKENscripts/deploy/install_units.shopencode.envopencode.auth.envopencode.secret.enva2a.enva2a.secret.envscripts/deploy/setup_instance.sh*.example模板GH_TOKEN/A2A_BEARER_TOKEN/ provider keys 写盘模块二:安全策略文档
对应:
#164SECURITY.mdA2A_BEARER_TOKEN的边界OpenCode + opencode-a2a-serve的 single-tenant trust boundaryREADME.md、scripts/README.md、scripts/deploy_readme.md已同步增加导航,避免安全说明继续分散模块三:README 首页与客户端推荐
对应:
#168README.md首页新增 Mermaid 架构图a2a-client-hub作为客户端侧消费层a2a-client-hub测试与验证
tests/test_deploy_security_contract.pybash -n scripts/deploy.sh scripts/deploy/setup_instance.sh scripts/deploy/install_units.shuv run pre-commit run --all-filesuv run pytest实施评估
这次没有照抄
/home/juanjuan/codex-a2a-serve,但参考了两类思路:当前改动保持了现有 systemd 主路径和双进程架构,没有扩大到
#148/#147/#150的完整治理范围。其中:
#148仅部分前进:本 PR 增加了 EnvironmentFile 单行值校验,但未覆盖非交互预检、readiness/timeout、完整参数校验契约Closes #163
Closes #164
Closes #168
Relates to #148
Relates to #165