Skip to content

Add DevSecOps plugin for Kubernetes change review and GitOps recovery - #55

Open
tonyloehr wants to merge 3 commits into
mainfrom
codex/devsecops-community-demo
Open

tonyloehr wants to merge 3 commits into
mainfrom
codex/devsecops-community-demo

Conversation

@tonyloehr

@tonyloehr tonyloehr commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A Helm change can leave pods healthy while cutting Prometheus off from their metrics. This plugin lets a reviewer follow the change from its rendered NetworkPolicy through GitLab CI, Argo CD, and fresh runtime observations. Five native Codex skills cover change review, diagnosis, correction validation, recovery verification, and operation of a disposable demo.

Plugin impact

Local review reads a Git diff, renders Helm or Kustomize, validates Kubernetes schemas, and writes HTML, Markdown, JSON, and a run manifest. Configured GitLab, Kubernetes, Argo CD, and Prometheus integrations read scoped evidence over HTTPS. An explicit operator workflow can create a private lab project, build and scan an image, publish it by digest, deliver a change through Git, and remove owned resources. It uses a trusted disposable runner with host Docker access. Credentials and lab state stay outside the installable package.

The 59-second narrated demo opens on the actual Codex patch (metricsPort: 9091 → 9090). The GitLab pipeline and initial Argo CD deployment come from the private Azure run. In a separate local Kubernetes replay, Argo CD synced the corrected Git revision 09eeec8. Prometheus went from four failed scrapes to four successful ones and the event counter advanced from 429 to 435. The same pod served throughout and the unauthorized probe remained blocked. Demo guide and English captions.

Verification

  • npm run validate:marketplace and repository npm run validate
  • Reproducible package, eight companion contracts, and real Helm/Kubeconform pass, fail, and incomplete-evidence cases
  • Installed preview exercised in a native Codex session with a verified skill file read
  • Complete hosted Linux regression: all 6,498 unique cases collected, 6,478 passed and 20 explicitly skipped; zero failures or deselection, no missing required-tool coverage or unclassified gaps. The skips cover macOS network denial (7), case-insensitive filesystems (7), retained builder archives (4), installed native CLI preflight (1), and retained official scanner data (1). These remain coverage gaps.
  • Complete macOS qualification. The local run stopped when its volume ran out of space, retaining 2,929 passes and 23 failures. All 23 failures passed in a fresh macOS replay after storage recovery; that replay does not replace a complete run.
  • Hosted dependency review passed after upgrading the test-only pytest pin to 9.0.3. All 6,498 cases collect and 62 focused Helm/review checks passed locally with that pin.
  • Hosted DevSecOps master suite passed on 5e999c5d992375d346dddc52d71347a9fc47070d in 43m51s. Node 22.19/24/26 contracts produced the same reproducible package; the checkout stayed unchanged. The locked runtime dependency audit reported no vulnerabilities in all seven dependencies.
  • Remaining required checks. Both shared Marketplace attempts hit the existing Physical Engineering suite’s 20-minute aggregate subprocess deadline during its delivery/reproduction test, before reaching DevSecOps. The dedicated Physical Engineering workflow passed the same 100-test Python suite under all three Node versions on the same commit. The shared integration timeout remains unresolved; no unrelated plugin source, test selection, or deadline was changed.
  • Cold-start instructions, licenses and dependency notices reviewed
  • Package excludes credentials, private lab state, personal paths and recordings

Reviewer notes

Run npm run test:devsecops from the repository root. The marketplace dispatcher and the plugin workflow use the same command. The dedicated workflow runs its supported Node versions sequentially. Host and enterprise qualification are documented in the support matrix.

Maintainer merge requirements

  • Applicable CLA verified by the repository check
  • CDE code owner approved the latest changes
  • Required test and security checks pass for the changes being merged
  • Execution, file access, off-machine data flows, dependencies and secrets reviewed

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