mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-17 00:20:51 +00:00
chore(docker): official awscli, slimmer git, scan release images with VEX (#12110)
* chore(docker): official awscli, no git recommends, scan release images by digest with VEX - Replace Debian's awscli (2.23.6) with the official v2.39.1 bundle, sha256-pinned per arch; drops the python3-* libraries it pulled in (python3 itself stays, nodejs needs it). - Install git without recommends, keeping openssh-client explicitly for SSH git remotes and the SSH executor. - Replace verify_ee_image_vulnerabilities with scan_release_images: CE, EE and both slim images scanned by the digest this run built, a cosign-attested OpenVEX marking linux-libc-dev (kernel headers) CVEs not_affected, Trivy results + VEX attached to the release, per-image Scout SARIF, and a gate failing on fixable critical CVEs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: attest VEX per digest, upload scan results before attesting, cache trivy, keep less Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: gate releases on the VEX-filtered Trivy report Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a2b3e981c8
commit
04b544d57f
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
# Writes an OpenVEX document marking every linux-libc-dev CVE found in the given Trivy JSON
|
||||
# reports as not_affected. linux-libc-dev holds only the kernel's userspace API headers, which
|
||||
# build-essential needs to compile C; a container runs on its host's kernel, so a kernel CVE
|
||||
# reported against this package never applies to the image. The product carries no version or
|
||||
# qualifiers so one statement covers every architecture and package version.
|
||||
#
|
||||
# usage: kernel-headers-vex.sh <document id> <trivy.json>... > vex.openvex.json
|
||||
set -euo pipefail
|
||||
|
||||
id="$1"
|
||||
shift
|
||||
|
||||
jq -s --arg id "$id" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" '
|
||||
[.[].Results[]? | (.Vulnerabilities // [])[] | select(.PkgName == "linux-libc-dev") | .VulnerabilityID]
|
||||
| unique
|
||||
| {
|
||||
"@context": "https://openvex.dev/ns/v0.2.0",
|
||||
"@id": $id,
|
||||
author: "Windmill Labs",
|
||||
timestamp: $ts,
|
||||
version: 1,
|
||||
statements: map({
|
||||
vulnerability: { name: . },
|
||||
products: [{ "@id": "pkg:deb/debian/linux-libc-dev" }],
|
||||
status: "not_affected",
|
||||
justification: "vulnerable_code_not_present",
|
||||
impact_statement: "linux-libc-dev contains only the Linux userspace API headers used to compile C code. The image ships no kernel: containers run on the host kernel, which this package does not affect."
|
||||
})
|
||||
}
|
||||
' "$@"
|
||||
Reference in New Issue
Block a user