Merge pull request #2040 from pikasTech/fix/selfmedia-production-shared-pac-repository
Pipelines as Code CI / hwlab-web-probe-sentinel-nc01- Success
Pipelines as Code CI / platform-infra-gitea-nc01- Success
Pipelines as Code CI / unidesk-host- Success

fix: 共享 SELFMEDIA PaC Repository 并隔离生产 consumer
This commit is contained in:
Lyon
2026-07-14 23:21:48 +08:00
committed by GitHub
12 changed files with 480 additions and 106 deletions
@@ -0,0 +1,7 @@
# R3.1 任务报告
已将 PaC 配置解析与语义校验按显式选中对象隔离。选中 consumer 及其唯一 repository 的解析、字段、权限、Secret、ownership 与 mutation target 继续 fail-closed;非选中 consumer/repository 的解析或一致性错误输出 `code``object.kind/id``configPath``blocking=false` 和脱敏 `evidence`。无法安全解析或归属的对象从聚合 status/history 候选中排除,同时保留 warning。
`embeddedPipelineRun``remotePipelineRun` 在没有 workspace 绑定时完全省略外层 `spec.workspaces`,有绑定时保持原结构。生产 artifact 已由 [pikainc/selfmedia#29](https://github.com/pikainc/selfmedia/pull/29) 的 `783f0d3` 对齐;开发 artifact 已由 [pikainc/selfmedia#32](https://github.com/pikainc/selfmedia/pull/32) 的 `e9d5234` 对齐。两边执行 source-artifact write 均为 `mutation=false`,随后 check 均为 aligned 且 worktree clean。
验证结果:PaC/Gitea 定向测试 19 passsource-artifact 专项测试 32 pass`check --syntax-only` 11/11`git diff --check` 通过。production bootstrap dry-run 返回 `ok=true``mutation=false`、branch=release、repository=selfmedia-nc01/selfmedia-ci。未执行 bootstrap confirm、人工 mirror、PipelineRun、Argo sync、PR 合并或生产触发。本任务关联 [pikasTech/unidesk#2007](https://github.com/pikasTech/unidesk/issues/2007) 与 [PR #2040](https://github.com/pikasTech/unidesk/pull/2040)。
+1 -1
View File
@@ -24,6 +24,6 @@
依据 [UniDesk #2007](https://github.com/pikasTech/unidesk/issues/2007) 为 pikainc/selfmedia release 分支建立独立生产 PaC/GitOps 流水线:master 保持开发 consumerrelease 精确驱动独立生产 namespace、Pipeline、GitOps branch/Application、runtime/PVC/Secret 与 YAML-first 公网端口;禁止 branch follower、手工同步和共享可写状态,以正常 release PR merge 验收生产公网入口、登录、digest 与 health,完成任务后将详细报告写入[任务报告](./details/selfmedia-production-delivery/R3_Task_Report.md)。
### R3.1 [in_progress]
### R3.1 [completed]
按用户最新要求将非选中 consumer 的全局配置一致性错误降级为结构化 non-blocking warning,避免开发 source-artifact/状态/交付被生产配置阻塞;当前选中 target/consumer 的字段、权限、ownership 与安全校验仍 fail-closed,并由定向测试证明两类边界,完成任务后将详细报告写入[任务报告](./details/selfmedia-production-delivery/R3.1_Task_Report.md)。