Code Monkey home page Code Monkey logo

Comments (4)

misberner avatar misberner commented on June 27, 2024

Hey @yuanlinios , it depends on what endpoint you have configured your Clair instance to listen on.

I don't have first-hand experience running Clair (v4, I assume?), but from https://access.redhat.com/documentation/en-us/red_hat_quay/3.3/html/manage_red_hat_quay/clair-v4 I deduce that 8080 seems to be a common port for the HTTP API. So, depending on whether or not Clair is configured for TLS, the correct value here would be https://hostname:8080 or http://hostname:8080.

from stackrox.

yuanlinios avatar yuanlinios commented on June 27, 2024

Hello, thanks for the reply. I deployed clair in the same openshift cluster, and also exposed it as a https edge route.

clairctl works OK in my environment

export CLAIR_HOST=https://clairv4-quay-enterprise.apps.<mydomain>
clairctl report -host $CLAIR_HOST container-registry.oracle.com/os/oraclelinux:8.3

oraclelinux:8.3 found sqlite-libs 3.26.0-11.el8
ELSA-2021-1581:  sqlite security update (MODERATE)
                (fixed: 0:3.26.0-13.el8)
oraclelinux:8.3 found sqlite-libs 3.26.0-11.el8
ELSA-2021-4396:  sqlite security update (MODERATE)
                (fixed: 0:3.26.0-15.el8)
oraclelinux:8.3 found json-c 0.13.1-0.2.el8
ELSA-2021-4382:  json-c security and bug fix update (MODERATE)
                (fixed: 0:0.13.1-2.el8)
...

The problem is clair expects request for specific api endpoints, but returns 404 for anything else. So I want to know how the integration between stackrox and clair can be done properly

from stackrox.

RTann avatar RTann commented on June 27, 2024

Our Clair integration was originally built with Clairv2, and I do not believe it supports Clairv4 (unless the endpoint is the same). From the looks of it, we use the GET /layers/<layerName> endpoint from Clairv2, which, I believe, assumes Clairv2 already completed the scan separately. We simply just retrieve the results.

from stackrox.

yuanlinios avatar yuanlinios commented on June 27, 2024

Thank you for the information

from stackrox.

Related Issues (20)

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.