Repository navigation
fix(security): patch perl and nss OS-package CVEs in ingestion Docker images - #30454
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
There was a problem hiding this comment.
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.36andlibnss3to the existingapt-get --only-upgradepackage lists. - Update the in-file tracking comment to include
perl*andlibnss3alongsidewget.
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. |
🔴 Playwright Results — workflow failedValidated commit ✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky Pipeline and setup failures (8)
Performance⚪ Performance metrics unavailable; see the CI and reporting failures above.
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Co-authored-by: Chirag Madlani <[email protected]>
Code Review ✅ ApprovedExtends the OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
#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]>
|
Co-authored-by: Chirag Madlani <[email protected]>
Co-authored-by: Chirag Madlani <[email protected]>



Fix:
apt-get --only-upgradesecurity-hardening line in the ingestion Docker images to pull Debian bookworm-security fixes for theperlstack andlibnss3. These packages arrive as essential/transitive dependencies of the Debian base (perl-baseis essential in every Debian image;libnss3is pulled transitively via postgresql/openssh/git/JRE) and cannot simply be removed.Follows the pattern already established in #30024:
--only-upgradeis 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
Changes
Added
perl perl-base perl-modules-5.36 libperl5.36 libnss3to the--only-upgradelist (and updated the tracking comment) in:ingestion/operators/docker/Dockerfile— operator runtime imageingestion/Dockerfile— Airflow ingestion imageingestion/Dockerfile.ci— CI build imageTesting
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-upgradeline pulls automatically at build time.🤖 Generated with Claude Code
Greptile Summary
Extends security-hardening upgrades across three ingestion images.
libnss3packages to the existingapt-get --only-upgradecommands.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
Reviews (3): Last reviewed commit: "Merge branch 'main' into fix/ingestion_v..." | Re-trigger Greptile