4.4 KiB
Deployment and rollback runbook
Do not deploy this historical main snapshot over production. The live panel has newer integrations and a different permission model absent here. Reconcile/cherry-pick the additive changes into the authoritative deployed source with website and Minecraft maintainers first. The API is not deployed by this work.
Preparation
- Owner confirms maintenance contact, affected maintainers, deployment source/revision and isolated staging. Record current website/control-panel releases, process names, reverse-proxy configuration and rollback targets privately. Do not copy environment secrets into the repository or tickets.
- Review the small code delta: one new module and a panel import/mount, documentation and tests. It needs no DDL, role grants, native balance writes, game binary changes or new ports. Reconcile import paths and the central resolver against the deployed version. Keep native transaction/delivery handlers unchanged.
- Install the existing locked dependencies in a new immutable release directory. Use the host's supported Node version and run the documented tests plus deployed-source regressions. Preserve the existing website build/release process; this API mounts only on the control panel, not on the public Node website host.
- Stage with
API_V1_ENABLEDabsent/false, then explicitly true. Reuse the server-ownedEXCHANGE_LISTINGS_URLand separateEXCHANGE_READ_TOKENonly if the maintainer verifies the exact existing bridge contract. ConfigureWORLD_STATUS_URLusing the existing monitor. Missing sources intentionally fail closed/unknown. Never expose private environment values in browser configuration or logs. - Verify restricted durable collection/retention of structured request events, limiter sizing and multi-process edge controls. The included limiter is single-process and resets on restart; a production shared limiter is an operator dependency for scaled rollout.
Staging acceptance
Verify default disabled 404, unauthenticated 401, central ordinary test-account login, own verified link (or unlinked), own effective nodes, unknown vs fresh status, real isolated catalogue, pagination, exact decimals and sanitized outages. Confirm no cross-origin CORS or ownership overrides. Confirm old login, account, inventory, quests, kits, banks, orders/redemption and service bridges continue unchanged using fixtures for writes. Test support/appeals separation against the actual deployed resolver. Do not grant apidev staff, link another player's UUID, spend production funds or create production rewards.
Record versions and evidence for both service ends. Local tests and HTTP 200 alone do not establish native integration completion. The old community reward GET can issue codes: avoid it in production smoke tests.
Owner-coordinated release
Use the existing release-directory and atomic current-link procedure after owner/maintainer agreement. First deploy with v1 disabled and verify legacy health/sign-in. Enable v1 for the agreed canary using the host's environment/restart procedure. Smoke-test only ordinary account/status reads in production; verify catalogue against staging/native read evidence. Watch latency, error rates, 429s and audit collection. Record the deployed commit and exact prior release. No old routes are retired in this increment.
Rollback
- Disable
API_V1_ENABLEDand restart/reload the existing control-panel process through its established procedure. Verify/api/v1/menow returns 404 while legacy session and health routes still work. - If the panel is unhealthy, atomically restore the recorded previous control-panel release/current-link and its previous environment, then restart that process. Restore proxy changes only if any were separately introduced during approved rollout; this patch requires none.
- Verify central login, existing inventory/status and native service health. Avoid reward/code issuance or financial smoke tests. Check audit/monitoring for recovery.
- No data rollback, balance rewrite, receipt deletion, schema downgrade or reward reversal is needed or permitted for this read increment. Preserve native pending acknowledgements and delivery queues during any future mutation rollback. Do not delete accounts, links or immutable references.
If the additive source has not been deployed, rollback simply means leave the toggle disabled. The fork and local changes do not affect production services.

Staff