Repository navigation
feat(package): HR1-c 插件公钥内嵌、kid 验签与离线吊销 - #131
Merged
Merged
Conversation
统一 PackageOps 生产/编译判定到构建清单,防止环境变量放宽安装面;信任根文档定稿但 HR1-c 内嵌公钥/kid/吊销仍未实现。 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
feat/plugin-trust-root-1128(headeab418359bbc5095713dfa899c5b2c18b961132d)之上继续实现 HR1-c 的本轮范围;本 PR 因此包含 feat(package): 定稿插件信任根并收口构建期判定 #127 已有提交,这是预期,不代表 feat(package): 定稿插件信任根并收口构建期判定 #127 已合并。kid、算法、base64 公钥与指纹内嵌;仓内生产信任根保持为空,正式发布构建通过--package-trust-root注入受控信任根;development-only 测试钥只在 development 构建并入。{kid, alg, sig},按kid选钥;无 kid、未知 kid、不在信任根/白名单、坏信封或签名不符均 fail-closed。revoked_kids随信任根下发并按 kid 生效;支持多把未吊销受信公钥并存的轮换窗口。tools/package-ops trust-add加入本地白名单;trust-list只列 kid 与指纹;加入动作写sand_system_audit_log审计(操作人、时间、kid、指纹),审计失败不激活公钥。后台界面没有新增、修改、删除入口。signature_verified真值;--allow-unsigned只豁免完全缺签名且只存在未编译 development 演练通道。明确不做
server/composer.lock、不建库、不跑 integration tests。Test plan
cd server && vendor/bin/phpunit --testsuite unit --no-coverage:765 tests / 7088 assertions,exit 0cd server && vendor/bin/phpunit --no-coverage tests/Unit/Module/Package/PackageSignatureTest.php tests/Unit/Module/Package/PackageTrustFileTest.php tests/Unit/Module/Package/PackageTrustAdditionTest.php tests/Unit/Tools/PackageTrustBuildTest.php:26 tests / 118 assertions,exit 0cd server && vendor/bin/phpunit --no-coverage --filter 'CompiledManifestRefuses|InstallSucceedsWithValidSignature|InstallRejectsMissingSignatureByDefault|InstallAllowsUnsignedOnlyWithFlag|AllowUnsignedDoesNotRescueBadSignature' tests/Unit/Module/Package/PackageExecutorTest.php:7 tests / 42 assertions,exit 0cd server && vendor/bin/phpstan analyse --no-progress:[OK] No errors,exit 0bash tools/pre-merge.sh --fast:全部门禁通过,exit 0(最终提交同树内容)python3 tools/naming_check.py ...:exit 0;WARN 仅为 feat(package): 定稿插件信任根并收口构建期判定 #127 既有命名与既有 build 脚本单字母变量,详见任务 RESULTserver/composer.lock、未改web/与sandadmin-artd/tracked 文件、未改server/database/Generated with Devin