Skip to content

Add ingress-nginx security backport skill 🤖🤖🤖 - #6573

Open
shay-berman wants to merge 1 commit into
github:mainfrom
shay-berman:codex/ingress-nginx-security-backport
Open

shay-berman wants to merge 1 commit into
github:mainfrom
shay-berman:codex/ingress-nginx-security-backport

Conversation

@shay-berman

@shay-berman shay-berman commented Nov 22, 2026 •

Copy link
Copy Markdown

Description

Adds ingress-nginx-security-backport, a defensive Agent Skill for maintaining an explicitly selected older Kubernetes ingress-nginx controller release when a public CVE fix must be backported.

The skill guides Copilot through the complete evidence chain:

  • ask for and link the exact controller release and CVE/advisory before modifying anything;
  • create or reuse a maintained fork and release-specific maintenance branch;
  • distinguish controller/Go, NGINX core/module, and OS-package fixes;
  • record upstream provenance, prerequisite commits, adaptations, checksums, build inputs, and target platforms;
  • rebuild the exact affected component and final controller image;
  • add safe GitHub Actions validation with pristine-source controls, focused regressions, final-image identity checks, TLS/HTTP2 smoke coverage, and a disposable kind Ingress fixture;
  • retain the tested artifact and report PASS / FAIL / NOT RUN / NOT APPLICABLE evidence per CVE without overstating confidence.

The detailed integration-test recipe is bundled at references/integration-tests.md. The generated skills catalog is updated by the repository build.

This is defensive maintenance guidance. It does not include exploit payloads, publish an image, merge a fix, or change a live cluster without separate user authorization.

Example use case: NGINX2Root

An operator maintaining an archived ingress-nginx controller release can use this skill to prepare and validate a backport for the November 2026 NGINX vulnerability group commonly called NGINX2Root (the scenario sometimes described conversationally as "nginx2shell"). The operator supplies the exact ingress-nginx controller release and the applicable entries from the official NGINX security advisories, for example CVE-2026-123007, CVE-2026-123633, CVE-2026-123634, CVE-2026-121810, CVE-2026-118899, and CVE-2026-113425.

The skill then checks each CVE against the NGINX version, compiled modules, and enabled protocols in that controller release; prepares a maintained fork and backport PR for only the applicable fixes; rebuilds the controller image; runs the source, build, binary-identity, protocol, and kind integration checks; and produces a per-CVE PASS / FAIL / NOT RUN / NOT APPLICABLE evidence table. For example, an HTTP/3 or mail-module CVE must be reported as NOT APPLICABLE when that module is absent, rather than being claimed as fixed. The result is a reviewable candidate image and confidence summary—not a claim that an archived release is upstream-supported or that untested exploit paths are proven safe.

Validation

  • bash .github/scripts/maintenance/fix-line-endings.sh
  • npm run skill:validate — passed for all 465 skills
  • npm run plugin:validate — passed for all 115 plugins and the external catalog; existing non-SPDX warnings remain unchanged
  • npm start / npm run build — passed and generated the expected docs/README.skills.md entry
  • git diff --check — passed
  • GitHub Copilot CLI 1.0.114 discovered the exact folder as an enabled project skill
  • Sensitive-pattern and URL review found no company-specific names, private endpoints, credentials, internal tickets, or private repository links in the contributed files

The workflow design was exercised against two distinct older controller lines:

  • controller v1.11.4 / NGINX 1.25.5 / Kubernetes 1.30.8 / linux-amd64
  • controller v1.8.4 / NGINX 1.21.6 / Kubernetes 1.27.16 / linux-amd64, including release-specific patch adaptations and source/checksum derivation

For both cases, CI passed ordered pristine-source patch controls, native image builds, builder-to-final-image binary identity, packaged HTTP/2 over TLS, real kind Ingress routing, evidence generation, and artifact retention. The validation did not claim full exploit-path reproduction, registry publication, other architectures, or live deployment; the skill explicitly reports those gaps.

The current contributor account's Copilot organization policy permits CLI discovery but denies model execution, so the PR template's Copilot behavior-test checkbox is intentionally left unchecked rather than overstated.

Differentiation

No existing skill in this repository covers ingress-nginx CVE backports. The non-obvious uplift is the release-specific provenance and native-build process, applicability analysis, artifact-identity proof, safe CI fixture, and evidence-limited confidence model—not generic vulnerability-remediation advice.

Acknowledgements

Many thanks to @reouvensmadja, who helped establish the reusable backport workflow, and @vitebski, who helped establish its build-verification and integration-test evidence model.

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • This submission does not involve a paid service.
  • My contribution adds a new skill in the correct directory.
  • The folder and files follow the required naming conventions.
  • The content is clearly structured and follows the Agent Skills specification.
  • I have tested the skill's behavior with GitHub Copilot. CLI discovery passed, but model execution is blocked by the current account's organization policy as documented above.
  • I have run npm start and verified that docs/README.skills.md is up to date.
  • I am targeting the main branch.

Type of Contribution

  • New skill file.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

@shay-berman
shay-berman requested review from a team as code owners November 22, 2026 22:05
Copilot AI adaptive review requested due to automatic review settings November 22, 2026 22:05
@github-actions github-actions Bot added new-submission PR adds at least one new contribution skills PR touches skills awaiting-automation merge-risk:medium labels Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:medium — New or substantially changed resource without privileged execution
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.

Why this tier
  • Adds 2 file(s), e.g. skills/ingress-nginx-security-backport/SKILL.md
  • Changes 357 lines (low-risk limit is 40)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s)
  • No staffed reviewer pool owns these files yet; any reviewer with write access counts as the domain reviewer.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for fb4ce75 · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 2 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

✅ All checks passed

Scope Checked
Skills 1
Agents 0
Total 1
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ ✅ ingress-nginx-security-backport (2/2 checks passed)
ℹ️ ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️ ✓ spec-compliance: All spec checks passed.
ℹ️ ✓ [valid-refs] All file references across 1 skill(s) are valid.
ℹ️ ✓ valid-refs: All file references resolve to existing files within the skill directory.
ℹ️ 1 skill(s) linted, 1 passed
Full linter output
### Linting skills/ingress-nginx-security-backport
✅ ingress-nginx-security-backport (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 22, 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.

🟡 Changes recommended

The guidance omits a remediation path for source-built native libraries and relies on partial image comparisons that can miss lost OS-package fixes.

2 open issues
What changed in this PR

Adds a defensive Agent Skill to Awesome GitHub Copilot for backporting public CVE fixes to an explicitly selected older ingress-nginx controller release. It emphasizes release-specific provenance, reproducible builds, and confidence limited to verified evidence.

Changes:

  • Defines the maintenance workflow, from release and advisory selection through backporting, artifact retention, and reporting.
  • Bundles a CI test recipe covering patch controls, regressions, final-image identity, TLS/HTTP2, and disposable Kubernetes Ingress tests.
  • Adds the skill to the generated discovery and installation catalog.
File Description
skills/​ingress-nginx-security-backport/​SKILL.md Defines the backport workflow, authorization boundaries, and evidence reporting.
skills/​ingress-nginx-security-backport/​references/​integration-tests.md Documents CI validation, Kubernetes fixtures, and artifact verification.
docs/​README.skills.md Adds the skill’s catalog entry, installation command, and reference link.

Review effort: Max (adaptive)

Comment on lines +99 to +100
- **OS package or library:** select a fixed package revision/base digest and
verify the installed version and the library actually loaded by the process.
Comment on lines +183 to +185
When publication is in scope, publish the same retained image, resolve its index
and platform manifest digests, independently pull it by digest, and verify its
executables/modules against CI. Attach provenance linking the digest to source,

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk:medium new-submission PR adds at least one new contribution ready-for-review Submission passed intake validation and is ready for maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants