Skip to content

#1052 Implement platform-wide circuit breaker for system outages #579

Description

@vic-Gray

Area: backend · Effort: M

What: Add a platform-level circuit breaker that an admin can trigger to halt all deposits and withdrawals across all vaults simultaneously during a critical incident.

Why: When a security incident or smart contract exploit is detected, the operator needs to stop all financial activity instantly across the entire platform, not vault by vault.

Acceptance Criteria:

  • POST /admin/platform/circuit-breaker/open halts all deposits and withdrawals globally
  • All affected endpoints return a 503 with a message explaining the maintenance window
  • POST /admin/platform/circuit-breaker/close restores normal operation
  • Circuit breaker state changes are logged in the audit trail with the actor's identity

Hints:

  • Store circuit breaker state in Redis for instant cross-instance propagation
  • Add a guard that checks the circuit breaker state on every deposit/withdrawal endpoint
  • Implement the circuit breaker as a platform feature flag

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions