Compare commits

..
Author SHA1 Message Date
victorsteele428 659b677dd4 docs(fa02): production readiness NO-GO and upstream fix provenance [skip ci] 2026-11-24 00:18:41 +00:00
victorsteele428 5cf44d3da6 docs(fa02): record exact security gate blocker; stop final acceptance [skip ci] 2026-11-23 23:31:38 +00:00
victorsteele428 ea3b3038fb docs(ff01): freeze accepted merge, exact mirror parity and security STOP [skip ci] 2026-11-23 22:46:22 +00:00
victorsteele428 8da1f6a852 fix(ff01): Windows Cloudcmd root compatibility + accepted CI [skip ci]
PR #12 approved six-file scope. Tested non-note blobs at 36a1c5bf01, CI #113 7/7 + #119 and #120 SUCCESS. Follow-up only 3 evidence notes. Runtime 20 Moderate unresolved, production NO-GO.
2026-11-23 22:42:12 +00:00
victorsteele428 1e2cd31aef ci(wf-01): Gitea-first trusted candidate gating [skip ci]
Gitea CI #107 terminal 7/7 PASS at 89ba8a70; exact 4 file scope, security review and dedicated runners verified. No production changes.
2026-11-23 19:35:53 +00:00
victorsteele428 d9d1c2f4b2 P04-S06: isolated call-trace and Windows File Manager 404 blocker disposition (#10)
docs(p04-s06): isolated reachability test and Windows File Manager blocker [skip ci]

Exactly notes/001–006, security remediation blocked, no package/runtime changes. Production NO-GO.
2026-11-23 17:05:59 +00:00
7 changed files with 304 additions and 9 deletions

No files matched your search

+39 -8
View File
@@ -4,6 +4,13 @@ on:
branches: [main]
paths:
- '.gitea/workflows/datastack-ci.yml'
# Base-owned PR workflow; never run fork-controlled code on self-hosted runners.
pull_request_target:
branches: [main]
types: [opened, reopened, synchronize]
paths-ignore:
- 'notes/**'
- '**/*.md'
workflow_dispatch:
inputs:
p01_only:
@@ -22,15 +29,21 @@ on:
type: boolean
default: false
# CI needs repository read only; it never publishes artifacts or edits remotes.
permissions:
contents: read
jobs:
node-regression:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: Build Node SDK
@@ -55,7 +68,7 @@ jobs:
test "$failed" -eq 0
python-regression:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true') }}
runs-on: ubuntu-latest
container: node:22-bookworm-slim
timeout-minutes: 20
@@ -68,6 +81,8 @@ jobs:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: CI-06 Python 3.11 isolated virtual environment
run: |
set -eu
@@ -86,13 +101,15 @@ jobs:
echo DATASTACK_PYTHON_14_OF_14_PASS
quality:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true' }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: TypeScript type check
@@ -101,13 +118,15 @@ jobs:
run: npm run lint
production-build:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: Next.js production build
@@ -117,7 +136,7 @@ jobs:
test -f .next/standalone/server.js
docker-image-build:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest
container: node:22-alpine
timeout-minutes: 45
@@ -132,6 +151,8 @@ jobs:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: CI-07 inspect daemon and validate Compose without starting services
run: |
set -eu
@@ -155,13 +176,15 @@ jobs:
echo DATASTACK_THREE_IMAGES_BUILD_PASS
windows-compatibility:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: windows-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Verify native Windows toolchain
shell: powershell
run: |
@@ -181,9 +204,15 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw 'SDK install failed' }
npm --prefix sdk/node/datastack run build
if ($LASTEXITCODE -ne 0) { throw 'SDK compilation failed' }
- name: FF01 native Windows File Manager CRUD and ZIP acceptance
shell: powershell
run: |
$ErrorActionPreference = 'Stop'
npx.cmd --yes tsx@4.20.6 --test tests/files-manager.test.ts
if ($LASTEXITCODE -ne 0) { throw 'FF01 Windows Files Manager regression failed' }
security-audit:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest
container: node:22-alpine
timeout-minutes: 15
@@ -193,6 +222,8 @@ jobs:
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
persist-credentials: false
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: CI-08 read-only full and runtime npm advisory inventory
run: |
set -eu
@@ -230,4 +261,4 @@ jobs:
}
NODE
git diff --exit-code -- package.json package-lock.json
echo DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS
echo DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS
+91
View File
@@ -0,0 +1,91 @@
# DataStack — Production Readiness / Predeployment Gate
> **Status: BLOCKED / NO-GO** — As of 2026-11-23. This is a candidate-branch evidence report, not a declaration that production has been deployed, secured, or smoke-tested.
## Frozen provenance and decision
| Item | Evidence |
| --- | --- |
| Gitea repository | `vibtools/DataStack` |
| Frozen merged `main` | `ea3b3038fbd8851613a80098e540346d47c62079` |
| Verified merged source Git tree | `d264526d9d9b989a208eb0b22f73ecd832e21021` (420 tracked entries) |
| FINAL-FIX-01 | PR #12 merged; Windows Cloudcmd root handling fixed |
| FINAL-ACCEPTANCE-02 | Draft PR #13, `final-acceptance-02-20261123`; security gate has not cleared |
| Accepted historical automated runs | Gitea #113 = 7/7 SUCCESS; #119 Windows ESLint SUCCESS; #120 Windows Python SDK 14/14 SUCCESS |
| Exact tested runtime SHA for those runs | `36a1c5bf01cf240cac1493eb956112368aea7d62` |
| Dependency versions in baseline | `cloudcmd@19.24.0` lock; `next@15.5.29`, `postcss@8.5.33`, `dompurify@3.4.18` (see notes/001–006 provenance) |
| Release candidate | **NOT READY** |
| Production deployment | **NO-GO; not executed** |
The candidate's documentation-only commits do not constitute a new application build. The prior Windows File Manager 4/4 regression pass and Linux regression/Node SDK/Next.js/Compose/three-image build pass at the tested earlier SHA are useful historical evidence; there is **no new full final acceptance CI, live operational proof or runtime rollback acceptance** on this candidate. The 3-remote exact 420-entry Git-tree parity was verified for the frozen merged baseline, **not for this unmerged candidate**.
## Current security STOP
Gitea CI #113 npm audit affected-package inventory (not unique advisory count):
| Scope | Moderate | High | Critical |
| --- | ---: | ---: | ---: |
| Production runtime `--omit=dev` | 20 | 0 | 0 |
| Full dependency graph | 22 | 0 | 0 |
The CI `security-audit` job PASS means the configured High/Critical gate passed; it does not mean there are zero remaining vulnerabilities or that Moderate findings have been accepted.
| Affected leaf | Known locked version / ancestry | Patched range (upstream) | Current decision |
| --- | --- | --- | --- |
| `got` / [GHSA-pfrx-2q88-qq97](https://github.com/advisories/GHSA-pfrx-2q88-qq97) | `dropbox-stream@3.2.0 -> got@10.7.0` (`^10.6.0`) | `>=11.8.5` or applicable 12.x fix | **Unresolved** |
| `glob` / [GHSA-3g3m-2fjr-6pw4](https://github.com/advisories/GHSA-3g3m-2fjr-6pw4) | `spawnify/inly/onezip -> glob@10.5.0 / 13.0.7` | `>=14.0.2` | **Unresolved** |
| `minimatch` / [GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249) | `glob -> minimatch@9.0.9 / 10.2.6` | `>=11.0.1` | **Unresolved** |
| nested `file-type` / [GHSA-5v7r-6r5c-r473](https://github.com/advisories/GHSA-5v7r-6r5c-r473) | `ponse@6/7 -> file-type@16.5.4` | `>=21.3.1` | **Unresolved** |
Upstream publisher source commits were inspected at immutable SHAs: `got` [861ccd9ac2237df762a9e2beed7edd88c60782dc](https://github.com/sindresorhus/got/commit/861ccd9ac2237df762a9e2beed7edd88c60782dc) (redirect guard), `minimatch` [77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8](https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8) (optimization expansion limit), and `file-type` [319abf871b50ba2fa221b4a7050059f1ae096f4f](https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f) (ASF tokenizer progress guard). The `glob` advisory documents four missing returns on aborted directory walks. These are **upstream fix references**, not approved older-major backports. Their API/behavior compatibility with the installed ancestor-constrained major versions has not been demonstrated, and no verified backport artifact, package patch integrity, or successful focused test exists for the proposed older-major versions.
Official [Cloudcmd v19.24.1](https://github.com/coderaiser/cloudcmd/releases/tag/v19.24.1) (2026-11-23) only upgrades declared `@cloudcmd/fileop` from `^9.0.8` to `^9.1.1` among directly inspected relevant parent ranges. This does **not** demonstrate resolution of all four advisory chains. Historical P04-S03–S06 source and module-load tracing was bounded; it did not establish total dynamic callpath coverage or zero exploitability. Existing disabled Dropbox/terminal/console and authentication restrictions are not a substitute for a security disposition.
**Security acceptance requires one of:** (A) publisher-verifiable, integrity-pinned, application-compatible backport/parent remediation *with* exact dependency resolution and isolated regression/CI evidence, or (B) separately authorized, advisory-specific residual-risk approval based on real exposure and compensating controls. Neither exists at this checkpoint. Do not force downgrade, silently patch transitive major versions, weaken the CI security gate, or disable features. Security STOP is active, so no full final acceptance workflow, release merge or production deployment is authorized.
## Supported baseline and architecture (source-verified; not deployed evidence)
- App contract: Node.js `>=20` in `package.json`. Docker application images use Node 22 Alpine. Historical Gitea native Windows File Manager ran on Node 26. Windows and Linux Python SDK regressions used different isolated interpreter versions; these test passes are not a claim of broader host/platform certification.
- Proxy: Nginx container exposes internal port 80; Web/Admin Next.js on 3000; Express + Socket.IO ingestion on 4000.
- Data systems: Redis 7-alpine with append-only file on `redisdata`; PostgreSQL 16-alpine with `pgdata`; CSV partitions, uploads and runtime logs under named `datastack-data` shared storage.
- `docker/docker-compose.yml` declares the `web`, `ingestion`, `proxy`, `redis`, `postgres` services and their health checks. Builds and Compose config passed historical CI, **but service cold-start, full restart/rollback, failover and restoration have not been accepted in this phase**.
- `web` health URL: `/api/health`; ingestion health URL: `/health`; proxy healthcheck uses `/api/health`. Avoid treating an unauthenticated HTTP 200 alone as proof of all downstream service availability.
## Deployment prerequisites and secrets (unexecuted checklist)
- [ ] Clear security STOP and achieve a full mandatory final acceptance CI on a fixed candidate SHA.
- [ ] Confirm exact immutable source SHA, pinned dependency lock integrity, retained build logs and rollback artifact identifiers.
- [ ] Use a disposable isolated runtime to verify service dependency health, startup/shutdown/restart, and rollback without touching live data.
- [ ] Provide valid unique high-entropy generated values for Compose-required `SERVICE_REALBASE64_64_JWT`, `SERVICE_REALBASE64_64_ADMINSESSION`, `SERVICE_REALBASE64_64_ADMININSTALL`, `SERVICE_PASSWORD_64_POSTGRES`, `SERVICE_HEX_32_DATABASENAME`, and an internal service secret; do not print or commit them.
- [ ] Confirm effective `DATABASE_URL`, `REDIS_URL`, `DATASTACK_CORS_ORIGINS`, `DATASTACK_ALLOW_PRIVATE_URLS`, `DATASTACK_ADMIN_SETUP_KEY`, admin login policy, TLS, trusted reverse-proxy headers and firewall/ingress boundaries on the **actual** deployment. Do not assume source defaults equal live configuration.
- [ ] Confirm persistent-volume ownership, available disk capacity, log retention, data retention and audit/monitoring alert routing.
- [ ] Obtain separately authorized read-only live configuration/exposure review and deployment/restore window before production changes.
## Backup and rollback gates (never executed here)
1. Before any authorized deployment, take consistent and access-controlled backups of all three persistent data sets: PostgreSQL (`pgdata`), Redis AOF (`redisdata`), and the complete CSV/uploads/storage volume (`datastack-data`). Record immutable checksums and verify restore on an **isolated disposable** environment.
2. Retain the previous source/image digests and a clearly identifiable last-known-good deployment configuration; verify secrets and schema compatibility against that checkpoint. Back up DB and volumes **before** any process that might run additive schema initialization.
3. Test rollback in a disposable environment: stop only the test stack, restore isolated snapshots or prior image references, restart dependent services in order, and verify health, admin authentication, Redis replay/ACK, CSV integrity, and File Manager CRUD with disposable fixtures. Record elapsed time and checksums; do not claim RTO/RPO without measurements.
4. Production rollback is a separate change-controlled action; never use `docker compose down -v`, shared daemon prune, destructive volume delete or an unverified in-place DB rollback.
## Acceptance matrix and operational monitoring
| Gate | Evidence status |
| --- | --- |
| Node 24 TypeScript regression suites; Node SDK build | Historical CI #113 PASS |
| Python SDK Linux/Windows | Historical CI #113 / #120 PASS (14/14 each) |
| TypeScript, ESLint, Next.js production build | Historical CI #113 / #119 PASS |
| Windows/Linux File Manager CRUD/ZIP, auth/RBAC/CSRF/traversal guards | Historical CI #113 4/4 Windows; Linux suite PASS |
| Docker Compose config and three image builds | Historical CI #113 PASS |
| Redis idempotency/ACK/retry, CSV/gzip/replay/buffer | Historical CI #113 broad regression PASS; final independent production durability not claimed |
| Four-chain dependency remediation or authorized risk disposition | **BLOCKED** |
| Final candidate full Gitea CI at security-cleared SHA | **NOT RUN** |
| Disposable five-service cold start / health / shutdown / rollback | **NOT RUN** |
| New final-branch three-remote tree parity and merge | **NOT DONE** (candidate remains unmerged) |
| Live exposure, DNS/TLS, backup restore, incident/alert verification | **NOT AUTHORIZED / NOT DONE** |
Required post-authorization monitoring: repeated failures of proxy/web/ingestion/PostgreSQL/Redis health; Redis AOF and queue backlogs; ACK/retry/replay anomalies; CSV flush latency, file corruption and disk utilization; auth failures and revocation; unexpected File Manager errors; container restarts and security events. Assign alert owners, escalation contacts, time-based thresholds, and a rollback decision owner before production.
## 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.
+53
View File
@@ -230,3 +230,56 @@ Next proposed P04-S07 (REQUIRES SEPARATE USER APPROVAL): isolated Windows File M
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
## FINAL-ACCEPTANCE-02 — Security closure gate: BLOCKED (2026-11-23)
**Scope-locked preflight:** Gitea `main` is `ea3b3038fbd8851613a80098e540346d47c62079`, tracked Git tree `d264526d9d9b989a208eb0b22f73ecd832e21021` (420 entries). FINAL-FIX-01 PR #12 merged; Gitea/GitHub/GitLab root tree and all 420 tracked entries already verified equal with zero mismatches. Prior accepted Gitea CI #113 = 7/7 PASS, #119 Windows ESLint PASS, #120 Windows Python SDK = 14/14 PASS, all tested at `36a1c5bf01cf240cac1493eb956112368aea7d62`. No new runtime/test/workflow changes or full CI are authorized before this security gate is cleared.
**Existing locked dependency audit:** Gitea CI #113 `npm audit` full: 22 Moderate / 0 High / 0 Critical affected package entries; runtime (`--omit=dev`): 20 Moderate / 0 High / 0 Critical. These are not 20 unique GHSA advisories. Reused precise P04-S03/S04/S05/S06 package-lock integrity, registry provenance, parent dependency-contract matrices, static route and isolated dynamic module-load evidence; no repetitive disposable tests for unchanged dependency graph.
**Four unresolved advisory roots and incompatible parent constraints:**
1. `got@10.7.0` / GHSA-pfrx-2q88-qq97, patched >=11.8.5; `@cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got ^10.6.0`.
2. `glob@10.5.0` / GHSA-3g3m-2fjr-6pw4, patched >=14.0.2; `console-io -> spawnify@8.0.1 -> glob ^10.3.3`, `inly@5.0.1/onezip@6.1.1 -> glob ^10.3.10`; another `onezip@7.0.3 -> glob ^13.0.6` (locked 13.0.7).
3. `minimatch@9.0.9` / GHSA-g3hv-75wg-m249, patched >=11.0.1; `glob@10.5.0 -> minimatch ^9.0.4`, `glob@13.0.7 -> minimatch ^10.2.2` (locked 10.2.6).
4. Nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473, patched >=21.3.1; `join-io -> ponse@6.0.0 -> file-type ^16.2.0` and `restbox -> ponse@7.0.0 -> file-type ^16.2.0`. Separate root `file-type@21.3.4` is already patched; nested copies remain affected.
**Fresh narrowly scoped upstream verification:** Official Cloudcmd GitHub release tag `v19.24.1` published 2026-11-23T17:49:24Z, release summary states `@cloudcmd/fileop v9.1.1` only: https://github.com/coderaiser/cloudcmd/releases/tag/v19.24.1 . Compare publisher-owned source `v19.24.0/package.json` with `v19.24.1/package.json`: only direct `@cloudcmd/fileop` declared range changes `^9.0.8 -> ^9.1.1` among the reviewed Cloudcmd dependent parents; `@cloudcmd/dropbox ^5.0.1`, `console-io ^15.0.1`, `inly ^5.0.0`, `onezip ^7.0.0`, `restbox ^4.0.0`, `restafary ^13.0.1` unchanged. No publisher-verifiable older-major security backport and compatible four-chain patched resolution established. Updated package manifest alone is NOT evidence of a cleared npm advisory or proven behavioral compatibility. Prior CommonJS LOAD instrumentation did not prove a vulnerable function CALL; absence of observed CALL is not proof of zero exploitability. Authentic advisories: https://github.com/advisories/GHSA-pfrx-2q88-qq97 ; https://github.com/advisories/GHSA-3g3m-2fjr-6pw4 ; https://github.com/advisories/GHSA-g3hv-75wg-m249 ; https://github.com/advisories/GHSA-5v7r-6r5c-r473 .
**Safety/STOP disposition:** No safe publisher-authenticated, exact-integrity, semver/API-compatible dependency remediation proven within the authorized `package.json`/`package-lock.json` conditional scope; no unproven major leaf override, `npm audit fix --force`, Cloudcmd 17 downgrade, arbitrary fork, hidden feature disabling, or server patch. No dependency, lockfile, tests, workflow, source or configuration file changed. **FINAL-ACCEPTANCE-02 security gate BLOCKED**; final test acceptance and consolidated Gitea CI NOT STARTED; no merge, tag, release, deployment, migration or production mutation. Existing CI #113/#119/#120 remain historical acceptance of exact earlier tested source only, NOT new final acceptance. Production NO-GO and RELEASE CANDIDATE NOT READY.
**Exact decision needed to resume (not implicitly authorized):** (A) independently verified publisher-authenticated, integrity-pinned older-major compatible security backports for all affected parent chains, with isolated API and full File Manager regression proof; if parent dependency or runtime source migration is necessary, obtain a new explicit **file-level scope exception and behavior-preservation criteria** before editing; OR (B) separate explicit package/advisory-specific residual-risk disposition with credible exposure and compensating-control evidence, authorized by the user. This approval does NOT automatically accept either. Keep FINAL-ACCEPTANCE-02 as the same consolidated phase; do not create another micro-phase. The only new candidate changes are three approved evidence notes, pending approval/merge; all other paths READ-ONLY.
FINAL-ACCEPTANCE-02 broader approved production-readiness scope attempted, but STOP rule remains active at SECURITY GATE. Publisher-source fix references now verified: got commit 861ccd9ac2237df762a9e2beed7edd88c60782dc (UNIX-socket redirect guard); minimatch commit 77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8 (bounded first/second-phase globparts processing); file-type commit 319abf871b50ba2fa221b4a7050059f1ae096f4f (prevent ASF tokenizer stagnation); glob GHSA-3g3m-2fjr-6pw4 official advisory documents four missing abort returns. These publisher patches target newer majors and have NOT been proven correct, integrity-pinned or API-compatible as older-major DataStack backports. No safe compatible dependency resolution was established and none applied. No runtime/lock/tests/workflow patch was justified. One evidence-only candidate update adds `docs/PRODUCTION-READINESS.md` with exact baseline, historical CI, operational prerequisites, backup/rollback gates, security STOP and **NO-GO**; only notes/002,003,006 and new docs path changed. No new full CI, PR merge, deployment or mirror publication while gate BLOCKED. Before release must separately establish vetted older-major backport compatibility OR explicit advisory-by-advisory residual-risk disposition. No risk silently accepted; FINAL-ACCEPTANCE-02 remains same consolidated phase.
+53
View File
@@ -252,3 +252,56 @@ Phase status: static baseline verified; disposable real clean npm ci PASS; depen
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
## FINAL-ACCEPTANCE-02 — Security closure gate: BLOCKED (2026-11-23)
**Scope-locked preflight:** Gitea `main` is `ea3b3038fbd8851613a80098e540346d47c62079`, tracked Git tree `d264526d9d9b989a208eb0b22f73ecd832e21021` (420 entries). FINAL-FIX-01 PR #12 merged; Gitea/GitHub/GitLab root tree and all 420 tracked entries already verified equal with zero mismatches. Prior accepted Gitea CI #113 = 7/7 PASS, #119 Windows ESLint PASS, #120 Windows Python SDK = 14/14 PASS, all tested at `36a1c5bf01cf240cac1493eb956112368aea7d62`. No new runtime/test/workflow changes or full CI are authorized before this security gate is cleared.
**Existing locked dependency audit:** Gitea CI #113 `npm audit` full: 22 Moderate / 0 High / 0 Critical affected package entries; runtime (`--omit=dev`): 20 Moderate / 0 High / 0 Critical. These are not 20 unique GHSA advisories. Reused precise P04-S03/S04/S05/S06 package-lock integrity, registry provenance, parent dependency-contract matrices, static route and isolated dynamic module-load evidence; no repetitive disposable tests for unchanged dependency graph.
**Four unresolved advisory roots and incompatible parent constraints:**
1. `got@10.7.0` / GHSA-pfrx-2q88-qq97, patched >=11.8.5; `@cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got ^10.6.0`.
2. `glob@10.5.0` / GHSA-3g3m-2fjr-6pw4, patched >=14.0.2; `console-io -> spawnify@8.0.1 -> glob ^10.3.3`, `inly@5.0.1/onezip@6.1.1 -> glob ^10.3.10`; another `onezip@7.0.3 -> glob ^13.0.6` (locked 13.0.7).
3. `minimatch@9.0.9` / GHSA-g3hv-75wg-m249, patched >=11.0.1; `glob@10.5.0 -> minimatch ^9.0.4`, `glob@13.0.7 -> minimatch ^10.2.2` (locked 10.2.6).
4. Nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473, patched >=21.3.1; `join-io -> ponse@6.0.0 -> file-type ^16.2.0` and `restbox -> ponse@7.0.0 -> file-type ^16.2.0`. Separate root `file-type@21.3.4` is already patched; nested copies remain affected.
**Fresh narrowly scoped upstream verification:** Official Cloudcmd GitHub release tag `v19.24.1` published 2026-11-23T17:49:24Z, release summary states `@cloudcmd/fileop v9.1.1` only: https://github.com/coderaiser/cloudcmd/releases/tag/v19.24.1 . Compare publisher-owned source `v19.24.0/package.json` with `v19.24.1/package.json`: only direct `@cloudcmd/fileop` declared range changes `^9.0.8 -> ^9.1.1` among the reviewed Cloudcmd dependent parents; `@cloudcmd/dropbox ^5.0.1`, `console-io ^15.0.1`, `inly ^5.0.0`, `onezip ^7.0.0`, `restbox ^4.0.0`, `restafary ^13.0.1` unchanged. No publisher-verifiable older-major security backport and compatible four-chain patched resolution established. Updated package manifest alone is NOT evidence of a cleared npm advisory or proven behavioral compatibility. Prior CommonJS LOAD instrumentation did not prove a vulnerable function CALL; absence of observed CALL is not proof of zero exploitability. Authentic advisories: https://github.com/advisories/GHSA-pfrx-2q88-qq97 ; https://github.com/advisories/GHSA-3g3m-2fjr-6pw4 ; https://github.com/advisories/GHSA-g3hv-75wg-m249 ; https://github.com/advisories/GHSA-5v7r-6r5c-r473 .
**Safety/STOP disposition:** No safe publisher-authenticated, exact-integrity, semver/API-compatible dependency remediation proven within the authorized `package.json`/`package-lock.json` conditional scope; no unproven major leaf override, `npm audit fix --force`, Cloudcmd 17 downgrade, arbitrary fork, hidden feature disabling, or server patch. No dependency, lockfile, tests, workflow, source or configuration file changed. **FINAL-ACCEPTANCE-02 security gate BLOCKED**; final test acceptance and consolidated Gitea CI NOT STARTED; no merge, tag, release, deployment, migration or production mutation. Existing CI #113/#119/#120 remain historical acceptance of exact earlier tested source only, NOT new final acceptance. Production NO-GO and RELEASE CANDIDATE NOT READY.
**Exact decision needed to resume (not implicitly authorized):** (A) independently verified publisher-authenticated, integrity-pinned older-major compatible security backports for all affected parent chains, with isolated API and full File Manager regression proof; if parent dependency or runtime source migration is necessary, obtain a new explicit **file-level scope exception and behavior-preservation criteria** before editing; OR (B) separate explicit package/advisory-specific residual-risk disposition with credible exposure and compensating-control evidence, authorized by the user. This approval does NOT automatically accept either. Keep FINAL-ACCEPTANCE-02 as the same consolidated phase; do not create another micro-phase. The only new candidate changes are three approved evidence notes, pending approval/merge; all other paths READ-ONLY.
FINAL-ACCEPTANCE-02 broader approved production-readiness scope attempted, but STOP rule remains active at SECURITY GATE. Publisher-source fix references now verified: got commit 861ccd9ac2237df762a9e2beed7edd88c60782dc (UNIX-socket redirect guard); minimatch commit 77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8 (bounded first/second-phase globparts processing); file-type commit 319abf871b50ba2fa221b4a7050059f1ae096f4f (prevent ASF tokenizer stagnation); glob GHSA-3g3m-2fjr-6pw4 official advisory documents four missing abort returns. These publisher patches target newer majors and have NOT been proven correct, integrity-pinned or API-compatible as older-major DataStack backports. No safe compatible dependency resolution was established and none applied. No runtime/lock/tests/workflow patch was justified. One evidence-only candidate update adds `docs/PRODUCTION-READINESS.md` with exact baseline, historical CI, operational prerequisites, backup/rollback gates, security STOP and **NO-GO**; only notes/002,003,006 and new docs path changed. No new full CI, PR merge, deployment or mirror publication while gate BLOCKED. Before release must separately establish vetted older-major backport compatibility OR explicit advisory-by-advisory residual-risk disposition. No risk silently accepted; FINAL-ACCEPTANCE-02 remains same consolidated phase.
+53
View File
@@ -403,3 +403,56 @@ Exact proof artifacts (kept only in authorized disposable TEMP, not committed):
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
## FINAL-ACCEPTANCE-02 — Security closure gate: BLOCKED (2026-11-23)
**Scope-locked preflight:** Gitea `main` is `ea3b3038fbd8851613a80098e540346d47c62079`, tracked Git tree `d264526d9d9b989a208eb0b22f73ecd832e21021` (420 entries). FINAL-FIX-01 PR #12 merged; Gitea/GitHub/GitLab root tree and all 420 tracked entries already verified equal with zero mismatches. Prior accepted Gitea CI #113 = 7/7 PASS, #119 Windows ESLint PASS, #120 Windows Python SDK = 14/14 PASS, all tested at `36a1c5bf01cf240cac1493eb956112368aea7d62`. No new runtime/test/workflow changes or full CI are authorized before this security gate is cleared.
**Existing locked dependency audit:** Gitea CI #113 `npm audit` full: 22 Moderate / 0 High / 0 Critical affected package entries; runtime (`--omit=dev`): 20 Moderate / 0 High / 0 Critical. These are not 20 unique GHSA advisories. Reused precise P04-S03/S04/S05/S06 package-lock integrity, registry provenance, parent dependency-contract matrices, static route and isolated dynamic module-load evidence; no repetitive disposable tests for unchanged dependency graph.
**Four unresolved advisory roots and incompatible parent constraints:**
1. `got@10.7.0` / GHSA-pfrx-2q88-qq97, patched >=11.8.5; `@cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got ^10.6.0`.
2. `glob@10.5.0` / GHSA-3g3m-2fjr-6pw4, patched >=14.0.2; `console-io -> spawnify@8.0.1 -> glob ^10.3.3`, `inly@5.0.1/onezip@6.1.1 -> glob ^10.3.10`; another `onezip@7.0.3 -> glob ^13.0.6` (locked 13.0.7).
3. `minimatch@9.0.9` / GHSA-g3hv-75wg-m249, patched >=11.0.1; `glob@10.5.0 -> minimatch ^9.0.4`, `glob@13.0.7 -> minimatch ^10.2.2` (locked 10.2.6).
4. Nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473, patched >=21.3.1; `join-io -> ponse@6.0.0 -> file-type ^16.2.0` and `restbox -> ponse@7.0.0 -> file-type ^16.2.0`. Separate root `file-type@21.3.4` is already patched; nested copies remain affected.
**Fresh narrowly scoped upstream verification:** Official Cloudcmd GitHub release tag `v19.24.1` published 2026-11-23T17:49:24Z, release summary states `@cloudcmd/fileop v9.1.1` only: https://github.com/coderaiser/cloudcmd/releases/tag/v19.24.1 . Compare publisher-owned source `v19.24.0/package.json` with `v19.24.1/package.json`: only direct `@cloudcmd/fileop` declared range changes `^9.0.8 -> ^9.1.1` among the reviewed Cloudcmd dependent parents; `@cloudcmd/dropbox ^5.0.1`, `console-io ^15.0.1`, `inly ^5.0.0`, `onezip ^7.0.0`, `restbox ^4.0.0`, `restafary ^13.0.1` unchanged. No publisher-verifiable older-major security backport and compatible four-chain patched resolution established. Updated package manifest alone is NOT evidence of a cleared npm advisory or proven behavioral compatibility. Prior CommonJS LOAD instrumentation did not prove a vulnerable function CALL; absence of observed CALL is not proof of zero exploitability. Authentic advisories: https://github.com/advisories/GHSA-pfrx-2q88-qq97 ; https://github.com/advisories/GHSA-3g3m-2fjr-6pw4 ; https://github.com/advisories/GHSA-g3hv-75wg-m249 ; https://github.com/advisories/GHSA-5v7r-6r5c-r473 .
**Safety/STOP disposition:** No safe publisher-authenticated, exact-integrity, semver/API-compatible dependency remediation proven within the authorized `package.json`/`package-lock.json` conditional scope; no unproven major leaf override, `npm audit fix --force`, Cloudcmd 17 downgrade, arbitrary fork, hidden feature disabling, or server patch. No dependency, lockfile, tests, workflow, source or configuration file changed. **FINAL-ACCEPTANCE-02 security gate BLOCKED**; final test acceptance and consolidated Gitea CI NOT STARTED; no merge, tag, release, deployment, migration or production mutation. Existing CI #113/#119/#120 remain historical acceptance of exact earlier tested source only, NOT new final acceptance. Production NO-GO and RELEASE CANDIDATE NOT READY.
**Exact decision needed to resume (not implicitly authorized):** (A) independently verified publisher-authenticated, integrity-pinned older-major compatible security backports for all affected parent chains, with isolated API and full File Manager regression proof; if parent dependency or runtime source migration is necessary, obtain a new explicit **file-level scope exception and behavior-preservation criteria** before editing; OR (B) separate explicit package/advisory-specific residual-risk disposition with credible exposure and compensating-control evidence, authorized by the user. This approval does NOT automatically accept either. Keep FINAL-ACCEPTANCE-02 as the same consolidated phase; do not create another micro-phase. The only new candidate changes are three approved evidence notes, pending approval/merge; all other paths READ-ONLY.
FINAL-ACCEPTANCE-02 broader approved production-readiness scope attempted, but STOP rule remains active at SECURITY GATE. Publisher-source fix references now verified: got commit 861ccd9ac2237df762a9e2beed7edd88c60782dc (UNIX-socket redirect guard); minimatch commit 77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8 (bounded first/second-phase globparts processing); file-type commit 319abf871b50ba2fa221b4a7050059f1ae096f4f (prevent ASF tokenizer stagnation); glob GHSA-3g3m-2fjr-6pw4 official advisory documents four missing abort returns. These publisher patches target newer majors and have NOT been proven correct, integrity-pinned or API-compatible as older-major DataStack backports. No safe compatible dependency resolution was established and none applied. No runtime/lock/tests/workflow patch was justified. One evidence-only candidate update adds `docs/PRODUCTION-READINESS.md` with exact baseline, historical CI, operational prerequisites, backup/rollback gates, security STOP and **NO-GO**; only notes/002,003,006 and new docs path changed. No new full CI, PR merge, deployment or mirror publication while gate BLOCKED. Before release must separately establish vetted older-major backport compatibility OR explicit advisory-by-advisory residual-risk disposition. No risk silently accepted; FINAL-ACCEPTANCE-02 remains same consolidated phase.
+10
View File
@@ -1011,6 +1011,16 @@ async function mountFilesManager({
let initErrorMessage = '';
try {
// restafary treats drive-qualified Windows storage roots as cwd-relative.
// Only Cloudcmd needs a portable root; keep the guard and exported root absolute.
if (process.platform === 'win32') {
const relativeRoot = path.relative(process.cwd(), resolvedRoot);
if (path.isAbsolute(relativeRoot)) {
throw new Error('Windows Cloudcmd storage root must be on the server drive.');
}
configOptions.root = relativeRoot ? `./${relativeRoot.replaceAll('\\', '/')}` : '.';
}
const cloudcmdPkg = await import('cloudcmd');
const cloudcmdFn = cloudcmdPkg.cloudcmd || cloudcmdPkg.default;
const createConfigManager =
+5 -1
View File
@@ -86,6 +86,8 @@ test('FM-REQ-01..06: live CloudCmd mount enforces auth, DB revocation, RBAC, CSR
try {
assert.equal(handle.engineReady, true, `CloudCmd failed to init: ${handle.initErrorMessage}`);
assert.equal(handle.socketPath, '/vcon/files-engine/socket.io');
// Cloudcmd's Windows-specific representation must still resolve to the jailed root.
assert.equal(path.resolve(handle.configOptions.root), tmpRoot);
await new Promise<void>((resolve) => server.listen(0, '127.0.0.1', () => resolve()));
const address = server.address() as { port: number };
@@ -151,7 +153,9 @@ test('FM-REQ-01..06: live CloudCmd mount enforces auth, DB revocation, RBAC, CSR
headers: ownerHeaders,
body: 'k,v\n1,ok\n',
});
assert.equal(createRes.status, 200);
if (createRes.status !== 200) {
assert.fail(`Cloudcmd PUT failed with ${createRes.status}: ${(await createRes.text()).slice(0, 240)}`);
}
assert.equal(fs.readFileSync(path.join(tmpRoot, 'client-alpha', 'note.csv'), 'utf8'), 'k,v\n1,ok\n');
const renameRes = await fetch(`${baseUrl}/vcon/files-engine/api/v1/rename`, {