Skip to content

fix(ci): accept krb5 KDC findings in the pinned postgres image - #421

Merged
samuelmbabhazi merged 1 commit into
mainfrom
fix/trivy-krb5-postgres
Nov 23, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
fix/trivy-krb5-postgres

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

The scan of the pinned postgres:17 image now fails on 14 new HIGH findings in MIT krb5:

  • they are in libgssapi-krb5-2, libk5crypto3, libkrb5-3 and libkrb5support0, at 1.21.3-5+deb13u1;
  • Debian fixed them in deb13u2;
  • the newest official image (postgres:17@sha256:223efeb…, read today) still ships deb13u1, so bumping the digest does not help.

This adds them to .trivyignore.yaml, one by one, until 2026-12-18. That follows the file's own policy, as for the zlib entry.

Why they are accepted

  • Every finding is in the KDC or in kadmind, the Kerberos servers. Neither runs in the image, which only carries the client libraries.
  • Shipkeep authenticates to PostgreSQL with a password (SCRAM, the image's default), on the private Compose network. GSSAPI is never used.
  • They are listed one by one, so a new krb5 finding still fails the scan.

It blocks every pull request today (seen on #420), and main from its next run.

How it was tested

Security considerations

The entries expire on 2026-12-18. The scan then fails again, and the entries get reviewed, never extended without a reason. The digest should be bumped as soon as the official image carries deb13u2.

Fourteen new HIGH findings in MIT krb5 fail the scan of the pinned postgres:17 image. Debian fixed them (1.21.3-5+deb13u2), but the newest official image still ships deb13u1. All are in the KDC or kadmind, which do not run in the image, and Shipkeep authenticates to PostgreSQL with SCRAM on the private Compose network. Accepted one by one until 2026-12-18, as the policy of .trivyignore.yaml says.

Signed-off-by: samuel mbabhazi <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7fea6b9 and 5f83d6e.

Files selected for processing: 1

  • .trivyignore.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@samuelmbabhazi
samuelmbabhazi merged commit 8dbb4b1 into main Nov 23, 2026
24 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/trivy-krb5-postgres branch November 23, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant