DocsSecurity & ComplianceContainer Images

Container Images

How AsPeekIt tells your own container images from third-party upstream images, how a manager overrides the classification, how the actionable filter hides the noise of base images from the findings queue, and how to use the Container Images page.


Classification Rule

Every container image is classified by repository: the image name without tag and digest (registry.acme.it/team/api:1.2 and registry.acme.it/team/api@sha256:… are the same repository registry.acme.it/team/api). A repository is internal when it starts with one of the SECURITY_INTERNAL_REGISTRIES prefixes, third-party otherwise.

  • SECURITY_INTERNAL_REGISTRIES: comma-separated prefixes of your registries, compared with a plain "starts with" (e.g. registry.acme.it/ or ghcr.io/acme/). Include the trailing slash to avoid matching registry.acme.it.evil.com
  • Empty by default: then every image is third-party until a manager marks it internal
  • The classification is never stored on components or findings: it is computed in every query, so a change of the setting or of an override applies at once to the queue, Components, the compliance report and the images page, without any backfill
  • An image reference belongs to a repository R when it is R, or starts with R: (tag) or R@ (digest): an override of acme/app never applies to acme/app-worker
SECURITY_INTERNAL_REGISTRIES=registry.acme.it/,ghcr.io/acme/

Manual Override

A manager or admin can override the classification of a repository with the Third-party switch of the Container Images page, or with the API. The override wins over the prefix rule and records who set it and when (classified_by, classified_at). Tags and digests cannot be overridden on their own: the unit is always the repository.

  • POST /api/v1/software/images/classification/ with {"repository": "nginx", "classification": "internal" | "third_party"}: creates or updates the override and returns the updated image row (or only the classification when the image is not in the inventory)
  • Viewers get 403; an unknown classification, an empty repository or one longer than 512 characters returns 400
  • Every change is recorded in the platform audit log as image_classification.changed, with the repository and the classification before (e.g. third_party (rule)) and after (see Audit Logging, /docs/security/audit-logging), and written to the backend log
  • An override cannot be reset to "automatic" yet: set the value the rule would give instead

Actionable Filter

A finding or a component is on an image when its details carry an image_ref (docker_image and trivy components and the findings they produce, including Trivy findings on hosts and Kubernetes nodes) or when it is on a container asset with an image. With actionable=true the ones on a third-party image are hidden; everything else is never excluded.

  • Findings queue of the Security overview (/dashboard/security and GET /api/v1/security/findings/, its export and the bulk actions by filter): actionable is on by default. The "Actionable: yes (exclude third-party)" checkbox is ticked; untick it to add actionable=false to the URL and see the third-party findings too. Any value other than true or false returns 400
  • Server Security counts use the same default, so they always match the queue they open
  • Components (/dashboard/components and GET /api/v1/software/components/, summary and export): actionable is an option of the Images select, off by default; selecting "Actionable: yes (exclude third-party)" sends actionable=true
  • Compliance report: the Images option "Actionable: yes (exclude third-party)" (image_scope=actionable) applies the same classification, overrides included, and also excludes the Trivy findings and components of third-party images on hosts and nodes
  • image=<repository> filters the queue and Components on one image: on the queue it matches details.image_ref or the image of the container asset

Container Images Page

The Container Images page (/dashboard/security/images, "Container Images" in the sidebar) lists one row per repository found in the inventory: docker_image components of containers and pods, and trivy components of scanned images.

  • Cards: total images, third-party, internal and images with alerts; clicking a card filters the table
  • Table: image, tags and digests, state (running when on a running container or scanned by Trivy, stopped otherwise), servers, Trivy components, CVEs and the Third-party switch (active for managers and admins, a badge for viewers)
  • The CVE count opens the queue filtered by image with actionable=false, the components count opens Components filtered by image
  • Filters (search on the repository, classification, state, with alerts only) live in the URL, so Back and Forward restore them; the search applies on Enter or after a short pause
  • Images are ordered by open findings (descending), then by repository
Container images: own and upstream images with their findings

API

Read endpoints for every authenticated user.

  • GET /api/v1/software/images/: paginated rows with repository, classification, classification_source (rule or manual), classified_by, classified_at, tags (at most 20), digests (at most 20), state, servers (at most 10, with server_count), components, alerts (open active findings) and cves (distinct CVEs). Filters: search, classification, state, alerts=true
  • GET /api/v1/software/images/summary/: {"total", "internal", "third_party", "with_alerts"} with the search and state filters (classification and alerts are ignored, like the cards)