Skip to content

feat(security): distributed threat intelligence valkey l2 cache and radar batching #122

Closed

Description

@dan-petty

Problem Statement

OpenTelemetry traces revealed threat_intel.lookup.cloudflare called 211 times sequentially, taking 21.48s aggregate latency because CloudflareRadarClient in devops_cli.security.vulnerability_lookup only uses an ephemeral in-memory dictionary cache on the instance.

Proposed Changes

  • Integrate Valkey L2 caching with configurable TTL (valkey:threat_intel:domain:<target>).
  • Implement batch lookup support for threat intelligence domains.
  • Add graceful offline fallback when Valkey is unavailable.

Acceptance Criteria

  • 95%+ cache hit rate on repeated security reviews.
  • Sub-millisecond lookup latency from Valkey cache (<1ms).
  • 100% test coverage in tests/test_security_threat_intel.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/securitytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions