Compare commits

..
11 changed files with 9 additions and 553 deletions

No files matched your search

+7 -38
View File
@@ -4,13 +4,6 @@ on:
branches: [main] branches: [main]
paths: paths:
- '.gitea/workflows/datastack-ci.yml' - '.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: workflow_dispatch:
inputs: inputs:
p01_only: p01_only:
@@ -29,21 +22,15 @@ on:
type: boolean type: boolean
default: false default: false
# CI needs repository read only; it never publishes artifacts or edits remotes.
permissions:
contents: read
jobs: jobs:
node-regression: node-regression:
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')) }} if: ${{ 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 runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: Install dependencies
run: npm ci --no-audit --no-fund run: npm ci --no-audit --no-fund
- name: Build Node SDK - name: Build Node SDK
@@ -68,7 +55,7 @@ jobs:
test "$failed" -eq 0 test "$failed" -eq 0
python-regression: python-regression:
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') }} if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:22-bookworm-slim container: node:22-bookworm-slim
timeout-minutes: 20 timeout-minutes: 20
@@ -81,8 +68,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: CI-06 Python 3.11 isolated virtual environment
run: | run: |
set -eu set -eu
@@ -101,15 +86,13 @@ jobs:
echo DATASTACK_PYTHON_14_OF_14_PASS echo DATASTACK_PYTHON_14_OF_14_PASS
quality: quality:
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') }} if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: Install dependencies
run: npm ci --no-audit --no-fund run: npm ci --no-audit --no-fund
- name: TypeScript type check - name: TypeScript type check
@@ -118,15 +101,13 @@ jobs:
run: npm run lint run: npm run lint
production-build: production-build:
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')) }} if: ${{ 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 runs-on: ubuntu-latest
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: Install dependencies
run: npm ci --no-audit --no-fund run: npm ci --no-audit --no-fund
- name: Next.js production build - name: Next.js production build
@@ -136,7 +117,7 @@ jobs:
test -f .next/standalone/server.js test -f .next/standalone/server.js
docker-image-build: docker-image-build:
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')) }} if: ${{ 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 runs-on: ubuntu-latest
container: node:22-alpine container: node:22-alpine
timeout-minutes: 45 timeout-minutes: 45
@@ -151,8 +132,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: CI-07 inspect daemon and validate Compose without starting services
run: | run: |
set -eu set -eu
@@ -176,15 +155,13 @@ jobs:
echo DATASTACK_THREE_IMAGES_BUILD_PASS echo DATASTACK_THREE_IMAGES_BUILD_PASS
windows-compatibility: windows-compatibility:
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')) }} if: ${{ 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 runs-on: windows-latest
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: Verify native Windows toolchain
shell: powershell shell: powershell
run: | run: |
@@ -204,15 +181,9 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw 'SDK install failed' } if ($LASTEXITCODE -ne 0) { throw 'SDK install failed' }
npm --prefix sdk/node/datastack run build npm --prefix sdk/node/datastack run build
if ($LASTEXITCODE -ne 0) { throw 'SDK compilation failed' } 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: security-audit:
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')) }} if: ${{ 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 runs-on: ubuntu-latest
container: node:22-alpine container: node:22-alpine
timeout-minutes: 15 timeout-minutes: 15
@@ -222,8 +193,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://dev.ivib.cc 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 - name: CI-08 read-only full and runtime npm advisory inventory
run: | run: |
set -eu set -eu
-70
View File
@@ -151,73 +151,3 @@ Gitea CI #85 https://dev.ivib.cc/vibtools/DataStack/actions/runs/85 COMPLETED/SU
Scope: exactly nine approved paths: package.json scoped next->postcss 8.5.33 override; package-lock.json removes only old nested postcss@8.4.31 entry; existing .gitea/workflows/datastack-ci.yml security-audit job high/critical rejection; notes/001–006 evidence. Other package metadata, versions, integrity and resolved URLs match baseline. Next.js 15.5.29 and Cloudcmd 19.24.0 preserved. Final candidate package-lock SHA256 e6b5b362877627085dc04c9ded03c019971e07ef9f4af1e78057d58961a1c091 (verified byte-for-byte with Gitea). No API, auth, SDK, UI, application runtime, database, Compose, Dockerfile, tests or production data changes, deployment, migration, prune, tag, release. Scope: exactly nine approved paths: package.json scoped next->postcss 8.5.33 override; package-lock.json removes only old nested postcss@8.4.31 entry; existing .gitea/workflows/datastack-ci.yml security-audit job high/critical rejection; notes/001–006 evidence. Other package metadata, versions, integrity and resolved URLs match baseline. Next.js 15.5.29 and Cloudcmd 19.24.0 preserved. Final candidate package-lock SHA256 e6b5b362877627085dc04c9ded03c019971e07ef9f4af1e78057d58961a1c091 (verified byte-for-byte with Gitea). No API, auth, SDK, UI, application runtime, database, Compose, Dockerfile, tests or production data changes, deployment, migration, prune, tag, release.
CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Security forensic disposition: only DOMPurify's same-major compatible override supported by the disposable registry/audit proof; other moderate transitive packages not force-fixed.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Security forensic result. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Residual Cloudcmd forensic disposition (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
Four direct npm audit advisories explain inherited runtime findings: got `GHSA-pfrx-2q88-qq97` (<11.8.5, first patched 11.8.5), glob `GHSA-3g3m-2fjr-6pw4` (>=9 <=14.0.1, patched 14.0.2), minimatch `GHSA-g3hv-75wg-m249` (>=7 <11.0.1, patched 11.0.1), file-type `GHSA-5v7r-6r5c-r473` (>=13 <21.3.1, patched 21.3.1). Registry confirmed availability of got@11.8.5, glob@14.0.2, minimatch@11.0.1; file-type@21.3.4 is already present as a patched root copy, while its two nested vulnerable copies are 16.5.4. Specific constrained parents: @cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got `^10.6.0` (locked 10.7.0); console-io@15.0.4 -> spawnify@8.0.1 -> glob `^10.3.3` (locked 10.5.0) -> minimatch `^9.0.4` (locked 9.0.9); inly@5.0.1 -> glob `^10.3.10` and onezip@6.1.1 -> glob `^10.3.10`; Cloudcmd -> onezip@7.0.3 -> glob `^13.0.6` (locked 13.0.7) -> minimatch `^10.2.2` (locked 10.2.6); dword/edward -> join-io@5.0.0 -> ponse@6.0.0 -> file-type `^16.2.0` (locked 16.5.4); restbox@4.0.1 -> ponse@7.0.0 -> file-type `^16.2.0` (locked 16.5.4). Patch version for each lies outside its parent semver major; no compliant same-major security upgrade exists for these vulnerable leaves. npm suggests Cloudcmd 17.0.2 downgrade, specifically forbidden. No forced override was attempted since each candidate violates approved compatibility boundary.
**P04-S03 disposition: FORENSIC REVIEW COMPLETE / TARGETED REMEDIATION BLOCKED BY APPROVED SCOPE.** No package.json, package-lock.json, runtime, UI, File Manager, Monaco Editor, tests, SDK, CI, Dockerfile, Compose, database, secrets or production file edits. No npm install or `npm ci` required for unmodified baseline, no extra Gitea CI dispatched: accepted unchanged baseline retains Gitea CI #92 7/7 including real Linux/Windows npm ci, File Manager regression, SDKs and 3 Docker images. No claim of newly fixed advisories or zero Moderate. Only notes/001–006 publication is permitted; no dependency patch, tag, release, deployment, migration, prune or live change. Production remains NO-GO, pending separately approved parent dependency migration with full compatibility acceptance or a formal risk-disposition decision.
## P04-S04 — Forensic audit (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Root cause and forensic scope: four parent-major dependency chains demonstrated with latest upstream supported dependency contracts. Document this as a security blocker, not a successful remediation.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Production forensic findings (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
Classification: bounded static reachability only. Public proxy path exists at source-level but authentication gate precedes upstream Cloudcmd middleware. Avoid changing or claiming production ACLs; source cannot confirm deployed environment.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Isolated runtime and advisory forensic findings (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Disposition by chain: got (LOAD via Dropbox subtree even with config.dropbox=false; no monitored got request), glob/minimatch (CJS LOAD through spawnify/glob; no monitored aborted traversal or attacker-pattern execution), file-type (nested v16 loads via ponse6/7; no monitored fromFile invocation by the passing portion of tests). Prior static source showed optional Dropbox disabled and ZIP/File Manager enabled; this phase's interrupted E2E is insufficient to prove either reachability or unreachability of any vulnerability.
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.
-94
View File
@@ -160,97 +160,3 @@ Scope: exactly nine approved paths: package.json scoped next->postcss 8.5.33 ove
Next roadmap: P04-S02 Cloudcmd moderate-advisory triage, followed by separate live readiness approval. No forced major upgrade/downgrade. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. Next roadmap: P04-S02 Cloudcmd moderate-advisory triage, followed by separate live readiness approval. No forced major upgrade/downgrade. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Roadmap: finish one focused Gitea acceptance, exact 8-file scope and three-remote parity. Remaining moderate findings deferred to independently approved scope, never silently upgraded.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Roadmap: after P04-S02 accepted mirror parity, next separately approved P04-S03 remaining moderate advisory dependency-contract triage (read-only / disposable compatibility first), then P05 live readiness. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Scope-locked risk disposition and next roadmap (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
**Remediation gate:** All four vulnerable leaf packages require crossing one or more parent dependency major constraints. Existing Cloudcmd 19.24.0/Monaco Editor behavior, UI, SDK, API and other features cannot be changed under P04-S03. No safe npm override candidate; do not use Cloudcmd 17.0.2 downgrade, global force or transitive major-version replacement. **P04-S03 disposition: FORENSIC REVIEW COMPLETE / TARGETED REMEDIATION BLOCKED BY APPROVED SCOPE.** No package.json, package-lock.json, runtime, UI, File Manager, Monaco Editor, tests, SDK, CI, Dockerfile, Compose, database, secrets or production file edits. No npm install or `npm ci` required for unmodified baseline, no extra Gitea CI dispatched: accepted unchanged baseline retains Gitea CI #92 7/7 including real Linux/Windows npm ci, File Manager regression, SDKs and 3 Docker images. No claim of newly fixed advisories or zero Moderate. Only notes/001–006 publication is permitted; no dependency patch, tag, release, deployment, migration, prune or live change. Production remains NO-GO, pending separately approved parent dependency migration with full compatibility acceptance or a formal risk-disposition decision.
**Next proposed P04-S04:** separately approved read-only deployment-exposure and security risk review, with option to propose a NEW exact scope/compatibility matrix for parent package migrations only after explicit user approval. Do not assume P04-S04 grants application edits or risk acceptance. P05 readiness and production release require their own gated authorization.
## P04-S04 — Next roadmap (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Roadmap: a future separately approved phase should evaluate maintained upstream parent releases/patch coordination and explicit exposure mitigations or formal risk decision; never authorize app source changes or automatic risk acceptance under P04-S04.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Risk-treatment roadmap (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
Next phase option: P04-S06 security-treatment feasibility ONLY, first read-only inspect production effective controls and build isolated targeted proof (not real production fuzz); if patch required, request exact exceptions for dependencies or a single guarded File Manager input-validation layer. Preserve full File Manager CRUD, archive, Dropbox and Monaco functionality and all existing tests. No automatic production go-live.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Controlled remediation roadmap / new scope needed (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Next proposed P04-S07 (REQUIRES SEPARATE USER APPROVAL): isolated Windows File Manager PUT-404 RCA first, exact location/prefix/routing diagnosis. Proposed narrow future write boundary only if defect reproduced and fix proven: server/filesManager.js File Manager mount/router only, tests/files-manager.test.ts focused regression only, Windows job portion of .gitea/workflows/datastack-ci.yml only if explicitly approved, notes/001–006. All app functionality, Cloudcmd/SDK/Compose/db/etc preserved. No implicit authorization to fix this defect or accept residual moderate advisories. A distinct security backport proposal requires a vetted package/fork, immutable integrity and full acceptance before changing package files.
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.
-94
View File
@@ -182,97 +182,3 @@ Scope: exactly nine approved paths: package.json scoped next->postcss 8.5.33 ove
CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Phase ledger: P04-S02 candidate patch under test, not yet accepted. One focused CI to verify Linux/Windows npm ci, Cloudcmd File Manager existing tests, Node 24/24, Python 14/14, TS/lint, Next standalone and Docker 3 images.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Phase ledger: P04-S02 fully CI-accepted, publication gate pending. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Verified forensic STOP decision (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
Four direct npm audit advisories explain inherited runtime findings: got `GHSA-pfrx-2q88-qq97` (<11.8.5, first patched 11.8.5), glob `GHSA-3g3m-2fjr-6pw4` (>=9 <=14.0.1, patched 14.0.2), minimatch `GHSA-g3hv-75wg-m249` (>=7 <11.0.1, patched 11.0.1), file-type `GHSA-5v7r-6r5c-r473` (>=13 <21.3.1, patched 21.3.1). Registry confirmed availability of got@11.8.5, glob@14.0.2, minimatch@11.0.1; file-type@21.3.4 is already present as a patched root copy, while its two nested vulnerable copies are 16.5.4. Specific constrained parents: @cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got `^10.6.0` (locked 10.7.0); console-io@15.0.4 -> spawnify@8.0.1 -> glob `^10.3.3` (locked 10.5.0) -> minimatch `^9.0.4` (locked 9.0.9); inly@5.0.1 -> glob `^10.3.10` and onezip@6.1.1 -> glob `^10.3.10`; Cloudcmd -> onezip@7.0.3 -> glob `^13.0.6` (locked 13.0.7) -> minimatch `^10.2.2` (locked 10.2.6); dword/edward -> join-io@5.0.0 -> ponse@6.0.0 -> file-type `^16.2.0` (locked 16.5.4); restbox@4.0.1 -> ponse@7.0.0 -> file-type `^16.2.0` (locked 16.5.4). Patch version for each lies outside its parent semver major; no compliant same-major security upgrade exists for these vulnerable leaves. npm suggests Cloudcmd 17.0.2 downgrade, specifically forbidden. No forced override was attempted since each candidate violates approved compatibility boundary.
**Status:** forensic task completed, remediation BLOCKED; published runtime moderation count stays 20, full stays 22, high/critical 0. Existing CI #92 baseline PASS is reused; no new CI or app edits since no safe candidate exists. Documentation-only publication should be audited for six notes paths and three-remote parity before phase disposition is recorded as CLOSED. No production release.
## P04-S04 — Phase status (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Acceptance ledger: registry 17/17 retrieval PASS, 17/17 parent constraint assertions PASS, fresh audit counts baseline unchanged, no code patch generated. Notes-only exact diff and three-remote tree parity required before this forensic disposition is closed.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Phase status and acceptance limits (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
Phase gates: [PASS] approved baseline SHA/tree; [PASS] four advisory preconditions; [PASS] upstream library call-site checks; [PASS] exact notes-only diff (pending merge); [NOT PERFORMED] live exposure/penetration; [NO CHANGE] deps/app/CI and vulnerability counts; [PENDING] PR squash merge & 3-way parity. Phase close means documentation only, not vulnerability remediation.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Acceptance and phase-status ledger (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Phase status: static baseline verified; disposable real clean npm ci PASS; dependency tree PASS; Windows File Manager E2E FAIL at 404 in instrumented and clean Node22 runs; limited CJS load trace complete; dynamic reachable exploit NOT PROVEN; secure compatible package candidate NOT FOUND; runtime security 20 Moderate unchanged. P04-S06 forensic disposition can be docs-only CLOSED after exact six-note diff and three-remote tree parity, while actual requested remediation remains BLOCKED. The historical CI #92 is NOT a new P04-S06 PASS.
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.
-70
View File
@@ -131,73 +131,3 @@ SEC-01 candidate remediation verified: Next 15.5.29/Cloudcmd 19.24.0 unchanged,
Gitea CI #85 https://dev.ivib.cc/vibtools/DataStack/actions/runs/85 COMPLETED/SUCCESS; tested implementation SHA c759be990c032c2474d2d0bad519c643dec11a3a; later changes to candidate are documentation only. All seven jobs terminal SUCCESS: node-regression (Linux committed-lock npm ci and exactly 24/24 TypeScript suites); python-regression (Ran 14 tests, OK); quality (strict tsc and ESLint); production-build (Next 15.5.29 standalone, 22/22 pages); docker-image-build (three isolated BuildKit ingestion/web/proxy images); windows-compatibility (Windows committed-lock npm ci and Node SDK build, job #182, terminal SUCCESS); security-audit (runtime moderate=22 high=0 critical=0; full moderate=24 high=0 critical=0; DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO). Single Gitea acceptance run used, no additional broad reruns. Gitea CI #85 https://dev.ivib.cc/vibtools/DataStack/actions/runs/85 COMPLETED/SUCCESS; tested implementation SHA c759be990c032c2474d2d0bad519c643dec11a3a; later changes to candidate are documentation only. All seven jobs terminal SUCCESS: node-regression (Linux committed-lock npm ci and exactly 24/24 TypeScript suites); python-regression (Ran 14 tests, OK); quality (strict tsc and ESLint); production-build (Next 15.5.29 standalone, 22/22 pages); docker-image-build (three isolated BuildKit ingestion/web/proxy images); windows-compatibility (Windows committed-lock npm ci and Node SDK build, job #182, terminal SUCCESS); security-audit (runtime moderate=22 high=0 critical=0; full moderate=24 high=0 critical=0; DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO). Single Gitea acceptance run used, no additional broad reruns.
Security improvement: remove Next nested vulnerable PostCSS and enforce runtime high/critical fail gate. Existing 22 moderate runtime affected-package entries remain, not a security-clean claim for all severities. No change to runtime error codes/auth/API contracts. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. Security improvement: remove Next nested vulnerable PostCSS and enforce runtime high/critical fail gate. Existing 22 moderate runtime affected-package entries remain, not a security-clean claim for all severities. No change to runtime error codes/auth/API contracts. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Error contract: no user-facing error codes or handler changes. Security audit improvement from 22 to 20 moderate runtime affected packages, high/critical stays zero in disposable audit. No claim of eliminating all moderate advisories.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Error/security semantics: no API error handler, permission, middleware, auth or HTTP/WebSocket changes. Upgrade only same-major DOMPurify. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Residual vulnerability / error handling risk ledger (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
Four direct npm audit advisories explain inherited runtime findings: got `GHSA-pfrx-2q88-qq97` (<11.8.5, first patched 11.8.5), glob `GHSA-3g3m-2fjr-6pw4` (>=9 <=14.0.1, patched 14.0.2), minimatch `GHSA-g3hv-75wg-m249` (>=7 <11.0.1, patched 11.0.1), file-type `GHSA-5v7r-6r5c-r473` (>=13 <21.3.1, patched 21.3.1). Registry confirmed availability of got@11.8.5, glob@14.0.2, minimatch@11.0.1; file-type@21.3.4 is already present as a patched root copy, while its two nested vulnerable copies are 16.5.4. Specific constrained parents: @cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got `^10.6.0` (locked 10.7.0); console-io@15.0.4 -> spawnify@8.0.1 -> glob `^10.3.3` (locked 10.5.0) -> minimatch `^9.0.4` (locked 9.0.9); inly@5.0.1 -> glob `^10.3.10` and onezip@6.1.1 -> glob `^10.3.10`; Cloudcmd -> onezip@7.0.3 -> glob `^13.0.6` (locked 13.0.7) -> minimatch `^10.2.2` (locked 10.2.6); dword/edward -> join-io@5.0.0 -> ponse@6.0.0 -> file-type `^16.2.0` (locked 16.5.4); restbox@4.0.1 -> ponse@7.0.0 -> file-type `^16.2.0` (locked 16.5.4). Patch version for each lies outside its parent semver major; no compliant same-major security upgrade exists for these vulnerable leaves. npm suggests Cloudcmd 17.0.2 downgrade, specifically forbidden. No forced override was attempted since each candidate violates approved compatibility boundary.
No error codes, socket ACK/CSV durability, auth policies, File Manager validators, archive paths or downloader behavior were altered. Vulnerable indirect packages remain in current lock, so dependency graph remains affected; security findings are not equivalent to an observed exploit and are not waived. No runtime mitigation implemented. **P04-S03 disposition: FORENSIC REVIEW COMPLETE / TARGETED REMEDIATION BLOCKED BY APPROVED SCOPE.** No package.json, package-lock.json, runtime, UI, File Manager, Monaco Editor, tests, SDK, CI, Dockerfile, Compose, database, secrets or production file edits. No npm install or `npm ci` required for unmodified baseline, no extra Gitea CI dispatched: accepted unchanged baseline retains Gitea CI #92 7/7 including real Linux/Windows npm ci, File Manager regression, SDKs and 3 Docker images. No claim of newly fixed advisories or zero Moderate. Only notes/001–006 publication is permitted; no dependency patch, tag, release, deployment, migration, prune or live change. Production remains NO-GO, pending separately approved parent dependency migration with full compatibility acceptance or a formal risk-disposition decision.
## P04-S04 — Error-handling risk (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Error handling: these moderate advisories are unremediated transitive risk; no observed exploit claimed, no runtime error contract change, no exception handling or file operation changed.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Error and availability risk register (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
Potential service impact: got unexpected socket redirect conditional on Dropbox network egress; glob AbortSignal bypass cost if async traversal invoked; minimatch CPU/memory cost if attacker-controlled amplified patterns matched; file-type potential infinite-loop event loop stall if nested ponse calls affected parser on crafted media. No actual exploit or production outage asserted, no error-handling/API code changed.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Availability and security error register (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Error/availability exposure: 404 on authenticated File Manager write in disposable Windows environment is a functional compatibility observation, NOT proof of an exploit, production outage, Linux regression, or root-cause. File-type parser crafted-input DoS and glob/minimatch traversal/pattern performance and got UNIX socket redirect remain theoretical conditional risks without proven exploit path; no payloads were created or run. Explicitly preserve existing session, CSRF, RBAC, root path and storage lock guards unchanged.
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.
-68
View File
@@ -106,71 +106,3 @@ No feature, UI, backend runtime, public API, auth, database/schema, SDK, CSV sto
Gitea CI #85 https://dev.ivib.cc/vibtools/DataStack/actions/runs/85 COMPLETED/SUCCESS; tested implementation SHA c759be990c032c2474d2d0bad519c643dec11a3a; later changes to candidate are documentation only. All seven jobs terminal SUCCESS: node-regression (Linux committed-lock npm ci and exactly 24/24 TypeScript suites); python-regression (Ran 14 tests, OK); quality (strict tsc and ESLint); production-build (Next 15.5.29 standalone, 22/22 pages); docker-image-build (three isolated BuildKit ingestion/web/proxy images); windows-compatibility (Windows committed-lock npm ci and Node SDK build, job #182, terminal SUCCESS); security-audit (runtime moderate=22 high=0 critical=0; full moderate=24 high=0 critical=0; DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO). Single Gitea acceptance run used, no additional broad reruns. Gitea CI #85 https://dev.ivib.cc/vibtools/DataStack/actions/runs/85 COMPLETED/SUCCESS; tested implementation SHA c759be990c032c2474d2d0bad519c643dec11a3a; later changes to candidate are documentation only. All seven jobs terminal SUCCESS: node-regression (Linux committed-lock npm ci and exactly 24/24 TypeScript suites); python-regression (Ran 14 tests, OK); quality (strict tsc and ESLint); production-build (Next 15.5.29 standalone, 22/22 pages); docker-image-build (three isolated BuildKit ingestion/web/proxy images); windows-compatibility (Windows committed-lock npm ci and Node SDK build, job #182, terminal SUCCESS); security-audit (runtime moderate=22 high=0 critical=0; full moderate=24 high=0 critical=0; DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO). Single Gitea acceptance run used, no additional broad reruns.
No product feature, UI, runtime, API, auth, SDK, data format, Docker or deployment change. Only resolved PostCSS dependency and CI security gate. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. No product feature, UI, runtime, API, auth, SDK, data format, Docker or deployment change. Only resolved PostCSS dependency and CI security gate. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Feature preservation: Cloudcmd major 19.24.0, Monaco Editor 0.55.1, Next 15.5.29, PostCSS override 8.5.33, runtime APIs/UI/auth/SDK/Redis/CSV/storage and Dockerfiles unchanged. Existing File Manager behavior must be verified by read-only tests.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Feature preservation: File Manager test and Monaco-related Next production build PASS; no UI features removed, no editor behavior modified in source. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Feature preservation and no-source-mutation proof (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
No product feature was added, removed or modified; Cloudcmd File Manager, Monaco Editor, UI/UX, auth, WebSocket/SDK contracts, Redis, CSV, database, Docker configuration and CI jobs unchanged. The P04-S03 investigation is read-only for source and local disposable tooling; no compatible package candidate was generated because all patched versions cross parent major constraints. Previously accepted Gitea CI #92 covers unchanged baseline File Manager test, Node 24/24, Python 14/14, strict tsc/lint, Windows npm ci, Next standalone, Docker/BuildKit 3/3 and audit high/critical zero. **P04-S03 disposition: FORENSIC REVIEW COMPLETE / TARGETED REMEDIATION BLOCKED BY APPROVED SCOPE.** No package.json, package-lock.json, runtime, UI, File Manager, Monaco Editor, tests, SDK, CI, Dockerfile, Compose, database, secrets or production file edits. No npm install or `npm ci` required for unmodified baseline, no extra Gitea CI dispatched: accepted unchanged baseline retains Gitea CI #92 7/7 including real Linux/Windows npm ci, File Manager regression, SDKs and 3 Docker images. No claim of newly fixed advisories or zero Moderate. Only notes/001–006 publication is permitted; no dependency patch, tag, release, deployment, migration, prune or live change. Production remains NO-GO, pending separately approved parent dependency migration with full compatibility acceptance or a formal risk-disposition decision.
## P04-S04 — Feature preservation (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Feature invariants: File Manager, archive extraction, Dropbox, Monaco Editor, Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18, SDKs, UI and storage remain untouched. Existing acceptance CI #92 is historical reference only.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Feature preservation contract (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
No features disabled, hidden, renamed, altered or degraded. Existing config flags (dropbox, console, terminal disabled) were pre-existing; this phase does NOT disable them. Enabled File Manager browsing, editing, uploading, downloading, zip/unzip and editor remain exactly unchanged. Existing baseline CI #92 remains historical acceptance; P04-S05 did not change source.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Feature invariants and compatibility caveat (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Feature preservation: no File Manager, ZIP/UNZIP, editor, Dropbox, Monaco, runtime, UI, auth, Socket.IO, SDK, storage, CSV, Redis, db, Docker or CI feature removed or edited. E2E Windows failure means full feature compatibility is NOT accepted in this environment, despite unrelated 3/4 focused checks passing. Existing Linux CI #92 on unchanged source is historical baseline proof, not a substitute for P04-S06 Windows-specific acceptance.
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.
-98
View File
@@ -329,101 +329,3 @@ Scope: exactly nine approved paths: package.json scoped next->postcss 8.5.33 ove
Exact job IDs: 177 Node, 178 Python, 179 quality, 180 Next production, 181 Docker three images, 182 Windows compatibility, 183 security-audit; all seven completed/success, run #85 overall completed/success. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification. Exact job IDs: 177 Node, 178 Python, 179 quality, 180 Next production, 181 Docker three images, 182 Windows compatibility, 183 security-audit; all seven completed/success, run #85 overall completed/success. CI fully accepted; publication not yet asserted in these pre-merge notes. Final phase CLOSED requires one squash merge of PR #5 into Gitea main and verified identical tracked content across Gitea/GitHub/GitLab; record actual new SHAs in terminal report. Production release remains NO-GO pending P04-S02 moderate vulnerability triage and separately authorized live readiness verification.
## P04-S02 scoped candidate — 2026-11-22
Baseline Gitea main `2d467ff1494858164a37814f7dbc2b321f510291`, tree `648c76ca496d2c9bf22a16f558c9ba347a45d4f7`. Cloudcmd 19.24.0 -> deepword 11.0.1 -> monaco-editor 0.55.1 pins DOMPurify 3.2.7, vulnerable according to npm advisory inventory. Disposable Windows npm 10.9.8 `npm view dompurify@3.4.18` verified, scoped npm override `overrides.cloudcmd.dompurify=3.4.18` resolves `dompurify@3.4.18` via `npm ls --package-lock-only dompurify --all --depth=5` (exit 0). `npm install --package-lock-only --ignore-scripts --no-audit --no-fund --prefer-offline` exit 0. npm graph initially changed 67 unrelated metadata entries; deterministically restored exact baseline values after validating unrelated versions, URLs, integrity and dependencies. Final lock has **one changed package entry**, DOMPurify; same-major replacement plus verified registry `resolved` and `integrity`, no other packages added/deleted/changed. Candidate runtime audit affected-package counts **moderate 20/high 0/critical 0** versus baseline **22/0/0**; full candidate **moderate 22/high 0/critical 0** versus baseline **24/0/0**. DOMPurify and Monaco Editor dropped from vulnerable-package inventory. Other moderate packages (got, glob, minimatch, nested file-type, Cloudcmd transitive chain) remain; they require major package changes under current advisory constraints, prohibited by Scope Lock. This is a **pre-acceptance candidate**: do not claim application compatibility, CI PASS, publication, or phase CLOSED before full focused Gitea CI and exact three-remote tree parity.
Patch provenance: npm registry DOMPurify 3.4.18 tarball URL and integrity SHA512 in npm-generated entry, unchanged other package metadata after deterministic baseline restoration. New graph root overrides change only Cloudcmd-specific DOMPurify. One focused acceptance run pending.
## P04-S02 final CI acceptance — 2026-11-22
Gitea CI #92 (https://dev.ivib.cc/vibtools/DataStack/actions/runs/92) **COMPLETED / SUCCESS**, all 7/7 jobs terminal success on source commit `a88bc5f4498ea1b11acc0acfeb66b5aa9d6531be`: node-regression real Linux npm ci + 24/24 tests including `tests/files-manager.test.ts` exit 0; Python SDK 14/14; quality strict TypeScript/ESLint; Next.js standalone (22/22 static pages); isolated Docker/BuildKit 3-image verification `DATASTACK_THREE_IMAGES_BUILD_PASS`; Windows committed-lock npm ci + Node SDK compatibility; security-audit `DATASTACK_RUNTIME_SECURITY_HIGH_CRITICAL_ZERO` and `DATASTACK_SECURITY_TRIAGE_INVENTORY_PASS`. Audit full=22 moderate/high=0/critical=0 (baseline 24), runtime=20 moderate/high=0/critical=0 (baseline 22). These are affected package entries, not distinct advisories. No new CI workflow or extra broad CI dispatched.
Exact approved patch: `package.json` scoped `overrides.cloudcmd.dompurify=3.4.18`, preserving `overrides.next.postcss=8.5.33`; npm-generated `package-lock.json` changes solely `node_modules/dompurify` version 3.2.7 -> 3.4.18 and verified `resolved`/SHA512 integrity. Baseline Cloudcmd 19.24.0, Monaco Editor 0.55.1, Next.js 15.5.29, all unrelated locked package versions, URL, hash, dependency and metadata preserved. Gitea published candidate lock bytes match disposable SHA-256 `57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854`. Exact candidate tree diff 420 entries, 8 approved changed files only (`package.json`, `package-lock.json`, notes/001–006), 0 unauthorized paths. No runtime/UI/auth/API/SDK/tests/CI/Dockerfiles/Compose/db/schema/data modifications.
Detailed proof: final DOMPurify npm registry URL `https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz` with integrity `sha512-ofe3wI/uNm68HInABYFJYqQxRw1EaKAjNdrFVKqjUY+UZurvNd2L/HuQe097s/4RivWiZyP6tT7aoT8atjfhwg==`. Confirmed isolated npm ls override Cloudcmd -> Deepword -> Monaco Editor -> DOMPurify 3.4.18, isolated npm audit runtime 20/0/0 and full 22/0/0, Gitea acceptance matches. **Residual risk:** 20 moderate runtime affected package entries remain, including Cloudcmd transitive dependencies `got`, `glob`, `minimatch`, nested `file-type` and their parent chains. Current npm audit suggests `cloudcmd@17.0.2` (a major downgrade), explicitly out-of-scope; other transitive fixes need major-version dependency-contract changes. No force/downgrade/unverified override. Security improvement verified but NOT zero vulnerabilities. Production release stays NO-GO; remaining advisory disposition and live readiness need independent scope approval.
**Merge gate:** CI #92 7/7 PASS, approved 8-file patch integrity PASS; main squash merge and Gitea/GitHub/GitLab exact Git content-tree verification required before P04-S02 CLOSED. This note is written before that publication, so final remote commit SHAs shall be appended to the PR closure report after verification. No deployment, migrations, prune, tag, release.
## P04-S03 — Exact advisory/registry/lockfile provenance (2026-11-23)
Gitea main a9ad7700638bea5a7a815c6582721ba517744087, tree 1a0790d0d5922a2df5d529d60a1f106651a3654f. P04-S02 remains accepted (CI #92 7/7 PASS); all approved Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33 and DOMPurify 3.4.18 locks preserved. Windows disposable npm 10.9.8/Node 22.23.2 inspection downloaded the exact Gitea package.json/package-lock.json; original lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit 0. Fresh `npm audit --omit=dev --json` reports runtime moderate=20/high=0/critical=0, full `npm audit --json` moderate=22/high=0/critical=0; npm audit exit 1 because existing moderates, not a tool failure. Counts are affected package nodes, not distinct advisories.
Four direct npm audit advisories explain inherited runtime findings: got `GHSA-pfrx-2q88-qq97` (<11.8.5, first patched 11.8.5), glob `GHSA-3g3m-2fjr-6pw4` (>=9 <=14.0.1, patched 14.0.2), minimatch `GHSA-g3hv-75wg-m249` (>=7 <11.0.1, patched 11.0.1), file-type `GHSA-5v7r-6r5c-r473` (>=13 <21.3.1, patched 21.3.1). Registry confirmed availability of got@11.8.5, glob@14.0.2, minimatch@11.0.1; file-type@21.3.4 is already present as a patched root copy, while its two nested vulnerable copies are 16.5.4. Specific constrained parents: @cloudcmd/dropbox@5.0.3 -> dropbox-stream@3.2.0 -> got `^10.6.0` (locked 10.7.0); console-io@15.0.4 -> spawnify@8.0.1 -> glob `^10.3.3` (locked 10.5.0) -> minimatch `^9.0.4` (locked 9.0.9); inly@5.0.1 -> glob `^10.3.10` and onezip@6.1.1 -> glob `^10.3.10`; Cloudcmd -> onezip@7.0.3 -> glob `^13.0.6` (locked 13.0.7) -> minimatch `^10.2.2` (locked 10.2.6); dword/edward -> join-io@5.0.0 -> ponse@6.0.0 -> file-type `^16.2.0` (locked 16.5.4); restbox@4.0.1 -> ponse@7.0.0 -> file-type `^16.2.0` (locked 16.5.4). Patch version for each lies outside its parent semver major; no compliant same-major security upgrade exists for these vulnerable leaves. npm suggests Cloudcmd 17.0.2 downgrade, specifically forbidden. No forced override was attempted since each candidate violates approved compatibility boundary.
**Reproduction commands (disposable Windows):** `npm ls --package-lock-only cloudcmd got glob minimatch file-type dompurify --all --depth=5` exit=0; `npm audit --omit=dev --json` exit=1 with 20 moderate, 0 high, 0 critical; `npm audit --json` exit=1 with 22 moderate, 0 high, 0 critical; registry `npm view got@11.8.5 version`, `npm view glob@14.0.2 version`, `npm view minimatch@11.0.1 version` all resolved. GHSA advisory reference links: 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. Registry `file-type@21.3.4` confirms root is already patched; nested `file-type@16.5.4` is incompatible with allowed same-major upgrade.
**STOP RULE:** **P04-S03 disposition: FORENSIC REVIEW COMPLETE / TARGETED REMEDIATION BLOCKED BY APPROVED SCOPE.** No package.json, package-lock.json, runtime, UI, File Manager, Monaco Editor, tests, SDK, CI, Dockerfile, Compose, database, secrets or production file edits. No npm install or `npm ci` required for unmodified baseline, no extra Gitea CI dispatched: accepted unchanged baseline retains Gitea CI #92 7/7 including real Linux/Windows npm ci, File Manager regression, SDKs and 3 Docker images. No claim of newly fixed advisories or zero Moderate. Only notes/001–006 publication is permitted; no dependency patch, tag, release, deployment, migration, prune or live change. Production remains NO-GO, pending separately approved parent dependency migration with full compatibility acceptance or a formal risk-disposition decision.
**Change audit:** notes/001–006 only. All dependency and program Git blobs must remain byte-exact baseline. No new CI because no dependency changes to test; no false PASS/fix claim.
## P04-S04 — Baseline and exact evidence (2026-11-23)
Approved baseline Gitea main 986ac1fcb2cced4cb5b330429084b9206f84a791, tracked tree 118fae01fb48c9435907aa5b696e78eba3cc8d36 (420 entries). Disposable Windows Node 22.23.2/npm 10.9.8 copied byte-exact published package.json/package-lock.json; lock SHA-256 57c5ea9df9f28be496f8c3202fbc280b0066bf8c216b8d8a3ca98b6f7b942854. Live registry.npmjs.org upstream metadata inspected 17 parent package names (all fetches passed) and 17 parent/dependency constraint assertions exit 0.
Four direct npm audit GHSA roots remain: got GHSA-pfrx-2q88-qq97 (patched >=11.8.5), glob GHSA-3g3m-2fjr-6pw4 (patched >=14.0.2), minimatch GHSA-g3hv-75wg-m249 (patched >=11.0.1), file-type GHSA-5v7r-6r5c-r473 (patched >=21.3.1). Latest supported upstream parent metadata: @cloudcmd/dropbox 5.0.3 -> dropbox-stream ^3, dropbox-stream 3.2.0 -> got ^10.6.0; console-io 15.0.4 -> spawnify ^8, spawnify 8.0.1 -> glob ^10.3.3; inly 5.0.1 -> glob ^10.3.10/onezip ^6, onezip 6.1.1 -> glob ^10.3.10, onezip 7.0.3 -> glob ^13.0.6; glob 10.5.0 -> minimatch ^9.0.4, glob 13.0.7 -> minimatch ^10.2.2; join-io 5.0.0 -> ponse ^6, restbox 4.0.1 -> ponse ^7, ponse 6.0.0 and 7.0.0 -> file-type ^16.2.0. Root file-type 21.3.4 already patched; nested file-type 16.5.4 remains. Latest @cloudcmd/fileop 9.1.1 still pins inly ^5 and onezip ^7: no advisory improvement. Cloudcmd latest 19.24.0 unchanged. Latest glob 14.0.6 uses minimatch ^11.0.5, incompatible with existing parent ranges. None of these latest parent releases supports a patched leaf major.
Current fresh npm audit --omit=dev --json: runtime affected package entries moderate=20, high=0, critical=0; npm audit --json: full moderate=22, high=0, critical=0. Both audit commands exit 1 due documented moderate advisories, not audit parser errors. Baseline audited lock SHA-256 unchanged; no dependency patch or npm installation. Historical unchanged-code Gitea CI #92 remains 7/7 SUCCESS (not a new P04-S04 CI).
Provenance: isolated temp directory DataStack-P04-S04-20261123, Git source SHA 986ac1fcb2cced4cb5b330429084b9206f84a791; npm registry packuments sampled as of 2026-11-23. Four advisory links 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 . Newer @cloudcmd/fileop 9.1.1 is not a security candidate because dependency ranges remain unchanged.
P04-S04: FORENSIC DISPOSITION COMPLETE, COMPATIBLE SECURITY REMEDIATION BLOCKED by approved Scope Lock. Parent-documented support is mandatory before major transitive upgrade; upstream has no supporting releases. No unsupported leaf overrides, forced npm audit fix, Cloudcmd downgrade, UI/feature/API/auth/SDK/test/CI/Docker/Compose/DB/production changes. Exact publication is notes/001-006 ONLY; package manifest, lock and runtime byte-exact baseline. No new broad CI because no candidate. No deployment, migration, shared prune, tag or release. Production NO-GO. Do not mark four advisories resolved or claim zero moderate. Any parent patch/fork, compatibility adapter, or operational risk acceptance requires separate exact user approval.
## P04-S05 — Evidence and source references (2026-11-23)
Baseline Gitea main f1e04f0689374f401d2f6fd1f97dbc010e2a5015, tracked tree ceb44222e85f3aa64c3e8fcfca1d335cc4a9c6b3, 420 entries. Existing P04-S04 forensic PR #8 records Cloudcmd 19.24.0 and vulnerability constraints. P04-S05 is STATIC SOURCE / UPSTREAM PACKAGE / ADVISORY review only. Runtime affected packages: moderate=20, high=0, critical=0; full audit: moderate=22, high=0, critical=0 (last verified unchanged dependency graph). No live deployment, traffic, runtime exploitation or production session inspection. Source read-only; inherited accepted CI #92 is historical, not new P04-S05 test evidence.
DataStack source-level facts: server/index.js:2530-2538 mounts Cloudcmd File Manager on ingestion port 4000; server/filesManager.js:975-1075 mounts securityGuard first, then Cloudcmd middleware at /vcon/files-engine. server/filesManager.js:664-704 locks root, sets terminal:false, console:false, dropbox:false, packer:zip, zip:true, editor:edward, disabled import/export and config UI. HTTP middleware 711-851 validates admin session, CSRF for unsafe methods, viewer-write denial, path traversal and *.lock; PUT JSON mutation body limit 512KiB at 767-800, NOT a general upload size limit. Socket namespaces 854-973 independently gate session/write/editor events. docker/coolify-nginx.conf:60-73 forwards /vcon/files-engine to ingestion; Docker Compose exposes 4000 internally (source config, NOT verified live firewall). UI components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204 show iframe, browsing, editing, upload/download and ZIP/UNZIP. Existing tests/files-manager.test.ts:66-278 exercise auth 401, viewer 403, CSRF, path lockdown, PUT CRUD/rename, ZIP/UNZIP and GET download on an ephemeral localhost server; NOT hostile payload/fuzz or a deployed validation.
Upstream package-source inspection (registry tarball sources, disposable only): cloudcmd@19.24.0 server/cloudcmd.js:211-287 calls config('console') && konsole, config('terminal') && terminal and config('dropbox') && restbox, confirming those integrations are gated under the DataStack configured false values; restafary/HTTP File Manager and editors remain mounted. dropbox-stream@3.2.0 api.js:91 invokes got.stream.post when its Dropbox API function runs; no DataStack-enabled Dropbox call established. spawnify@8.0.1 lib/spawnify.js imports glob, but console disabled; onezip@7.0.3 bin/onezip.js:73 and inly@5.0.1 bin/inly.js:46 use glob in inspected CLI entrypoints, not proof that their library runtime calls have the same glob invocation. Nested ponse@6.0.0/7.0.0 lib/ponse.js:221 calls filetype.fromFile during sendFile(); restbox@4.0.1 uses ponse helpers but Dropbox route conditional; join-io@5.0.0 inspected join.js invokes ponse.getPathName/setHeader/sendError, not sendFile. Cloudcmd main ponse@8.0.2 uses already patched root file-type@21.3.4. No end-to-end DataStack HTTP handler -> vulnerable nested file-type parser demonstrated. Avoid asserting unreachable; dynamic imports, alternate paths, and actual deployed settings remain unverified.
### Advisory-specific risk matrix
- got / GHSA-pfrx-2q88-qq97: malicious response redirect to Unix socket; ancestor @cloudcmd/dropbox -> dropbox-stream@3.2.0 -> got@10.7.0. Dropbox false and route gated; currently no direct invocation proven; risk conditional if integration reenabled, actual run-time policy differs or an alternate path invokes it. No vulnerability fixed.
- glob / GHSA-3g3m-2fjr-6pw4: aborted async walk may continue filesystem traversal after abort; installed via spawnify/inly/onezip parent chains. Need actual vulnerable glob() with AbortSignal; no such invocation found in inspected DataStack route source and sampled upstream library entrypoints. Conditional/unverified, not classified zero exposure.
- minimatch / GHSA-g3hv-75wg-m249: attacker-controlled glob pattern together with optimizationLevel >=2 can amplify processing; installed via glob 10/13. No attacker-supplied glob pattern or optimizationLevel=2 reached in inspected DataStack handlers; conditional/unverified without dynamic path tracing.
- file-type / GHSA-5v7r-6r5c-r473: crafted ASF/WMV/WMA input causes event-loop infinite-loop in affected parser; nested file-type@16.5.4 via ponse@6/7. Upstream ponse.sendFile() calls filetype.fromFile() but its DataStack-mounted invocation not established; Cloudcmd core ponse@8 is patched file-type@21.3.4. Authentication & root restrictions reduce accessible sources but do not guarantee malicious content is impossible. Potential high availability impact if nested vulnerable sendFile invoked on untrusted data. No live exploit test performed.
Risk treatment (PROPOSED, NOT APPLIED): preserve existing disabled Dropbox/terminal/console, mandatory auth and viewer RBAC; inspect effective live config and public exposure only with separately approved READ-ONLY live access. Prefer upstream-compatible backports to got 10, glob 10/13, minimatch 9/10, file-type 16 or maintained vetted forks with identical public API; require independent security review and clean npm lock integrity before approval. For possible file-type parsing DoS, consider a narrowly scoped input/media validation or worker isolation with hard time limit, but any runtime implementation requires separate user permission, tests, and explicit feature-preservation contract. For glob and minimatch investigate exact dynamic patterns/AbortSignal use without feeding hostile payload to production; for got confirm configured Dropbox routes and egress at live edge. Request upstream fixes from maintainers (outside this repo) only when authorized. Existing role/path guards are defense-in-depth, not formal risk acceptance.
Evidence/reference URLs and source paths: https://github.com/advisories/GHSA-pfrx-2q88-qq97 (UNIX socket redirect); https://github.com/advisories/GHSA-3g3m-2fjr-6pw4 (post-abort FS traversal); https://github.com/advisories/GHSA-g3hv-75wg-m249 (attacker-controlled minimatch optimizationLevel >=2); https://github.com/advisories/GHSA-5v7r-6r5c-r473 (crafted ASF subheader size zero). DataStack files: server/filesManager.js:664-704,711-851,854-973,975-1075; server/index.js:2530-2538; tests/files-manager.test.ts:66-278; docker/coolify-nginx.conf:60-73; components/sections/FilesManagerWorkspace.tsx:24-26,123-133,196-204. Upstream checked registry tarballs Cloudcmd19.24.0/ponse6+7/dropbox-stream3.2.0/inly5.0.1/onezip7.0.3/spawnify8.0.1/restbox4.0.1/join-io5.0.0. Exact engine invocation of malicious input or live deployment remains UNVERIFIED; no crafted payload run.
P04-S05 STATIC FORENSIC/RISK ASSESSMENT COMPLETE, EXPLOITABILITY NOT PROVEN AND REMEDIATION NOT IMPLEMENTED. No feature, runtime, UI, auth, API, SDK, dependency, lockfile, test, CI, Docker/Compose, secrets, DB or production edit permitted. Only six approved notes may be changed. No fresh broad Gitea CI because source/lock never changes. 20 affected Moderate runtime nodes persist and cannot be declared safe/unreachable based on static evidence; release remains NO-GO. A future narrowly approved risk-treatment patch phase must specify exact file-level exception(s), unchanged feature contracts, isolated adversarial smoke tests and CI acceptance; the alternative is a separately approved monitored risk-acceptance decision. Neither is silently authorized.
## P04-S06 — Exact experiment provenance / audit evidence (2026-11-23)
Approved baseline main 79fae037c5920514062c6fbbb3d7eb8133f6449d, 420-entry tree 6aad5a613822c8b119cd558778b7cb7372b4b248. Approved dependency versions unchanged: Cloudcmd 19.24.0, Next 15.5.29, PostCSS 8.5.33, DOMPurify 3.4.18. P04-S05 PR #9 static risk findings respected. Four known direct advisories: got GHSA-pfrx-2q88-qq97, glob GHSA-3g3m-2fjr-6pw4, minimatch GHSA-g3hv-75wg-m249, file-type GHSA-5v7r-6r5c-r473.
Isolation: two authorized disposable Windows sessions used after first execution connector became unavailable. The completed controlled run used temp-cloned Gitea baseline with native Windows Node 26.12.0/npm 11.20.0 and a separately installed Node 22.23.5 runtime via npm exec (no source edits). Clean committed-lock npm ci installed 1,278 packages (exit 0), npm ls cloudcmd/got/glob/minimatch/file-type integrity exit 0; git status remained clean. Baseline lock SHA256 AAA2147F736B33F02109E2FECA2209DC17E1016882B2948A0E16AA2344B4D020. Fresh npm audit runtime: 20 affected Moderate package entries/0 High/0 Critical; full: 22 Moderate/0 High/0 Critical, audit exit 1 due existing Moderate findings.
Dynamic test: external disposable CommonJS Module._load instrumentation logged project-root LOAD events for got (via dropbox-stream/api.js), glob (via spawnify/lib/spawnify.js), minimatch (via glob's CommonJS modules), and nested file-type (via restbox/node_modules/ponse and join-io/node_modules/ponse). Feature-disabled Dropbox can still cause its library to LOAD; LOAD is NOT function invocation or reachable exploit. No corresponding monitored vulnerable CALL events recorded before test stopped, and ESM/dynamically imported functions are outside this CommonJS hook's complete coverage. Tracer was NOT committed to the repo, only temporary tooling. Module-load evidence is not end-to-end proof of exploitability or safety.
Focused existing tests/files-manager.test.ts on Windows: native Node 26.12.0 instrumented result 3/4 PASS, 1 FAIL; supported Node 22.23.5 instrumented result 3/4 PASS, 1 FAIL; Node 22.23.5 without instrumentation ALSO 3/4 PASS, 1 FAIL. Identical first failing assertion tests/files-manager.test.ts:154: authenticated PUT /vcon/files-engine/api/v1/fs/client-alpha/note.csv returned HTTP 404, expected 200. GET status/HTML and preliminary checks passed, but full CRUD/ZIP/UNZIP dynamic operations after that point were NOT exercised. Uninstrumented repro rules out tracer as sole cause; Windows-specific reason or environment/proxy path root cause NOT established. Historical Gitea CI #92 Linux File Manager PASS remains prior evidence only, not new P04-S06 acceptance.
Exact proof artifacts (kept only in authorized disposable TEMP, not committed): Windows Node22 instrumented test output SHA256 06A2C47FD72BD694D688471886773CD606333BC19AD20ECCD3AA47A352107406; Node22 uninstrumented test SHA256 1455B0985170EFAA8243333455307B519F71F3593053648422FA022138236F7B; Node22 trace JSONL SHA256 190419547599F09E5A623F280D151D8A8AF45D11E1415CB7A95DC4E6F393CCEB. Raw trace contains only watched CJS module names/locations, not input payloads. Native Node26 instrumented test log SHA256 E57F4898B05515F0311BFA2AEA9570AA8E1A4BA1DB266C4BE2632E8945A69A3C. Gitea CI #92 https://dev.ivib.cc/vibtools/DataStack/actions/runs/92 is unchanged historical Linux evidence. Advisory URLs 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 . No Gitea CI dispatched for this notes-only phase.
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.
+1 -3
View File
@@ -5843,9 +5843,7 @@
} }
}, },
"node_modules/dompurify": { "node_modules/dompurify": {
"version": "3.4.18", "version": "3.2.7",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz",
"integrity": "sha512-ofe3wI/uNm68HInABYFJYqQxRw1EaKAjNdrFVKqjUY+UZurvNd2L/HuQe097s/4RivWiZyP6tT7aoT8atjfhwg==",
"license": "(MPL-2.0 OR Apache-2.0)", "license": "(MPL-2.0 OR Apache-2.0)",
"optionalDependencies": { "optionalDependencies": {
"@types/trusted-types": "^2.0.7" "@types/trusted-types": "^2.0.7"
-3
View File
@@ -65,9 +65,6 @@
"overrides": { "overrides": {
"next": { "next": {
"postcss": "8.5.33" "postcss": "8.5.33"
},
"cloudcmd": {
"dompurify": "3.4.18"
} }
} }
} }
-10
View File
@@ -1011,16 +1011,6 @@ async function mountFilesManager({
let initErrorMessage = ''; let initErrorMessage = '';
try { 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 cloudcmdPkg = await import('cloudcmd');
const cloudcmdFn = cloudcmdPkg.cloudcmd || cloudcmdPkg.default; const cloudcmdFn = cloudcmdPkg.cloudcmd || cloudcmdPkg.default;
const createConfigManager = const createConfigManager =
+1 -5
View File
@@ -86,8 +86,6 @@ test('FM-REQ-01..06: live CloudCmd mount enforces auth, DB revocation, RBAC, CSR
try { try {
assert.equal(handle.engineReady, true, `CloudCmd failed to init: ${handle.initErrorMessage}`); assert.equal(handle.engineReady, true, `CloudCmd failed to init: ${handle.initErrorMessage}`);
assert.equal(handle.socketPath, '/vcon/files-engine/socket.io'); 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())); await new Promise<void>((resolve) => server.listen(0, '127.0.0.1', () => resolve()));
const address = server.address() as { port: number }; const address = server.address() as { port: number };
@@ -153,9 +151,7 @@ test('FM-REQ-01..06: live CloudCmd mount enforces auth, DB revocation, RBAC, CSR
headers: ownerHeaders, headers: ownerHeaders,
body: 'k,v\n1,ok\n', body: 'k,v\n1,ok\n',
}); });
if (createRes.status !== 200) { assert.equal(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'); 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`, { const renameRes = await fetch(`${baseUrl}/vcon/files-engine/api/v1/rename`, {