Files
DataStack/docs/PRODUCTION-READINESS.md
T

11 KiB
Raw Blame History

DataStack — Production Readiness / Predeployment Gate

Status: BLOCKED / NO-GO — As of 2026-11-23. This is a candidate-branch evidence report, not a declaration that production has been deployed, secured, or smoke-tested.

Frozen provenance and decision

Item Evidence
Gitea repository vibtools/DataStack
Frozen merged main ea3b3038fbd8851613a80098e540346d47c62079
Verified merged source Git tree d264526d9d9b989a208eb0b22f73ecd832e21021 (420 tracked entries)
FINAL-FIX-01 PR #12 merged; Windows Cloudcmd root handling fixed
FINAL-ACCEPTANCE-02 Draft PR #13, final-acceptance-02-20261123; security gate has not cleared
Accepted historical automated runs Gitea #113 = 7/7 SUCCESS; #119 Windows ESLint SUCCESS; #120 Windows Python SDK 14/14 SUCCESS
Exact tested runtime SHA for those runs 36a1c5bf01cf240cac1493eb956112368aea7d62
Dependency versions in baseline cloudcmd@19.24.0 lock; next@15.5.29, postcss@8.5.33, dompurify@3.4.18 (see notes/001–006 provenance)
Release candidate NOT READY
Production deployment NO-GO; not executed

The candidate's documentation-only commits do not constitute a new application build. The prior Windows File Manager 4/4 regression pass and Linux regression/Node SDK/Next.js/Compose/three-image build pass at the tested earlier SHA are useful historical evidence; there is no new full final acceptance CI, live operational proof or runtime rollback acceptance on this candidate. The 3-remote exact 420-entry Git-tree parity was verified for the frozen merged baseline, not for this unmerged candidate.

Current security STOP

Gitea CI #113 npm audit affected-package inventory (not unique advisory count):

Scope Moderate High Critical
Production runtime --omit=dev 20 0 0
Full dependency graph 22 0 0

The CI security-audit job PASS means the configured High/Critical gate passed; it does not mean there are zero remaining vulnerabilities or that Moderate findings have been accepted.

Affected leaf Known locked version / ancestry Patched range (upstream) Current decision
got / GHSA-pfrx-2q88-qq97 dropbox-stream@3.2.0 -> got@10.7.0 (^10.6.0) >=11.8.5 or applicable 12.x fix Unresolved
glob / GHSA-3g3m-2fjr-6pw4 spawnify/inly/onezip -> glob@10.5.0 / 13.0.7 >=14.0.2 Unresolved
minimatch / GHSA-g3hv-75wg-m249 glob -> minimatch@9.0.9 / 10.2.6 >=11.0.1 Unresolved
nested file-type / GHSA-5v7r-6r5c-r473 ponse@6/7 -> file-type@16.5.4 >=21.3.1 Unresolved

Upstream publisher source commits were inspected at immutable SHAs: got 861ccd9ac2237df762a9e2beed7edd88c60782dc (redirect guard), minimatch 77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8 (optimization expansion limit), and file-type 319abf871b50ba2fa221b4a7050059f1ae096f4f (ASF tokenizer progress guard). The glob advisory documents four missing returns on aborted directory walks. These are upstream fix references, not approved older-major backports. Their API/behavior compatibility with the installed ancestor-constrained major versions has not been demonstrated, and no verified backport artifact, package patch integrity, or successful focused test exists for the proposed older-major versions.

Official Cloudcmd v19.24.1 (2026-11-23) only upgrades declared @cloudcmd/fileop from ^9.0.8 to ^9.1.1 among directly inspected relevant parent ranges. This does not demonstrate resolution of all four advisory chains. Historical P04-S03–S06 source and module-load tracing was bounded; it did not establish total dynamic callpath coverage or zero exploitability. Existing disabled Dropbox/terminal/console and authentication restrictions are not a substitute for a security disposition.

Security acceptance requires one of: (A) publisher-verifiable, integrity-pinned, application-compatible backport/parent remediation with exact dependency resolution and isolated regression/CI evidence, or (B) separately authorized, advisory-specific residual-risk approval based on real exposure and compensating controls. Neither exists at this checkpoint. Do not force downgrade, silently patch transitive major versions, weaken the CI security gate, or disable features. Security STOP is active, so no full final acceptance workflow, release merge or production deployment is authorized.

