Skip to content
MSO CloudDocumentation

Release Checklist

On this page

Every release passes this checklist. Treat it as the pre-deploy gate: if a box can't be ticked, don't ship.

1. Code state#

  • On main, working tree clean.

  • The full gate green on the latest commit — one command, never a hand-picked subset:

    pnpm run verify   # format → types → lint → test → build → topology/security → data/RLS → audits
    

    audit:all in package.json is the ONE place the static audit scripts are enumerated — do not re-list them here, in hooks, or in CI. verify:data reconciles metric surfaces against live data and needs the local data plane up and seeded (./scripts/start-dev.sh). verify:rls must exit without a privileged-runtime warning in the release environment; a warning is not an accepted green release.

  • Any accepted dependency-audit finding is documented in docs/SECURITY.md.

  • pnpm --filter @yng/web build passes if apps/web changed — typecheck can false-pass on a stale turbo cache.

  • CI green on the head commit.

  • Every open item in the risk register of SECURITY.md is verified or has an explicit, owner-approved, time-bounded release decision. Tenant/credential/encryption/topology blockers are not waivable for multi-tenant production.

2. Database#

  • Every new migration is backward-compatible with the previous release. No DROP COLUMN / DROP TABLE in the same release that introduces a code change requiring the new shape.
  • Every new table has an RLS policy in packages/schema/sql/rls-policies.sql.
  • Every new table has an is_sample column with default false.
  • Every new brand-partitioned table carries org_id AND brand_id.
  • Indexes added for the actual query predicates that will run in production.
  • Migrations have been dry-run on a staging snapshot of production data. Estimated downtime / lock duration noted in the PR.

3. Schema-generated artefacts#

  • If Cube schema is affected: pnpm cube:generate && pnpm cube:generate:check.
  • If types are exported from packages/schema: consuming packages typecheck against the new shape.

4. Configuration#

  • .env.example updated for any new env var. Defaults documented.
  • docker-compose.yml uses ${VAR:?msg} (fail-loud) — never ${VAR:-default} — for security-sensitive vars.
  • Secrets rotated if a credential leaked. For envelope keys: add ENCRYPTION_KEY_V<n>, retain every referenced historical key, move new writes with ENCRYPTION_KEY_VERSION, prove mixed-version reads/rollback, and retire an old key only after the persisted-version inventory reaches zero.
  • Production bootstrap test proves the operator secret/one-time enrollment is used, no deterministic default is possible, and rerun cannot reset an existing admin.
  • Canonical production topology renders from a clean checkout and runtime DB roles are NOSUPERUSER NOBYPASSRLS.

5. Documentation#

  • CHANGELOG.md entry written in the release PR. Voice: imperative summary + "why" callout for non-obvious changes. Group by kind (### Added / ### Fixed / ### Security / ### Performance / ### Removed).
  • VERSION bumped per SemVer:
    • MAJOR: breaking change to data contracts, public APIs, or operator workflow.
    • MINOR: new feature, additive schema change.
    • PATCH: bug fix, dependency bump, doc tweak.
  • If a new class of bug was learned this release: stable rule + strongest proportional guard added to the owning pack in .claude/rules/ (index) and the canonical gate (constraint/test/reconciliation/E2E/static audit as appropriate).
  • Operator-facing changes reflected in the user guide under docs/user-manual/ (pnpm docs:sync-user-manual regenerates the role pages; screenshots via pnpm docs:manual-shots).
  • Architecture diagrams refreshed if data flow or boundaries shifted.

6. Operability#

  • Worker logs include request/job id, connector type, org id, duration, row counts for any new processor.
  • New jobs classify failures explicitly: permanent (DLQ) vs transient (retry).
  • Rate limits set on every new mutation (REST + tRPC). Defaults in rateLimitOrgMutation are 30/min — bump if a legitimate use needs more, document the reason.
  • Audit log writes for every sensitive mutation (member role, AI config, connector credential, billing, password / 2FA).
  • Backup verified after the migration runs — confirm a restorable snapshot exists post-deploy.
  • Readiness (not only liveness) is green; critical dependency/queue probes, SLOs and alerts are exercised.

7. Security#

  • No secrets in source. security:scan enforces this; spot-check the diff anyway.
  • Webhook routes verify signatures before parsing the body.
  • New public surfaces don't leak credentials or PII. Sign-in / share / embed routes reviewed specifically.
  • RLS policy reviewed for any new table.
  • Magic-link/WebAuthn challenges are atomically consumed if authentication changed; replay/concurrency tests pass.
  • GitHub Actions and images touched by the release are SHA/digest pinned; SBOM, scan, provenance/signature evidence attached for runtime artifacts.
  • Cookies httpOnly + secure in production.

8. Deploy#

Production steps: runbooks/mso-cloud-go-live.md.

  • Pre-deploy: a staging environment runs the new build against a copy of production data. Smoke test the operator-critical journeys (sign-in, org/brand switch, dashboard load, connector setup, upload).
  • Previous-release → head migration passed with lock/statement budgets and documented rollback.
  • During: deploy in a maintenance window or with a feature flag if the change has migration risk.
  • Post-deploy:
    • Worker logs clean of new ERROR-level entries for at least 1 hour.
    • p95 dashboard load times within 20% of baseline.
    • Audit log contains entries for the operations exercised during smoke test.
    • Verify Cube semantic layer reconciliation if metrics changed.

9. Rollback#

  • Documented rollback procedure for this release. If the migration is non-trivially reversible, the rollback procedure includes both the code revert AND the data-fix script.
  • Confirm the previous build is still deployable (image still in the registry, env contract unchanged).

10. Communication#

  • Internal stakeholders notified of:
    • User-visible changes.
    • Operator-only changes that affect runbooks.
    • Any new accepted security risk (linked from docs/SECURITY.md).
  • If the release adds an operator setting or moves one, the change is mentioned in the next dispatched morning briefing.

If a section is "n/a" (e.g. no DB changes this release), write "n/a" alongside the section header in the PR — don't leave the checkboxes blank. The audit trail matters when something later goes wrong.