Skip to content

feat(inspect): parallel discovery and configurable timeouts #107

@CodeMonkeyCybersecurity

Description

Context

`DiscoverDocker()` runs 5 discovery phases sequentially (containers, images, networks, volumes, compose files). Each has a hardcoded 30s timeout per command.

Problem

Proposal

  1. Run independent discovery phases in parallel using `errgroup`
  2. Add configurable timeout via `InspectorConfig` struct
  3. Batch network inspect (same pattern as container batching in fix(inspect): harden Docker discovery with batched inspect, fix find, add tests #103)
  4. Batch volume inspect

Expected Impact

  • 3-5x faster Docker discovery on hosts with many resources
  • Configurable timeouts for CI vs interactive use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions