Skip to content

TD3: Circuit breaker Maps unbounded + test-only exports #151

@nikolanovoselec

Description

@nikolanovoselec

Per-container circuit breaker Maps have no maximum size cap. resetContainerBreakers and CONTAINER_BREAKER_TTL_MS are exported solely for test isolation, widening the public API surface.

Impact: Memory exhaustion under adversarial session ID stream.

Remediation:

  • Add max-size guard in getOrCreateBreaker()
  • Remove export from test-only symbols; use vi.resetModules() instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    technical-debtKnown technical debt deferred for future remediation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions