docs(fa02): source-vetted four-chain mitigation and full acceptance gates [skip ci]

This commit is contained in:
victorsteele428 committed 2026-11-24 03:01:23 +00:00
1 parent 6098076608
commit a004e9520b
4 files changed
+56

No files matched your search

+14
View File
@@ -89,3 +89,17 @@ Required post-authorization monitoring: repeated failures of proxy/web/ingestion
## Release gate
**RELEASE CANDIDATE READY** only after accepted security disposition, full mandatory disposable tests including startup/rollback, exact patch audit, one consolidated terminal full CI, and source/mirror integrity. **PRODUCTION GO** additionally requires separately authorized verified live operational readiness. This report is **BLOCKED / NO-GO**, not production-ready and not a risk-acceptance document. Current branch changes are documentation-only; old PR #4 is untouched.
## FINAL-ACCEPTANCE-02 — Compatibility backports and consolidated acceptance gate (2026-11-24)
**Frozen Gitea main is unchanged:** `ea3b3038fbd8851613a80098e540346d47c62079`, tree `d264526d9d9b989a208eb0b22f73ecd832e21021` (420 entries). Existing draft PR #13 is the single candidate; old PR #4 remains untouched. Historical CI #113 seven jobs, #119 Windows ESLint, #120 Windows Python SDK passed before this candidate; those runs are not new backport acceptance.
**Implemented four minimal older-major executable-source backports** under the exact approved paths: `patches/cloudcmd-got-security.patch`, `patches/cloudcmd-glob-security.patch`, `patches/cloudcmd-minimatch-security.patch`, `patches/cloudcmd-file-type-security.patch`. Original npm package dependencies and `package-lock.json` unchanged; the existing `package.json` scripts now include idempotent fail-closed `postinstall` (git apply or reverse-check; mismatch causes install failure). `docker/Dockerfile.server` and `docker/Dockerfile.web` copy these four patch files and install Git before the actual npm install in disposable build stages, without changing production entrypoint, ports, volumes, secrets, APIs, UI or disabled feature settings. Existing `tests/files-manager.test.ts` retains all four original checks and adds four security regression checks (UNIX socket redirect; abort stopping filesystem walk; bounded minimatch optimization and normal matching; malformed ASF terminates in both nested parsers). Only the approved Gitea CI workflow files are changed for isolated acceptance.
**Exact immutable publisher commit provenance:** `got` [861ccd9ac2237df762a9e2beed7edd88c60782dc](https://github.com/sindresorhus/got/commit/861ccd9ac2237df762a9e2beed7edd88c60782dc), `glob` [4682e8c9babee1b385202ede36389634e12076d7](https://github.com/isaacs/node-glob/commit/4682e8c9babee1b385202ede36389634e12076d7), `minimatch` [77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8](https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8), `file-type` [319abf871b50ba2fa221b4a7050059f1ae096f4f](https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f). Adaptation targets only the installed compiled distribution copies of the ancestor-constrained majors; no arbitrary new dependency or forced version upgrade. `glob@13.0.7` already contains the four abort-stop guards; it was verified and intentionally not patched. The patch `glob@10.5.0` changes both CommonJS and ESM, `minimatch@9.0.9/10.2.6` changes both CommonJS and ESM, `file-type@16.5.4` changes both installed nested copies.
**Isolated Gitea evidence:** Source inspection #127 terminal SUCCESS on dedicated Linux runner (sha `036a0feaaa5168130934cbc86c1bd6e34052c522`); manual applicability + security tests #128 terminal SUCCESS (sha `32cce8f6587f84a126a8be898022f9699af71a31`); true clean `npm ci` postinstall, seven installed-source integrity/version checks, four reverse patch checks, targeted security probes and File Manager live full suite `8/8 PASS, 0 FAIL` at focused CI #131, head `25650b95a7071ee554c9129d9bab2fea1a4428ea`. An obsolete first source probe #126 failed only due missing Alpine Git before checkout, then fixed; automatic old-sha PR runs #129 and #130 cancelled, neither counted as acceptance.
**Unresolved until final CI:** These patches are locally tested executable-source mitigations for the four known direct GHSA roots. `npm audit` is version-based, so it continues reporting older package versions as Moderate until the parent ecosystem publishes supported fixed packages; do **not** call the audit inventory zero, remove the audit checks or silently accept unrelated risk. Security audit #113 was runtime 20 Moderate / 0 High / 0 Critical, full 22 Moderate / 0 High / 0 Critical *before* these patches. The actual final candidate audit, full Node/Windows/Python SDK/Next.js/Compose/image build and run-owned five-service startup/fixture backup/restore/previous-image rollback are **NOT YET accepted** at this documentation checkpoint. Dedicated Docker runner must verify no named production-like workloads and no pre-existing project/volume collision; it must fail closed rather than touch any shared/live deployment. No live production data, secrets, migration, tag, release or deployment authorized.
**Gate:** No READY claim or PR merge until one terminal successful consolidated Gitea acceptance for the precise final code SHA, targeted Docker disposable startup/restore/rollback, exact allowed-path diff audit and a supported security disposition. Only after acceptance: squash PR #13 once into Gitea main; no-force synchronize GitHub/GitLab; compare complete tracked tree+mode parity. PRODUCTION GO independently needs authorized live operational verification. If runtime CI reveals an out-of-scope defect or unsafe Docker daemon conditions, STOP and document it—never self-approve residual risk.