-
Notifications
You must be signed in to change notification settings - Fork 91
Support wolfi / chainguard detection #923
Copy link
Copy link
Open
Labels
triagedThe maintainers have seen this issueThe maintainers have seen this issue
Description
Wolfi is an operating system tailored for containers. Clair currently doesn't recognize it so I thought it'd make sense to track support.
$ ./clair-scanner --ip 192.168.1.15 -c http://127.0.0.1:6060 cgr.dev/chainguard/node:20
2023/05/01 20:06:58 [INFO] ▶ Start clair-scanner
2023/05/01 20:07:00 [INFO] ▶ Server listening on port 9279
2023/05/01 20:07:00 [INFO] ▶ Analyzing c2b0d3cadf5af59393ce726798e315e7f56dc8c6d1e3ec55ce46cb6aab03c61a
2023/05/01 20:07:00 [CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 422 with message {"Error":{"Message":"worker: OS and/or package manager are not supported"}}Relevant info
The following examples are from the generated container cgr.dev/chainguard/node:20 which is part of their automated builds.
OS detection
$ cat /etc/os-release
ID=wolfi
NAME="Wolfi"
PRETTY_NAME="Wolfi"
VERSION_ID="20230201"
HOME_URL="https://wolfi.dev"Wolfi mentions using apk as a package manager. Here's an example of the installed list:
$ head -n 20 /lib/apk/db/installed
P:glibc-locale-posix
V:2.37-r6
A:x86_64
L:GPL-3.0-or-later
T:POSIX locale data for glibc
o:glibc
m:
U:
D:
p:
c:be767d33fb37b5dc6c42961efe0472f888976899
i:[]
t:-62135596800
S:73758
I:416967
k:0
C:Q1ODlpjBNlf5+8UVI1uHjwELzSof8=
F:usr
F:usr/lib
F:usr/lib/locale..which also seems to follow the apk package format.
Should a PR abstract alpine into apk and support both OS'es but with different identifiers? Put differently: I'm new to modifying clair and its ecosystem. How should I proceed with a PR to see it merged?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triagedThe maintainers have seen this issueThe maintainers have seen this issue