Compare commits

...
Author SHA1 Message Date
victorsteele428 ea3b3038fb docs(ff01): freeze accepted merge, exact mirror parity and security STOP [skip ci] 2026-11-23 22:46:22 +00:00
victorsteele428 8da1f6a852 fix(ff01): Windows Cloudcmd root compatibility + accepted CI [skip ci]
PR #12 approved six-file scope. Tested non-note blobs at 36a1c5bf01, CI #113 7/7 + #119 and #120 SUCCESS. Follow-up only 3 evidence notes. Runtime 20 Moderate unresolved, production NO-GO.
2026-11-23 22:42:12 +00:00
victorsteele428 1e2cd31aef ci(wf-01): Gitea-first trusted candidate gating [skip ci]
Gitea CI #107 terminal 7/7 PASS at 89ba8a70; exact 4 file scope, security review and dedicated runners verified. No production changes.
2026-11-23 19:35:53 +00:00
6 changed files with 155 additions and 8 deletions

No files matched your search

+38 -7
View File
@@ -4,6 +4,13 @@ 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:
@@ -22,15 +29,21 @@ 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 != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest 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
@@ -55,7 +68,7 @@ jobs:
test "$failed" -eq 0 test "$failed" -eq 0
python-regression: python-regression:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:22-bookworm-slim container: node:22-bookworm-slim
timeout-minutes: 20 timeout-minutes: 20
@@ -68,6 +81,8 @@ 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
@@ -86,13 +101,15 @@ jobs:
echo DATASTACK_PYTHON_14_OF_14_PASS echo DATASTACK_PYTHON_14_OF_14_PASS
quality: quality:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true' }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }}
runs-on: ubuntu-latest 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
@@ -101,13 +118,15 @@ jobs:
run: npm run lint run: npm run lint
production-build: production-build:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest 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
@@ -117,7 +136,7 @@ jobs:
test -f .next/standalone/server.js test -f .next/standalone/server.js
docker-image-build: docker-image-build:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:22-alpine container: node:22-alpine
timeout-minutes: 45 timeout-minutes: 45
@@ -132,6 +151,8 @@ 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
@@ -155,13 +176,15 @@ jobs:
echo DATASTACK_THREE_IMAGES_BUILD_PASS echo DATASTACK_THREE_IMAGES_BUILD_PASS
windows-compatibility: windows-compatibility:
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.quality_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: windows-latest 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: |
@@ -181,9 +204,15 @@ 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 != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true') }} if: ${{ (github.event_name != 'pull_request_target' || (github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.p01_only != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.python_only != 'true')) }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:22-alpine container: node:22-alpine
timeout-minutes: 15 timeout-minutes: 15
@@ -193,6 +222,8 @@ 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
+34
View File
@@ -230,3 +230,37 @@ Next proposed P04-S07 (REQUIRES SEPARATE USER APPROVAL): isolated Windows File M
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure. P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
+34
View File
@@ -252,3 +252,37 @@ Phase status: static baseline verified; disposable real clean npm ci PASS; depen
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure. P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
+34
View File
@@ -403,3 +403,37 @@ Exact proof artifacts (kept only in authorized disposable TEMP, not committed):
P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure. P04-S06 forensic reachability/disposition COMPLETE but compatible security remediation BLOCKED: P04-S04's latest upstream parent contracts do not accept patched leaf majors, and no publisher-authenticated, vetted, API-compatible older-major backport with exact published integrity and verified regression evidence was established. No unverified override, package or lock patch, npm audit fix --force, app/SDK/test/CI/Docker/Compose/UI/DB/prod change. No new broad Gitea CI because no approved dependency candidate. Only approved notes/001–006 may be committed and mirrored; no deployment, migration, prune, tag, release. Production remains NO-GO; 20 runtime Moderate package entries unresolved. Do not claim full dynamic reachability verification, File Manager compatibility PASS, fixed advisories, or zero exposure.
## WF-01 — Gitea-first / PC backup-only (2026-11-23; candidate, CI pending)
Approved baseline Gitea `d9d1c2f4b2b102599c687090ea56345d58e00d14`, tracked Git tree `98a7e07b1cbc8b6669ffc728b3d68a87f602bfa4` (420 entries); previous P04-S06 PR #10 closed, last accepted CI #92 7/7 PASS on earlier P04-S02 source. Exact WF-01 write allowlist: `.gitea/workflows/datastack-ci.yml`, `notes/002-PRODUCTION-UPDATE-ROADMAP.md`, `notes/003-PHASE-STATUS-LOG.md`, `notes/006-BASELINE-AND-PATCH-EVIDENCE.md`; all other tracked paths read-only. No P04-S07 application defect fix authorized in WF-01.
Runner read-only preflight: Gitea CI #92 logged `coolify-linux-runner` on `ubuntu-latest` and `windows-rdp-runner` on `windows-latest`. An independent remote inventory found online RDP host `WIN-IK7N6SD2UBU`, `C:\gitea-runner\act_runner.exe` and running `act_runner.exe` (PID 6708), matching prior verified dedicated Windows runner identification rather than the user's personal PC. No runner config, service, label or location modified. Linux production-host isolation / Docker socket remains a separately documented operational risk; no cleanup or destructive daemon operation authorized.
CI trigger design: retain manual `workflow_dispatch` and existing main-workflow-file push trigger; add `pull_request_target` for opened/reopened/synchronize targeting main with notes-only/Markdown-only filtering. The workflow is read from the trusted base branch; every heavy job is fail-closed unless `head.repo.full_name == github.repository` and PR base is main. Fork PR code is never checked out or executed on self-hosted runners by this workflow. Same-repo PR jobs explicitly checkout their head SHA with `persist-credentials: false`; GITEA_TOKEN permission reduced to `contents: read`. This is a trusted internal PR/candidate acceptance gate, not an authorization to execute arbitrary untrusted forks. Docs-only changes are manual review without redundant broad CI. No changes to the seven job scripts or existing tests/build behavior.
Gitea API version reported `28.4.0` during preflight. `main` branch unprotected at baseline; branch protection is proposed only, not applied: require verified full CI and human approval before merge, disable unreviewed direct main writes after separately approved protection configuration. Existing unmerged WIP P02 PR #4 must not be merged. Personal PC stays fetch/pull backup-only; no local npm, Python, tests, Docker, builds, resets, cleans or packages.
Candidate state: no acceptance PASS or mirror sync claimed yet. Next gate: one focused Gitea workflow dispatch on this exact candidate after remote runner safety confirmation, inspect terminal seven-job result and exact four-path patch, then squash once into Gitea main with `[skip ci]` to avoid duplicate full-CI trigger, sync GitHub/GitLab and compare 420 tracked objects. If acceptance fails or remote isolation becomes uncertain, STOP without main merge. Production NO-GO: Windows File Manager PUT 404, 20 runtime Moderate dependency entries and live acceptance remain unresolved.
## FINAL-FIX-01 — consolidated Windows FM fix + residual dependency security disposition (candidate)
WF-01 prerequisite CLOSED: Gitea PR #11 merged, Gitea CI #107 terminal 7/7 PASS; frozen Gitea main `1e2cd31aefc5cd8425e44624a96095d40c917223`, Git tree `e2957792d719eef3f61b49539ed749ac25be5cf9`; verified Gitea/GitHub/GitLab exact 420/420 objects (0 mismatch). This phase's source boundary is `server/filesManager.js` mount/router Windows root only, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml` Windows compatibility job, and these three notes. package.json/package-lock.json and all ingestion/Redis/SDK/runtime/Compose files are untouched because no separate reproduced regression or vetted compatible package remedy exists.
Reproduction on verified dedicated Windows Actions host `WIN-IK7N6SD2UBU` (not personal PC), isolated new TEMP clone at exact baseline. `npm ci --no-audit --no-fund` exit 0, 1,278 packages. Native Windows Node 26.12.0 focused tests/files-manager.test.ts: 3/4 PASS, 1 FAIL at :154 HTTP PUT returned 404. Independent disposable request-response instrumentation captured HTTP 404 body ENOENT from mkdir attempting `C:\<checkout>\C:\<temporary-root>\client-alpha`, so this is not auth, prefix, or proxy status. Source-grounded upstream `restafary@13` `server/handle-dot-dir.js` incorrectly handles Windows drive-absolute `root` by joining it to CWD when it does not start with `/`; `redzip` downstream mkdir fails. Root cause reproduced without tracing or production data.
Scoped workaround in `mountFilesManager`: Windows only, convert embedded Cloudcmd config root into explicit cwd-relative path on the same drive; retain securityGuard's and exported storage absolute root. For different-volume roots, fail closed at Cloudcmd initialization with existing 503 unavailable response; no guessed cross-volume bypass. `buildCloudCmdConfig`, Linux behavior, API paths, UI, auth/CSRF, lockfile and other features unchanged. Exact external disposable patch verified native Windows full File Manager suite 4/4 PASS, 0 FAIL including authenticated CRUD/rename/ZIP/UNZIP/download/delete, viewer RBAC, CSRF, lockfile, traversal and config-lock checks. Linux regression and CI candidate acceptance are not claimed yet. Add focused native Windows execution to existing Gitea Windows job; other CI jobs remain unchanged.
Security STOP boundary: original audited runtime 20 Moderate affected packages (0 High, 0 Critical), full 22 Moderate (0 High, 0 Critical), including Cloudcmd got/glob/minimatch/nested file-type. The prior P04-S06 publisher/authenticity and older-major compatibility investigation did not establish an acceptable backport. Newly reviewed upstream Cloudcmd v19.24.1 changes only `@cloudcmd/fileop` dependency declaration vs v19.24.0, not proof of remediation for these four chains. No unverified upgrade, incompatible override, arbitrary fork, package or lockfile change; dependency remediation remains BLOCKED. Under approved stop rule, FINAL-ACCEPTANCE-02 and production readiness must NOT be claimed until an independently vetted compatible security remedy or explicit approved risk disposition exists.
Candidate CLOSEOUT ACCEPTANCE at tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`: Gitea CI #113 completed SUCCESS with all 7/7 jobs (node-regression, python-regression, quality, production-build, docker-image-build, windows-compatibility, security-audit); Node 24/24 suites, Linux Python 14/14, TypeScript/ESLint, Next production build, Docker Compose validation and all 3 images PASS; native Windows File Manager authenticated CRUD/ZIP/security 4/4 PASS. Independent Gitea Windows ESLint CI #119 terminal SUCCESS and Windows Python SDK CI #120 terminal SUCCESS (14/14). Exact commit SHA matched all runs. Final six-file diff tree audit: `server/filesManager.js`, `tests/files-manager.test.ts`, `.gitea/workflows/datastack-ci.yml`, and these three notes; ZERO unauthorized changes; 420 tracked entries maintained. Original source/test/CI blobs unchanged by this **notes-only** evidence amendment; existing accepted CI can be reused without repeat full build. Security-audit #113: runtime 20 Moderate, 0 High, 0 Critical; full 22 Moderate, 0 High, 0 Critical. These are unresolved, NOT accepted: `got`, `glob`, `minimatch`, `file-type` Cloudcmd dependency chains. Distinguish successful severity gate from security closure. Standalone Windows ESLint installer emitted peer-warning for @putout/eslint requiring eslint >=10 (root eslint 9), but lint succeeded. Windows Actions cleanup logged host miscellaneous cache timeout AFTER completed-success job; runner configuration not touched. PR #12 Gitea merge/three-remote sync still PENDING at this evidence checkpoint. FINAL-ACCEPTANCE-02 and production readiness remain STOP/BLOCKED pending proven compatible security remediation or separate **explicit** residual-risk approval. No live operations or release.
## FINAL-FIX-01 — Accepted merge, three-remote parity and security STOP (2026-11-23)
**Accepted Gitea closeout:** PR #12 squash merged into Gitea main `8da1f6a852261ae727a9ae8291ca521466cf0a5b`; original tested source SHA `36a1c5bf01cf240cac1493eb956112368aea7d62`; CI #113 (7/7 terminal SUCCESS), standalone Windows ESLint #119 (SUCCESS) and Windows Python SDK #120 (14/14 SUCCESS). Before merge, an evidence-only candidate commit `3bf2fbca58cb48560f1c22621950ff33cda5eb02` modified exactly notes/002, notes/003, notes/006; the already-tested runtime, test and workflow blobs were byte-identical. PR diff exactly six approved files and 0 unauthorized files. No duplicate CI dispatched. Windows File Manager 4/4 PASS, Node 24/24 suites PASS, Linux/Windows Python 14/14, lint/typecheck/Next/three Docker images PASS. No feature/UI/API/auth/SDK/DB/Redis/CSV/Docker configuration changes outside the accepted Windows root adapter and tests.
**Mirror proof, before this notes-only final evidence:** Gitea commit `8da1f6a852261ae727a9ae8291ca521466cf0a5b`, GitHub `JILLU-Games/DataStack` main `209c958084e81d2a618420fb6b1096ff25d0f1b1`, GitLab `ivibtools/datastack` main `727cfb5836366df82a9dd6a1476ed83187e5a7f9`; exact Git tree `800fd6500c51ac58a52f8dbc6b769022e3c24dd5` on all three remotes, 420 tracked entries each; per-file blob SHA/mode differences 0. This final notes-only commit must also be mirrored and re-verified; its new Git tree differs because only these three notes are appended.
**Security evidence, unwaived:** Accepted Gitea CI #113 npm audit inventories: runtime 20 Moderate, 0 High, 0 Critical affected package entries; full 22 Moderate, 0 High, 0 Critical. The security job passes its 0-High/0-Critical gate, NOT the unresolved Moderate inventory. Known four leaf advisory chains are (1) `got@10.7.0` / GHSA-pfrx-2q88-qq97 (patched 11.8.5), (2) `glob` / GHSA-3g3m-2fjr-6pw4 (patched 14.0.2), (3) `minimatch` / GHSA-g3hv-75wg-m249 (patched 11.0.1), (4) nested `file-type@16.5.4` / GHSA-5v7r-6r5c-r473 (patched 21.3.1). Counts describe affected packages, not 20 unique advisories. See notes/001–006 P04-S03–S06 for exact ancestor constraints, transitive package integrity, prior disposable static/runtime trace and advisory provenance. Previous LOAD instrumentation does not prove vulnerable-function CALL reachability, and absent proof does not mean zero exposure. Auth and disabled Dropbox/terminal reduce some exposure but do not eliminate dependencies or prove safety.
**Remediation decision:** Current Cloudcmd `19.24.0` transitive parents do not declare compatibility with the patched major leaf versions. Reviewed upstream `19.24.1` alters `@cloudcmd/fileop` dependency requirement, with no demonstrated compatible security backport for all four chains. No publisher-authenticated, exact-integrity, regression-validated same-API backport or safe parent remediation candidate established. Do NOT downgrade to cloudcmd 17.0.2, force npm audit fix, add unsupported overrides, or alter runtime/lockfile speculatively. `package.json` and `package-lock.json` unchanged by FINAL-FIX-01. No security candidate means no new full CI dispatch. Security closure = **BLOCKED**, no residual risk acceptance. Explicit next authorization required: a narrowly reviewed parent/older-major backport scope exception with isolated compatibility proof, OR separate, package/advisory-specific explicit residual-risk acceptance with documented compensating controls and exposure review. Neither is implied here.
**Gate result:** FINAL-FIX-01 Windows compatibility closeout DONE. FINAL-ACCEPTANCE-02 NOT STARTED because the approved STOP rule is triggered at unresolved security disposition. RELEASE CANDIDATE NOT READY, Production NO-GO. No production/test data mutation, personal-PC processing, runner changes, deployment, tag, release, migrations or destructive cleanup; old WIP PR #4 untouched.
+10
View File
@@ -1011,6 +1011,16 @@ 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 =
+5 -1
View File
@@ -86,6 +86,8 @@ 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 };
@@ -151,7 +153,9 @@ 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',
}); });
assert.equal(createRes.status, 200); if (createRes.status !== 200) {
assert.fail(`Cloudcmd PUT failed with ${createRes.status}: ${(await createRes.text()).slice(0, 240)}`);
}
assert.equal(fs.readFileSync(path.join(tmpRoot, 'client-alpha', 'note.csv'), 'utf8'), 'k,v\n1,ok\n'); 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`, {