arminc / clair-scanner

Docker containers vulnerability scan
Apache License 2.0
849 stars 153 forks source link

clair is allways showing resut OK #138

Open AllardKrings opened 9 months ago

AllardKrings commented 9 months ago

Hello,

i am strugling now for days with configuring CLAIR. I can call clair from the CLi clairctl and from QUAY when pushing an image. C:LAIR allways rsponds with ok and does not report any vulnerabilities.

It must have something to do with my configuration: I run on a microk8s-cluster on ubutu 22.04 on amd

My config.yaml:

http_listen_addr: :8081 introspection_addr: :8088 log_level: debug indexer: connstring: host=postgres13.postgres.svc.cluster.local port=5432 dbname=clair user> scanlock_retry: 10 layer_scan_concurrency: 5 migrations: true matcher: indexer_addr: :8081 connstring: host=postgres13.postgres.svc.cluster.local port=5432 dbname=clair user> max_conn_pool: 100 migrations: true updaters: sets:

This is my yaml:

apiVersion: apps/v1 kind: Deployment metadata: name: clair namespace: quay spec: replicas: 1 selector: matchLabels: app: clair template: metadata: labels: app: clair spec: containers:

Anybody any sugfgestions?

nfb commented 9 months ago

This project doesn't have compatibility with clair 4 and will throw errors when pointed at clair 4.7.2 as you have done in your deployment. It sounds like you're having issues with clairctl which is maintained in https://github.com/quay/clair