Skip to content

fix(security): patch perl and nss OS-package CVEs in ingestion Docker images - #30454

Merged
chirag-madlani merged 2 commits into
mainfrom
fix/ingestion_vulnerabilities
Jul 24, 2026
Merged

chirag-madlani merged 2 commits into
mainfrom
fix/ingestion_vulnerabilities

Conversation

@harshsoni2024

@harshsoni2024 harshsoni2024 commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Fix:

  • Extends the existing apt-get --only-upgrade security-hardening line in the ingestion Docker images to pull Debian bookworm-security fixes for the perl stack and libnss3. These packages arrive as essential/transitive dependencies of the Debian base (perl-base is essential in every Debian image; libnss3 is pulled transitively via postgresql/openssh/git/JRE) and cannot simply be removed.

Follows the pattern already established in #30024: --only-upgrade is a no-op until Debian publishes the fixed package, then it is picked up automatically on the next image build — no forced version pin, no build breakage.

Vulnerabilities fixed

CVE Package
CVE-2026-57433 perl
CVE-2026-12087 perl
CVE-2026-13221 perl
CVE-2026-16389 nss (libnss3)

Changes

Added perl perl-base perl-modules-5.36 libperl5.36 libnss3 to the --only-upgrade list (and updated the tracking comment) in:

  • ingestion/operators/docker/Dockerfile — operator runtime image
  • ingestion/Dockerfile — Airflow ingestion image
  • ingestion/Dockerfile.ci — CI build image

Testing

Rebuild the ingestion images and re-scan — the perl/nss findings clear once the patched Debian packages are available in the bookworm-security pocket, which the --only-upgrade line pulls automatically at build time.


🤖 Generated with Claude Code

Greptile Summary

Extends security-hardening upgrades across three ingestion images.

  • Adds Perl stack and libnss3 packages to the existing apt-get --only-upgrade commands.
  • Updates package-tracking comments for the newly covered CVEs.

Confidence Score: 5/5

The PR appears safe to merge with no new blocking failures eligible for this follow-up review.

No blocking failure remains beyond the issue already communicated by the previous inline thread.

Important Files Changed

Filename Overview
ingestion/Dockerfile Adds Perl and NSS packages to the Airflow ingestion image’s security-upgrade list.
ingestion/Dockerfile.ci Mirrors the Perl and NSS package upgrades in the ingestion CI image.
ingestion/operators/docker/Dockerfile Adds the same security upgrades to the operator runtime image.

Reviews (3): Last reviewed commit: "Merge branch 'main' into fix/ingestion_v..." | Re-trigger Greptile

@harshsoni2024
harshsoni2024 requested a review from a team as a code owner July 24, 2026 09:41
Copilot AI review requested due to automatic review settings July 24, 2026 09:41
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Jul 24, 2026
@harshsoni2024 harshsoni2024 added the skip-pr-checks Bypass PR metadata validation check label Jul 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the ingestion-related Debian-based Docker images to proactively pull bookworm-security fixes for the Perl stack and libnss3 by extending the existing apt-get --only-upgrade hardening step, helping clear newly reported OS-package CVEs without pinning versions.

Changes:

  • Add perl/perl-base/perl-modules-5.36/libperl5.36 and libnss3 to the existing apt-get --only-upgrade package lists.
  • Update the in-file tracking comment to include perl* and libnss3 alongside wget.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
ingestion/operators/docker/Dockerfile Extends the security-only upgrade list to include Perl stack packages and libnss3 in the operator runtime image.
ingestion/Dockerfile Extends the security-only upgrade list to include Perl stack packages and libnss3 in the Airflow ingestion image.
ingestion/Dockerfile.ci Extends the security-only upgrade list to include Perl stack packages and libnss3 in the CI build image.

Comment thread ingestion/operators/docker/Dockerfile Resolved
@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit dc7bd27f48d8704a349eb82a32823789a694073e in Playwright run 30083505267, attempt 4.

✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Pipeline and setup failures (8)

  • Seeded fixture preparation finished with status failure.
  • The Playwright shard matrix was unexpectedly skipped.
  • Shard chromium-01 did not upload a usable Playwright results artifact.
  • Shard ingestion-01 did not upload a usable Playwright results artifact.
  • Shard ingestion-02 did not upload a usable Playwright results artifact.
  • Shard chromium-01 did not upload its execution status.
  • Shard ingestion-01 did not upload its execution status.
  • Shard ingestion-02 did not upload its execution status.

Performance

⚪ Performance metrics unavailable; see the CI and reporting failures above.

Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
⛔ Shard chromium-01 — — — — — —
⛔ Shard ingestion-01 — — — — — —
⛔ Shard ingestion-02 — — — — — —

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@harshsoni2024
harshsoni2024 enabled auto-merge (squash) July 24, 2026 10:24
@chirag-madlani
chirag-madlani disabled auto-merge July 24, 2026 11:37
Copilot AI review requested due to automatic review settings July 24, 2026 11:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@harshsoni2024
harshsoni2024 marked this pull request as draft July 24, 2026 11:43
@harshsoni2024
harshsoni2024 marked this pull request as ready for review July 24, 2026 11:43
@chirag-madlani
chirag-madlani merged commit 4ef5dde into main Jul 24, 2026
111 of 139 checks passed
@chirag-madlani
chirag-madlani deleted the fix/ingestion_vulnerabilities branch July 24, 2026 11:48
harshsoni2024 added a commit that referenced this pull request Jul 24, 2026
@gitar-bot

gitar-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Extends the apt-get --only-upgrade security-hardening line across ingestion Docker images to pull Debian bookworm-security patches for perl and libnss3. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

chirag-madlani added a commit that referenced this pull request Jul 24, 2026
#30468)

* fix(playwright): green playwright-summary when gate skips the pipeline

Regression from #30453: pull_request_target on a same-repo PR (or
pull_request on a fork) correctly gates every upstream job to `skipped`,
but the playwright-summary job then runs the render step
unconditionally. render_playwright_summary.cjs counts each skipped
upstream as a "CI/reporting failure" and calls core.setFailed(). The
required playwright-summary check goes red on the redundant event's
run, blocking merges.

Seen on https://github.com/open-metadata/OpenMetadata/actions/runs/30090391086/job/89472165978
(PR #30454, a same-repo PR): pull_request_target's playwright-summary
failed with "0 Playwright test failure(s); 9 CI/reporting failure(s)"
even though the sibling pull_request run passed the real pipeline.

Fix:
  - Add `gate` to playwright-summary's needs list so it can read
    needs.gate.outputs.should_run.
  - Gate the render step on `should_run == 'true'` so it doesn't fire
    when gate said skip.
  - Add a "Report gate-skipped run as green" step that runs the OTHER
    way (`should_run != 'true'`) and just echoes success. This keeps
    the job's conclusion at "success" so branch protection sees a
    green playwright-summary check regardless of which event fired.

Behaviour matrix after this fix:

  Event                                        gate  render  job
  ────────────────────────────────────────────  ────  ──────  ───
  merge_group / workflow_dispatch / schedule   true  run     real result
  same-repo PR + pull_request                  true  run     real result
  same-repo PR + pull_request_target           false skipped ✅ green
  fork PR + pull_request_target + label        true  run     real result
  fork PR + pull_request_target no label       false skipped ✅ green
  fork PR + pull_request                       false skipped ✅ green
  any draft PR                                 false skipped ✅ green

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

* address greptile P1: fail if gate itself did not decide

@greptile-apps flagged that the previous "should_run != 'true'" condition
treated an unset gate output the same as an explicit skip decision. If
gate itself failed (crash, cancellation, infra error), should_run would
be null, my green-report step would still fire, and the required
playwright-summary check would report success — silently hiding the
gate failure.

Two fixes:
  1. Add a "Guard against missing gate decision" step at the top of the
     job that fails loudly when `needs.gate.result != 'success'`.
  2. Change the green-report condition from `should_run != 'true'` to
     the exact `should_run == 'false'` so an unset value never falls
     through as a synthetic green.

Behaviour matrix after this fix:

  gate.result   should_run   guard   green-report   render     job
  ────────────  ───────────  ─────   ────────────   ──────     ───
  success       'true'       skip    skip           run        real
  success       'false'      skip    ✅ green       skip       ✅
  success       (unset)      ❌ fail skip           skip       ❌ (invalid — shouldn't happen)
  failure       any          ❌ fail skip           skip       ❌ (visible)
  cancelled     any          ❌ fail skip           skip       ❌ (visible)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

harshsoni2024 added a commit that referenced this pull request Jul 28, 2026
harshsoni2024 added a commit that referenced this pull request Jul 28, 2026

This branch had an error being deployed

1 failed deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants