API must use a circuit breaker pattern to handle failures and timeouts.

STIG ID: SRG-APP-000945-API-001635  |  SRG: SRG-APP-000945 |  Severity: medium |  CCI: CCI-004992 |  Vulnerability Id: V-274835

Vulnerability Discussion

A circuit breaker pattern is essential in APIs to prevent cascading failures and improve system resilience. It monitors API calls and temporarily blocks requests when failures reach a threshold, allowing the system to recover before retrying.

Check

Verify the API uses a circuit breaker pattern to handle failures and timeouts.

Review the API documentation or the system's architecture documentation. The pattern might be explicitly mentioned as part of the API's design to handle failures and timeouts.

If a circuit breaker pattern is not being used, this a finding.

Fix

Configure the API to use a circuit breaker pattern to handle failures and timeouts.