Skip to content

API Reference parrot_tools.cloudsploit.ecr_collector

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.cloudsploit.ecr_collector

View source

ECR image-scan collector for CloudSploit toolkit (FEAT-165).

Implements multi-repo / tag-priority aggregation against ECR Basic Scanning, with bounded concurrency via asyncio.Semaphore.

Alias ECRToolkit

Re-exported from parrot_tools.aws.ecr.ECRToolkit.

Alias EcrCollectionPlan

Re-exported from parrot_tools.cloudsploit.models.EcrCollectionPlan.

Alias EcrCollectionResult

Re-exported from parrot_tools.cloudsploit.models.EcrCollectionResult.

Alias EcrRepoFindings

Re-exported from parrot_tools.cloudsploit.models.EcrRepoFindings.

Alias EcrRepoPlan

Re-exported from parrot_tools.cloudsploit.models.EcrRepoPlan.

Class EcrScanCollector

Aggregate ECR vulnerability scan findings across many repos.

Orchestrates the multi-repo / tag-priority loop that was previously implemented in the JS script collect_ecr_findings.js. For each repo in the plan it tries the specified tags in priority order, stopping at the first tag whose image has scan findings (first-match-wins). Concurrency across repos is bounded by asyncio.Semaphore.

Parameter Type Default Description
aws AWSInterface Pre-configured AWSInterface instance. All ECR API calls will use the credentials and region from this instance.

Attributes:

Attribute Type Description
aws The AWSInterface instance used for all ECR API calls.
logger Standard Python logger named after this class.

Method EcrScanCollector.collect

Run the collection plan with bounded concurrency.

For each repo in plan.repos, tries its tags in priority order (first-match-wins). At most plan.concurrency ECR API calls are in flight at any time.

The plan's region and aws_id are honoured: when they differ from the collector's current AWSInterface, a fresh region-scoped interface is built for the call so probes hit the intended region and account. Otherwise self.aws is reused.

collect(plan: EcrCollectionPlan) -> EcrCollectionResult

Parameter Type Default Description
plan EcrCollectionPlan Validated EcrCollectionPlan loaded from YAML.

Returns: EcrCollectionResult — EcrCollectionResult with per-repo findings and a skipped list for repos where every tag returned no results.

Alias EcrScanFinding

Re-exported from parrot_tools.cloudsploit.models.EcrScanFinding.

Alias EcrSeverity

Re-exported from parrot_tools.cloudsploit.models.EcrSeverity.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally