Repository navigation
feat(governance): 审计锚点接入离线验证与自托管锚定 - #508
Open
frankiehot-tech wants to merge 5 commits into
Open
frankiehot-tech wants to merge 5 commits into
frankiehot-tech wants to merge 5 commits into
Conversation
审计链只存在于数据侧的 .governance(已 gitignore 且含主机路径), 无法搬进公开 CI 生成。因此拆分为三层: - verify_anchor_manifest.py:离线校验 manifest/anchors/令牌一致性, 不访问 TSA、不读审计原文; - anchor-verify.yml:手动或每周复核 self-hosted 锚定产物; - anchor-smoke.yml:每周用合成链验证脚本与 freeTSA 集成; - anchor-audit.yml:self-hosted runner 定时锚定本机审计链, 仅 schedule/workflow_dispatch 触发,产物脱敏后上传。
|
Athena seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
1 similar comment
|
Athena seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
added 4 commits
November 3, 2026 05:49
公开仓库的 Leak Detection 会拦截主机绝对路径。改为必须由部署侧 配置仓库变量 MAREF_AUDIT_PATH / MAREF_ANCHORS_ROOT,缺失即报错。
|
This branch has not been deployed
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.



背景
审计链只存在于数据侧的
.governance/(已 gitignore,含主机名/绝对路径,HMAC 链不可脱敏重写),无法在公开 CI 中生成。因此按"生成留在数据侧、验证与链路自检进 CI"分层实现。改动
scripts/verify_anchor_manifest.py:离线校验ANCHOR_MANIFEST.json/anchors.jsonl/ 令牌三者一致性与openssl ts -verify,不访问 TSA、不读审计原文。.github/workflows/anchor-verify.yml:手动(可指定 run ID)或每周一复核 self-hosted 锚定产物。.github/workflows/anchor-smoke.yml:每周用合成审计记录端到端验证anchor_governance_audit.py与 freeTSA 集成,不接入 PR 必检。.github/workflows/anchor-audit.yml:self-hosted runner 每日锚定本机审计链;仅 schedule/workflow_dispatch 触发,产物中audit_file路径脱敏后上传。ci.yml:将新脚本纳入 ruff 检查。验证
ruff check/ruff format --check通过。verify_anchor_manifest.py复核通过。actionlint除自定义 self-hosted label 外无告警。边界
self-hosted, macOS, maref-audit;配置前该 workflow 不会运行。