Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,79 @@ jobs:
with:
sarif_file: ${{ steps.grype-sarif.outputs.sarif }}
category: grype

trivy-image:
name: Trivy Container Image Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: "21"

- name: Build ice image
run: docker build -t altinity/ice:scan -f ice/Dockerfile .

- name: Build ice-rest-catalog image
run: docker build -t altinity/ice-rest-catalog:scan -f ice-rest-catalog/Dockerfile .

- name: Scan ice image (table)
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
image-ref: altinity/ice:scan
scanners: vuln
severity: CRITICAL,HIGH
exit-code: "1"
format: table
trivy-config: trivy.yaml

- name: Scan ice image (SARIF)
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
if: always()
with:
image-ref: altinity/ice:scan
scanners: vuln
severity: CRITICAL,HIGH
exit-code: "0"
format: sarif
output: trivy-ice-image.sarif
trivy-config: trivy.yaml

- name: Scan ice-rest-catalog image (table)
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
image-ref: altinity/ice-rest-catalog:scan
scanners: vuln
severity: CRITICAL,HIGH
exit-code: "1"
format: table
trivy-config: trivy.yaml

- name: Scan ice-rest-catalog image (SARIF)
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
if: always()
with:
image-ref: altinity/ice-rest-catalog:scan
scanners: vuln
severity: CRITICAL,HIGH
exit-code: "0"
format: sarif
output: trivy-rest-catalog-image.sarif
trivy-config: trivy.yaml

- name: Upload ice image SARIF
uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
if: always()
with:
sarif_file: trivy-ice-image.sarif
category: trivy-ice-image

- name: Upload ice-rest-catalog image SARIF
uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
if: always()
with:
sarif_file: trivy-rest-catalog-image.sarif
category: trivy-rest-catalog-image
39 changes: 39 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maven dependency false positive
# guava is resolved to 33.7.2-jre via dependencyManagement in pom.xml.
# Trivy's static pom parser sees 33.5.0-jre from iceberg-bundled-guava's
# transitive dependency, but Maven overrides it.
CVE-2026-102554

# distroless base image (gcr.io/distroless/java21-debian12)
# These are unpatched in Debian 12 bookworm. The latest distroless image
# ships the same vulnerable versions. Nothing to fix on our side; suppress
# until Debian releases patches and distroless rebuilds.

# libbrotli1 - Out-of-Bounds Write (fix available but not yet in distroless)
CVE-2026-111497

# libexpat1
CVE-2024-28757
CVE-2025-59375
CVE-2026-113351
CVE-2026-115506
CVE-2026-117610
CVE-2026-118370
CVE-2026-25210
CVE-2026-45186
CVE-2026-66046
CVE-2026-76957
CVE-2026-77214
CVE-2026-93990

# liblcms2-2
CVE-2026-41254

# libuuid1 (util-linux) - all status: affected, no fix
CVE-2026-53613
CVE-2026-53615
CVE-2026-78410

# zlib1g - will_not_fix / affected
CVE-2023-45853
CVE-2026-85091
5 changes: 3 additions & 2 deletions ice-rest-catalog/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ EXPOSE 5001

ENV ICE_REST_CATALOG_CONFIG=/etc/ice/ice-rest-catalog.yaml

# using java -jar instead of executing jar directly as there is not shell in non-"debug" version of distroless
ENTRYPOINT ["java", "-jar", "/usr/local/bin/ice-rest-catalog"]
# Mitigate Java4Shell (CVE in HotSpot x86-64 AVX-512 Base64 intrinsic).
# Do NOT use -XX:UseAVX=2 here — it is x86-only and breaks arm64.
ENTRYPOINT ["java", "-XX:-UseBASE64Intrinsics", "-jar", "/usr/local/bin/ice-rest-catalog"]
4 changes: 2 additions & 2 deletions ice-rest-catalog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.5.0-jre</version>
<version>33.7.2-jre</version>
<exclusions>
<exclusion>
<groupId>org.checkerframework</groupId>
Expand Down Expand Up @@ -651,7 +651,7 @@
<artifactId>really-executable-jar-maven-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<flags>-XX:MaxRAMPercentage=75.0</flags>
<flags>-XX:MaxRAMPercentage=75.0 -XX:-UseBASE64Intrinsics</flags>
<inputFile>target/ice-rest-catalog-${project.version}-shaded.jar</inputFile>
<programFile>ice-rest-catalog-jar</programFile>
</configuration>
Expand Down
Loading
Loading