+
Skip to content

Less expensive deriveID for file source #3948

Open
@adammcclenaghan

Description

@adammcclenaghan

What would you like to be added:
A less expensive deriveID function for file source

Why is this needed:
We discussed on the OSS community meeting on 22nd May that the file source deriveID function is a little peculiar in that it tries to SHA256 hash the entire contents of the file being scanned.

This gets expensive for users doing many file source scans.

We discussed on the call whether hashing the file contents is necessary, or whether we could avoid hashing file contents and just always hash the file (this is in fact the fallback if attempting to open the file errors). In addition there were discussions around using a more lightweight hash function to improve performance.

The Anchore team asked that I raise an issue here so that it could be discussed further.

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载