Supported baseline and architecture (source-verified; not deployed evidence)

  • App contract: Node.js >=20 in package.json. Docker application images use Node 22 Alpine. Historical Gitea native Windows File Manager ran on Node 26. Windows and Linux Python SDK regressions used different isolated interpreter versions; these test passes are not a claim of broader host/platform certification.
  • Proxy: Nginx container exposes internal port 80; Web/Admin Next.js on 3000; Express + Socket.IO ingestion on 4000.
  • Data systems: Redis 7-alpine with append-only file on redisdata; PostgreSQL 16-alpine with pgdata; CSV partitions, uploads and runtime logs under named datastack-data shared storage.
  • docker/docker-compose.yml declares the web, ingestion, proxy, redis, postgres services and their health checks. Builds and Compose config passed historical CI, but service cold-start, full restart/rollback, failover and restoration have not been accepted in this phase.
  • web health URL: /api/health; ingestion health URL: /health; proxy healthcheck uses /api/health. Avoid treating an unauthenticated HTTP 200 alone as proof of all downstream service availability.

Deployment prerequisites and secrets (unexecuted checklist)

  • Clear security STOP and achieve a full mandatory final acceptance CI on a fixed candidate SHA.
  • Confirm exact immutable source SHA, pinned dependency lock integrity, retained build logs and rollback artifact identifiers.
  • Use a disposable isolated runtime to verify service dependency health, startup/shutdown/restart, and rollback without touching live data.
  • Provide valid unique high-entropy generated values for Compose-required SERVICE_REALBASE64_64_JWT, SERVICE_REALBASE64_64_ADMINSESSION, SERVICE_REALBASE64_64_ADMININSTALL, SERVICE_PASSWORD_64_POSTGRES, SERVICE_HEX_32_DATABASENAME, and an internal service secret; do not print or commit them.
  • Confirm effective DATABASE_URL, REDIS_URL, DATASTACK_CORS_ORIGINS, DATASTACK_ALLOW_PRIVATE_URLS, DATASTACK_ADMIN_SETUP_KEY, admin login policy, TLS, trusted reverse-proxy headers and firewall/ingress boundaries on the actual deployment. Do not assume source defaults equal live configuration.
  • Confirm persistent-volume ownership, available disk capacity, log retention, data retention and audit/monitoring alert routing.
  • Obtain separately authorized read-only live configuration/exposure review and deployment/restore window before production changes.

Backup and rollback gates (never executed here)

  1. Before any authorized deployment, take consistent and access-controlled backups of all three persistent data sets: PostgreSQL (pgdata), Redis AOF (redisdata), and the complete CSV/uploads/storage volume (datastack-data). Record immutable checksums and verify restore on an isolated disposable environment.
  2. Retain the previous source/image digests and a clearly identifiable last-known-good deployment configuration; verify secrets and schema compatibility against that checkpoint. Back up DB and volumes before any process that might run additive schema initialization.
  3. Test rollback in a disposable environment: stop only the test stack, restore isolated snapshots or prior image references, restart dependent services in order, and verify health, admin authentication, Redis replay/ACK, CSV integrity, and File Manager CRUD with disposable fixtures. Record elapsed time and checksums; do not claim RTO/RPO without measurements.
  4. Production rollback is a separate change-controlled action; never use docker compose down -v, shared daemon prune, destructive volume delete or an unverified in-place DB rollback.

Acceptance matrix and operational monitoring

Gate Evidence status
Node 24 TypeScript regression suites; Node SDK build Historical CI #113 PASS
Python SDK Linux/Windows Historical CI #113 / #120 PASS (14/14 each)
TypeScript, ESLint, Next.js production build Historical CI #113 / #119 PASS
Windows/Linux File Manager CRUD/ZIP, auth/RBAC/CSRF/traversal guards Historical CI #113 4/4 Windows; Linux suite PASS
Docker Compose config and three image builds Historical CI #113 PASS
Redis idempotency/ACK/retry, CSV/gzip/replay/buffer Historical CI #113 broad regression PASS; final independent production durability not claimed
Four-chain dependency remediation or authorized risk disposition BLOCKED
Final candidate full Gitea CI at security-cleared SHA NOT RUN
Disposable five-service cold start / health / shutdown / rollback NOT RUN
New final-branch three-remote tree parity and merge NOT DONE (candidate remains unmerged)
Live exposure, DNS/TLS, backup restore, incident/alert verification NOT AUTHORIZED / NOT DONE

Required post-authorization monitoring: repeated failures of proxy/web/ingestion/PostgreSQL/Redis health; Redis AOF and queue backlogs; ACK/retry/replay anomalies; CSV flush latency, file corruption and disk utilization; auth failures and revocation; unexpected File Manager errors; container restarts and security events. Assign alert owners, escalation contacts, time-based thresholds, and a rollback decision owner before production.

Release gate

RELEASE CANDIDATE READY only after accepted security disposition, full mandatory disposable tests including startup/rollback, exact patch audit, one consolidated terminal full CI, and source/mirror integrity. PRODUCTION GO additionally requires separately authorized verified live operational readiness. This report is BLOCKED / NO-GO, not production-ready and not a risk-acceptance document. Current branch changes are documentation-only; old PR #4 is untouched.