Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Allow image layer cache (fanal.db) to be stored in Redis #405

@twhiteman

Description

@twhiteman

The trivy adapter instance will cache image layer metadata (OS, packages, libraries, etc...) by the image layer id, storing that data in the fanal.db on the local filesystem.

I'd like to store that image layer cache in Redis, so that this information can be shared between all trivy adapter instances.

The reasoning is that for scaling of the trivy adapter, it is counter-productive to have each trivy instance perform it's own caching of image layers (as this image layer scan can be both CPU and network intensive - as it has to download the image layer, uncompress and process the files in the image layer). Once an image layer is scanned, that image layer scan should not need to occur again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions