Giter Club home page Giter Club logo

pluggable-scanner-spec's People

Contributors

chlins avatar danielpacak avatar heww avatar prahaladdarkin avatar steven-zou avatar wy65701436 avatar zyyw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pluggable-scanner-spec's Issues

Add more attributes to vulnerabilities

Current only package is defined as the attribute to vulnerability items,
As scanner users, they'd like to know which binary and which layer are impacted by the vulnerability.
Suggest to add two optional attribute to vulnerability item in the spec

     "binary": "/harbor/harbor_jobservice",
      "layer": {
        "digest": "sha256:1cfaf5c6f756207bc4607d40ddd440bd2bfa7ab455b2c3015ccf56d85cd1377b",
        "diff_id": "sha256:c2ddc1bc2645ab5d982c60434d8bbc6aecee1bd4e8eee0df7fd08c96df2d58bb"
      },

Needed to use artifact media type as consumes_mime_types of capabilities

We are working on the OCI support in Harbor 2.0 and we will improve the user experience of artifact scanning in this release.

In Harbor 2.0, the vulnerabilities info of the artifact will display in the portal only when the artifact can be scanned by the scanner, and only scannable artifact can click the Scan button in the portal.

Harbor will use the consumes_mime_types of capabilities from scanner metadata to decide whether the artifact supported by the scanner.

Currently, the consumes_mime_types returns by the scanner always be application/vnd.oci.image.manifest.v1+json and application/vnd.docker.distribution.manifest.v2+json. These mime tyeps are the manifest media type of the artifact, and they mean that the scanner support docker image and oci image.

According to the OCI spec the manifest media type of the artifact always application/vnd.oci.image.manifest.v1+json and application/vnd.oci.image.index.v1+json. application/vnd.docker.distribution.manifest.v2+json and application/vnd.docker.distribution.manifest.list.v2+json are also supported for the backwards and forwards compatible.

The result is that the scanner supports to scan all OCI artifacts includes helm chart, regular file and others. This is not true for the scanner. Now in Harbor 2.0 we use a black list to deal this problem, when the type of the artifact in the list, we assert that the artifact is not scannable. It works but what can we do when the scanner support to scan helm chart?

In Harbor 2.0 the manifest media type for helm charts, docker image are application/vnd.oci.image.manifest.v1+json and application/vnd.docker.distribution.manifest.v2+json, but their media type are different. The media type of the helm chart is application/vnd.cncf.helm.config.v1+json and the media type of the docker image is application/vnd.docker.container.image.v1+json. So I suggest to use the artifact media type as consumes_mime_types of capabilities for the scanner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.