Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@
"authentication": "ON_USE"
},
"category": "Developer Tools"
},
{
"name": "devsecops",
"source": {
"source": "local",
"path": "./plugins/devsecops"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_USE"
},
"category": "Developer Tools"
}
]
}
79 changes: 79 additions & 0 deletions .github/workflows/devsecops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: DevSecOps

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: devsecops-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
devsecops:
name: DevSecOps master suite
runs-on: ubuntu-latest
timeout-minutes: 120
env:
PYTHONDONTWRITEBYTECODE: '1'
UV_PYTHON_DOWNLOADS: never
GRYPE_DB_AUTO_UPDATE: 'false'
GRYPE_CHECK_FOR_APP_UPDATE: 'false'
SYFT_CHECK_FOR_APP_UPDATE: 'false'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '22.19.0'
package-manager-cache: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: '3.14'
- name: Install pinned dependency manager
run: python -m pip install --disable-pip-version-check uv==0.13.7
- name: Complete master including all packaged Python cases, real tools and reproducible package
run: npm run test:devsecops
- name: Audit locked runtime dependencies
run: |
uv export --project plugins/devsecops --frozen --no-dev --no-emit-project --format requirements.txt --output-file "$RUNNER_TEMP/devsecops-runtime-requirements.txt"
uvx --from pip-audit==2.10.1 pip-audit --strict --no-deps --disable-pip --requirement "$RUNNER_TEMP/devsecops-runtime-requirements.txt" --format json --output "$RUNNER_TEMP/devsecops-dependency-audit.json"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
package-manager-cache: false
- name: Package, integration and privacy contracts on Node 24
run: DEVSECOPS_TEST_CONTEXT="$HOME/.cache/devsecops/community-tests/latest-context.json" npm run test:devsecops:contracts
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '26'
package-manager-cache: false
- name: Package, integration and privacy contracts on Node 26
run: DEVSECOPS_TEST_CONTEXT="$HOME/.cache/devsecops/community-tests/latest-context.json" npm run test:devsecops:contracts
- name: Verify checkout unchanged
run: git diff --exit-code -- plugins/devsecops
- name: Retain test receipts and explicit coverage gaps
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: devsecops-automated-evidence
path: |
~/.cache/devsecops/community-tests/results/**/master.json
~/.cache/devsecops/community-tests/results/**/python-suite.json
~/.cache/devsecops/community-tests/results/**/junit.xml
~/.cache/devsecops/community-tests/results/**/collection.json
~/.cache/devsecops/community-tests/results/**/outcomes.jsonl
~/.cache/devsecops/community-tests/results/**/package-check-*.json
${{ runner.temp }}/devsecops-dependency-audit.json
if-no-files-found: warn
retention-days: 14

# One sequential job. The Python suite is independent of Node and runs once;
# the Node entrypoint/package contracts run on 22.19, 24 and 26. Native Codex,
# macOS sandbox, genuine retained CVE data and live platform/video acceptance
# remain explicit separate coverage gaps, never inferred from this job.
14 changes: 13 additions & 1 deletion .github/workflows/marketplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
plugin-suites:
name: Marketplace plugin suites
runs-on: macos-latest
timeout-minutes: 30
# The DevSecOps master retains its full 75-minute Python phase. Allow cold
# setup and the existing catalog suites without selecting fewer tests.
timeout-minutes: 150
env:
FUSION_TEST_PYTHON: python
PYTHONDONTWRITEBYTECODE: "1"
Expand Down Expand Up @@ -79,6 +81,16 @@ jobs:
printf 'FUSION_TEST_PYTHON=%s\n' '${{ steps.fusion-python.outputs.python-path }}' >> "$GITHUB_ENV"
- name: Validate catalog before selecting package directories
run: npm run validate:marketplace
- name: Select real OpenSSL for mandatory DevSecOps strict TLS tests
shell: bash
run: |
openssl_prefix="$(brew --prefix openssl@3)"
if [ ! -x "$openssl_prefix/bin/openssl" ]; then
brew install openssl@3
openssl_prefix="$(brew --prefix openssl@3)"
fi
"$openssl_prefix/bin/openssl" version
printf 'DEVSECOPS_TEST_OPENSSL=%s\n' "$openssl_prefix/bin/openssl" >> "$GITHUB_ENV"
- name: Install catalog packages' locked development dependencies without lifecycle scripts
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ are picked up.
| [Autodesk Fusion](plugins/autodesk-fusion/README.md) | Connect typed CAD/CAM operations, scoped Autodesk data, reviewed cloud recipes and engineering evidence; live qualification required. | [Guide](plugins/autodesk-fusion/README.md) |
| [Physical Engineering](plugins/physical-engineering/README.md) | Build mechanical CAD from a brief, measure exports, preserve revisions and deliver a repeatable handoff. Custom parts plus a drone assembly example. Preview. | [Guide](plugins/physical-engineering/README.md) · [Two-minute demo](docs/media/physical-engineering/README.md) · [Session runbook](docs/physical-engineering-demo-runbook.md) |
| [PCBA Engineering](plugins/pcba-engineering/README.md) | Reconcile assembly data, apply bounded revisions, and independently verify an offline PCBA handoff. | [Guide](plugins/pcba-engineering/README.md) · [2:27 demo](docs/media/pcba-engineering/README.md) |
| [DevSecOps](plugins/devsecops/README.md) | Review Kubernetes/Helm changes, collect GitOps evidence and validate scoped corrections. Software Factory preview. | [Guide](plugins/devsecops/README.md) · [Code-to-cloud demo flow](docs/devsecops-demo.md) |

Grafana Observability requires Codex and Node.js 22.19 or newer. Its manifest
declares both `Read` and `Write`. `Write` is limited to
Expand Down
28 changes: 28 additions & 0 deletions docs/devsecops-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Follow a Helm change from GitLab to Kubernetes

GitLab builds the service and publishes an image by digest. A deployment commit selects that digest. Argo CD reconciles the commit into Kubernetes, and Prometheus reports whether it can still scrape the service. The demo follows those identifiers across the tools so a viewer can check what actually reached the cluster.

[Watch the narrated metrics-port repair](media/devsecops/devsecops-metrics-fix.mp4) · [English captions](media/devsecops/devsecops-metrics-fix.en.vtt)

The video opens on the patch from `$prepare-gitops-correction`. It changes `metricsPort` from `9091` to `9090` in `values/component.yaml`. Helm rendered six resources before and after the patch. All six passed Kubeconform on both sides, and only the metrics NetworkPolicy’s ingress port changed.

| Handoff | What to look for |
| --- | --- |
| Source → GitLab CI | Open the pipeline at the source commit. Follow the build, SBOM and vulnerability scan, then the registry publication job. Read the scan decision alongside the finding count. |
| Registry → deployment Git | Match the published image digest to the digest in the Helm values commit. |
| Deployment Git → Argo CD | Match the deployment commit to the Application revision. Open the resource tree to see the workload and its NetworkPolicy. |
| Argo CD → Prometheus | Change the permitted metrics port from 9090 to 9091. Compare application health on 8080 with the Prometheus target and the connectivity probe. The two observations answer different questions. |
| Runtime evidence → Codex | Give the installed skill the fault revision and observations. Inspect the proposed values diff and the rendered NetworkPolicy change. |
| Validated patch → recovery | Deliver the accepted values, match the new Git revision in Argo CD, then compare fresh scrape and progress samples. Check that the denied source still cannot connect. |

## Reproduce the flow

Start with the [plugin quickstart](../plugins/devsecops/README.md) for a local Kubernetes or Helm review. For the private Linux demo, follow the [portable GitOps runbook](../plugins/devsecops/demo/portable-gitops/README.md). It covers service setup, the trusted disposable runner, build and scan inputs, Git delivery, observation, and cleanup. An exception for High findings requires approval for the specific findings and image. Critical or unexpected findings block publication.

The pipeline publishes an immutable image. The fault and correction change policy through Git and reuse that image. The [Iron Bank and Big Bang runbook](../plugins/devsecops/docs/demo/ironbank-e2e.md) describes the additional image trust and platform checks for that profile.

## Recorded milestones

The GitLab pipeline and initial Argo CD deployment were recorded in a private Azure lab. The pipeline built, scanned and published the image. The scan retained 28 High findings under a time-limited lab exception. Azure confirmed deletion of the resource group after the run.

The repair was recorded in a separate local k3s cluster running the mission-status application. Argo CD synced deployment commit `97ed569` with the wrong port, then commit `09eeec8` with the corrected policy. Prometheus recorded four failed scrapes followed by four successful scrapes. The event counter rose from 429 to 435 over the four successful samples. The same pod answered its health check with HTTP 200 throughout, and the unauthorized probe remained blocked.
70 changes: 70 additions & 0 deletions docs/media/devsecops/devsecops-metrics-fix.en.vtt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
WEBVTT

00:00:00.080 --> 00:00:02.161
The fix is one line.

00:00:02.161 --> 00:00:06.324
Codex changes the allowed metrics port from
9091 to 9090,

00:00:06.324 --> 00:00:08.405
where the service actually listens.

00:00:08.680 --> 00:00:12.445
GitLab built, scanned, and published the
service image.

00:00:12.747 --> 00:00:15.137
Argo CD synced the deployment in Azure.

00:00:15.137 --> 00:00:19.234
We replay the policy change on local
Kubernetes to test the repair.

00:00:19.513 --> 00:00:22.649
With the wrong port, Prometheus marks the
target down.

00:00:22.649 --> 00:00:25.437
The same pod still answers its health check.

00:00:25.713 --> 00:00:29.370
The plugin renders the chart before and after
the edit.

00:00:29.370 --> 00:00:31.563
All six resources pass schema validation.

00:00:31.847 --> 00:00:33.213
Compare the policies.

00:00:33.213 --> 00:00:35.491
Only the ingress port changed.

00:00:35.533 --> 00:00:39.543
The namespace and pod selectors still restrict
access to Prometheus.

00:00:39.713 --> 00:00:42.772
The deployment branch now points to the
corrected policy.

00:00:42.772 --> 00:00:46.851
Argo CD syncs that commit and applies the new
port in Kubernetes.

00:00:47.147 --> 00:00:48.596
The scrape is back.

00:00:48.596 --> 00:00:50.769
Prometheus goes from 0 to 1,

00:00:50.769 --> 00:00:53.667
and fresh samples show the event counter
increasing.

00:00:53.947 --> 00:00:55.500
The pod kept serving.

00:00:55.500 --> 00:00:57.830
The unauthorized probe is still blocked.
Binary file added docs/media/devsecops/devsecops-metrics-fix.mp4
Binary file not shown.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Public Codex plugins and their reproducible validation suites.",
"type": "module",
"scripts": {
"validate": "npm run validate:marketplace && node scripts/validate-grafana.mjs && npm run validate:reviewops-auditor-benchmark && npm run validate:react-native-to-swiftui && npm run validate:autodesk-fusion && npm run validate:pcba-engineering",
"validate": "npm run validate:marketplace && node scripts/validate-grafana.mjs && npm run validate:reviewops-auditor-benchmark && npm run validate:react-native-to-swiftui && npm run validate:autodesk-fusion && npm run validate:pcba-engineering && npm run validate:devsecops",
"validate:marketplace": "node scripts/validate-marketplace.mjs",
"validate:grafana": "node scripts/validate-grafana.mjs",
"validate:reviewops-auditor-benchmark": "node scripts/validate-reviewops-auditor-benchmark.mjs",
Expand Down Expand Up @@ -36,7 +36,10 @@
"build:autodesk-fusion": "npm --prefix plugins/autodesk-fusion run build",
"test:physical-engineering": "node tests/physical-engineering/run.mjs",
"test:pcba-engineering": "npm run validate:pcba-engineering && node --test --test-concurrency=1 tests/pcba-engineering/unit/*.test.mjs tests/pcba-engineering/integration/*.test.mjs tests/pcba-engineering/security/*.test.mjs && python3 tests/pcba-engineering/support/dataset-verify.py",
"validate:pcba-engineering": "node scripts/validate-pcba-engineering.mjs"
"validate:pcba-engineering": "node scripts/validate-pcba-engineering.mjs",
"validate:devsecops": "node tests/devsecops/contracts.mjs --static",
"test:devsecops": "node tests/devsecops/run.mjs",
"test:devsecops:contracts": "node tests/devsecops/contracts.mjs"
},
"engines": {
"node": ">=22.19.0"
Expand Down
39 changes: 39 additions & 0 deletions plugins/devsecops/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "devsecops",
"version": "0.2.0-alpha.14",
"description": "Review Kubernetes changes, diagnose GitOps evidence, and validate corrections with explicit proof and coverage.",
"author": {
"name": "DevSecOps contributors"
},
"keywords": [
"kubernetes",
"helm",
"kustomize",
"devsecops",
"gitops",
"gitlab"
],
"skills": "./skills/",
"interface": {
"displayName": "DevSecOps",
"shortDescription": "Kubernetes + GitOps reviews",
"longDescription": "Development preview. Review Kubernetes, Helm and Kustomize changes; diagnose scoped GitOps evidence; validate proposed corrections; and compare recovery observations. Reviews use read-only integrations. Separate operator commands support explicitly configured lab builds and registry staging. Reports distinguish measured results from missing evidence. The Software Factory demo is still under implementation and qualification. Customer profiles are configurable; this plugin does not certify compliance.",
"developerName": "DevSecOps contributors",
"category": "Developer Tools",
"capabilities": [
"Read",
"Write"
],
"brandColor": "#164E63",
"logo": "./assets/icon.svg",
"composerIcon": "./assets/icon.svg",
"defaultPrompt": [
"Use $review-kubernetes-change to review this Kubernetes, Helm or Kustomize change against a selected profile.",
"Use $diagnose-gitops-deployment to compare baseline and fault evidence and explain the likely cause and remaining gaps.",
"Use $verify-gitops-recovery to check whether the evidence proves functional recovery after this correction."
]
},
"license": "Apache-2.0",
"repository": "https://github.com/tonyloehr/community-plugins",
"homepage": "https://github.com/tonyloehr/community-plugins"
}
62 changes: 62 additions & 0 deletions plugins/devsecops/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Only the release inputs and qualification tests enter the build context.
**
!.dockerignore
!pyproject.toml
!uv.lock
!toolchain.lock.json
!kustomize.lock.json
!cosign.lock.json
!supplychain.lock.json
!LICENSE
!NOTICE
!README.md
!plugin.json
!src/
!src/**
!tests/
!tests/**
!scripts/
!scripts/**
!profiles/
!profiles/**/
!profiles/*.example.json
!profiles/**/*.example.json
!schemas/
!schemas/**
!skills/
!skills/**
!.codex-plugin/
!.codex-plugin/**
!assets/
!assets/**
!docs/
!docs/**
!demo/
!demo/software-factory/
!demo/software-factory/apps/
!demo/software-factory/apps/**
!demo/software-factory/charts/
!demo/software-factory/charts/**
!demo/software-factory/scenarios/
!demo/software-factory/scenarios/**
!demo/software-factory/ci/
!demo/software-factory/ci/**
!demo/software-factory/provision/
!demo/software-factory/provision/**
!demo/software-factory/locks/
!demo/software-factory/locks/**
!demo/software-factory/config/
!demo/software-factory/config/demo-config.example.json
!demo/software-factory/config/registry1-blob-download-policy.example.json
!demo/portable-gitops/
!demo/portable-gitops/README.md
!demo/portable-gitops/versions.json
!demo/portable-gitops/acquire.sh
!demo/portable-gitops/bundle_inputs.py
!demo/portable-gitops/pipeline.py
!demo/portable-gitops/scan_policy.py
!demo/portable-gitops/stack.py
**/.env*
**/__pycache__
**/*.pyc
**/.DS_Store
Loading
Loading