Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation. Co-Authored-By: Craft Agent <agents-noreply@craft.do>
67 lines
8.2 KiB
Markdown
67 lines
8.2 KiB
Markdown
# Release gates / 2026-10-01
|
|
|
|
No release approval. No commit/push/task closure. Existing API18081 not restarted.
|
|
|
|
## TLS, trusted proxies and CSRF deployment
|
|
|
|
Managed certificate chain/private key are read-only protected mounts, never repository/backup artifacts. Terminate TLS1.2/1.3 at reviewed Nginx config deploy/nginx/tls-proxy.conf.example. Set SESSION_COOKIE_SECURE=true on API; only allow API traffic from the actual proxy network. HTTP_TRUSTED_PROXY_CIDRS must use exact proxy sources, never /0; do not configure generic private subnets solely for convenience. Nginx must overwrite Host/X-Forwarded-For/X-Forwarded-Proto; caller-supplied forwarded values are not authority. Keep metrics/readiness loopback only and deny package internal paths publicly. Managed certificate renewal, redirects/HSTS, listener ACL and actual proxy deployment remain unverified.
|
|
|
|
Browser session writes require same Origin scheme+Host and reject Sec-Fetch-Site cross-site; cookie HttpOnly+SameSiteStrict+Secure. Missing Origin/Fetch Metadata remains allowed for non-browser clients; this is NOT a formal synchronizer-token implementation. No CORS allowlist/credentialed external frontend. Formal CSRF threat model (sibling domains, DNS/Host trust, missing headers), token policy and TLS proxy acceptance require T01/T02 decision. Never claim broad CSRF acceptance from a unit test.
|
|
|
|
TestTLSOriginCookieBoundary passed on real isolated httptest TLS listener with test certificate: same-origin200, foreign Origin403, HTTP Origin on HTTPS403, Secure/HttpOnly/Strict cookie, forwarded spoof IP ignored with no trusted proxies. This is actual direct-TLS component evidence, not Nginx production TLS validation. Existing tests cover explicit CIDR/default proxy controls. No production certificate installed.
|
|
|
|
## Compose run gates
|
|
|
|
API image build previously failed reaching proxy.golang.org; no successful new image/runtime claim. Redis remains optional cache profile, while API defaults to mandatory Redis with ENTRY_REDIS_ADDR empty. To rehearse explicitly select either controlled ENTRY_LIMIT_MODE=local-dev (NOT production/multi-instance acceptance) or start cache and configure a numeric private Redis address after inspecting the isolated container network. Current address validation does not accept service name redis; static-IP/service-discovery design must be reviewed before reproducible Compose delivery. Redis dependencies/ACL/password/TLS/HA are not wired for production. Placeholder compose config success does not demonstrate startup. LICENSE_KEYRING_FILE is not mounted by base Compose; opt-in development overlay must mount public ring read-only and inject path. Never inject private key through this public ring.
|
|
|
|
## Backup / restore / rollback checklist
|
|
|
|
1. Obtain approved maintenance/quiesce window; block writes and drain upload/activation/heartbeat transactions. Record image/config/schema IDs and file manifest counts/hashes without secrets. Fail if consistent snapshot cannot be proven.
|
|
2. Use existing backup-delivery.sh with trusted SQL/tar only. DB snapshot/binlog position and object files must share a consistency point; existing restore rehearsal is not proof of production binlog consistency. Encrypt production backups/access-control them. Signing private keys are excluded and recovered separately through protected approved secret management.
|
|
3. Restore only isolated EMPTY database/private target with no listener and CONFIRM_EMPTY_RESTORE=YES. Refuse nonempty targets regardless of confirmation. Verify schema clean008, every object metadata/hash/size, license/order/operation relations, audits and public-key fingerprints. Restore application should remain offline until approval.
|
|
4. Rehearse previous image/config/keyring rollout with both old and newly-issued public keys retained. Do not down migrated business schema or erase idempotency/certificate JSON. Confirm stored v2 artifacts verify after rollout; retain revocation policy. Failed key/schema/readiness checks block listeners and rollback approval.
|
|
5. Verify actual isolated activation/heartbeat/download lifecycle, denial, Redis outage, TLS proxy, logs, alerts, lease expiration and recovery reconciliation. Reopen traffic only after evidence review. No production recovery/RTO/RPO/binlog/rollback claim currently.
|
|
|
|
## T01-T30 inventory
|
|
|
|
Canonical task status remains Chinese task plan; no task accepted/closed by this update.
|
|
|
|
| Task | Status | Remaining release gate |
|
|
| --- | --- | --- |
|
|
| T01 | blocked | Product/integrator owner, deployment identity and business decisions/signatures |
|
|
| T02 | blocked | Approved OpenAPI/errors/RBAC/crypto/lifecycle contract |
|
|
| T03 | needs acceptance | Actual deployment, remote CI/review |
|
|
| T04 | in progress | Full entitlements/schema/seed/RBAC approval |
|
|
| T05 | in progress | Customer identity/refresh; Redis shared limiter implemented, TLS/HA acceptance pending |
|
|
| T06 | in progress | Permission routes/full CRUD/pagination/browser acceptance |
|
|
| T07 | in progress | Quotas/crash reclamation/storage abstraction acceptance |
|
|
| T08 | in progress | Build network/Redis wiring/full Compose/managed TLS |
|
|
| T09 | in progress | Multi-account/RBAC management and audit |
|
|
| T10 | in progress | Customer identities/subaccounts/tenant isolation |
|
|
| T11 | in progress | Modules/templates/disable constraints/edit UI |
|
|
| T12 | in progress | Full entitlement and state contracts |
|
|
| T13 | in progress | Opt-in signed key_id v2 + keyring + Go->Node vectors implemented; rotation E2E and lifecycle approval pending |
|
|
| T14 | in progress | Clone/migration/scaling identity approvals |
|
|
| T15 | in progress | Reference client verifier/high-water implemented; trusted persistence/host integration/monitoring/UAT missing |
|
|
| T16 | deferred | Not first release |
|
|
| T17 | in progress | Packages/pricing snapshots/approvals |
|
|
| T18 | in progress | Renewal/refund/approval rules |
|
|
| T19 | not started | Notifications/dedup/retry |
|
|
| T20 | not started | Finance/report/export |
|
|
| T21 | in progress | Compatibility/forced/gray release |
|
|
| T22 | in progress | Chunk/resume/quota/orphan reclaim |
|
|
| T23 | in progress | Version check/real client update |
|
|
| T24 | deferred | OSS outside first release |
|
|
| T25 | in progress | Instance-credential read-only portal `/customer` + `/api/v1/portal/snapshot` implemented; customer account login/tenant/RBAC/reset contract still absent, so not accepted as account portal |
|
|
| T26 | in progress | Audit pagination/filter/retention |
|
|
| T27 | in progress | Independent Node verifier and vectors exist; actual integrator E2E absent |
|
|
| T28 | in progress | Race/pressure/capacity/outage/security review/vulnerabilities |
|
|
| T29 | in progress | Production encrypted recovery/binlog reconciliation/alerts/rollback |
|
|
| T30 | blocked | No signed UAT, gray observation, production approval, or release authorization |
|
|
|
|
## Matrix evidence boundaries
|
|
|
|
Passed: Go full tests/vet; frontend Vitest (10 tests); instance-credential portal unit boundary; isolated MySQL v2 activation/heartbeat old/new key rotation, historical replay, router re-registration, Node public-vector verification, portal pagination/audit/no-store and cross-instance rejection; old v1 compatibility tests; Go->Node ephemeral vector verification/tamper/revocation/unknown rejection and lease high-water; isolated direct TLS boundary; prior isolated Redis shared login and fail-closed; prior new API two-process persistent signing continuity/internal ready.
|
|
|
|
Not executed in this increment: OS-process restart with new-v2 keyring continuity (required DSN/Redis test inputs were absent), public keyring HTTP matrix, Redis infrastructure restart/load, Nginx managed TLS, full Compose, Linux race, authenticated customer-account portal, hosted integrator workflow, production rollback and UAT. Browser-only `/customer` layout checks passed at 390x844 and 1440x900 with no horizontal overflow, but no credentials were entered and no authenticated download/cross-tenant browser flow was claimed. Compose was blocked before build by missing protected external paths (`MYSQL_APP_SECRET_FILE`, `MYSQL_ROOT_SECRET_FILE`, `LICENSE_SIGNING_KEY_HOST_FILE`, `PACKAGE_STORAGE_HOST`); earlier API build attempts also hit `proxy.golang.org` TCP/443 refusal. The MySQL evidence uses a newly-created dedicated schema and router re-registration; it does not establish production acceptance. Do not reuse prior v1 isolated startup as v2 end-to-end evidence.
|