|
| 1 | +# Plugin Maintenance Playbook |
| 2 | + |
| 3 | +Tracks the ongoing maintenance cadence for all plugins in this repository. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Cadence |
| 8 | + |
| 9 | +| Cycle | Mechanism | Scope | |
| 10 | +|---|---|---| |
| 11 | +| **Weekly** | Dependabot (`.github/dependabot.yml`) | Individual package bumps — Rust, Python, GitHub Actions | |
| 12 | +| **Monthly** | Scheduled workflow (`dep-update-cadence.yaml`) | Full lock file refresh + all-plugin test run + consolidated PR | |
| 13 | +| **On demand** | `workflow_dispatch` on `dep-update-cadence.yaml` | Pre-release or emergency update | |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +## Ownership |
| 18 | + |
| 19 | +| Role | Responsibility | |
| 20 | +|---|---| |
| 21 | +| **Cycle owner** | Runs or monitors the monthly automated PR; reviews and merges or defers | |
| 22 | +| **Backup** | Takes over if cycle owner is unavailable | |
| 23 | +| **Current cycle owner** | @madhu-mohan-jaishankar | |
| 24 | +| **Backup** | @lucarlig | |
| 25 | + |
| 26 | +The cycle owner rotates quarterly. Update this table when ownership changes. |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +## Monthly Cycle — Step-by-Step Checklist |
| 31 | + |
| 32 | +The monthly workflow runs automatically on the 1st of each month and opens a PR. If no lock file changes occurred, no PR is opened — note this in the cycle log below. |
| 33 | + |
| 34 | +### When the PR is opened |
| 35 | + |
| 36 | +1. **Review the lock file diffs** |
| 37 | + - `Cargo.lock` — check for any crate jumping a major version unexpectedly |
| 38 | + - `uv.lock` — check for any package bumping past the constraint bounds in `pyproject.toml` |
| 39 | + - `plugins/rust/python-package/sql_sanitizer/uv.lock` — same check |
| 40 | + |
| 41 | +2. **Verify gateway compatibility constraints are still satisfied** |
| 42 | + - Open `pyproject.toml` → `[tool.uv] constraint-dependencies` |
| 43 | + - Confirm each pinned range (`cpex`, `pydantic`, `maturin`, etc.) still holds after the bump |
| 44 | + |
| 45 | +3. **Check `deny.toml` advisory suppressions** |
| 46 | + - If `cargo deny check advisories` introduced new RUSTSEC advisories in the workflow log, evaluate and either update the suppress list with a justification comment or fix the dependency |
| 47 | + |
| 48 | +4. **Merge or defer** |
| 49 | + - If all checks pass: approve and merge the PR |
| 50 | + - If a dependency needs deferral: close the PR, note the deferred package and reason in the **Compat Table** below, and open a follow-up issue |
| 51 | + |
| 52 | +5. **Record the cycle outcome** in the **Cycle Log** below |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## Pre-Release / Emergency Update |
| 57 | + |
| 58 | +When a release is imminent and a dependency bump is needed: |
| 59 | + |
| 60 | +```bash |
| 61 | +# Trigger manually from the Actions tab → "Monthly Dependency Update" → Run workflow |
| 62 | +# OR run locally: |
| 63 | +cargo update |
| 64 | +uv lock --upgrade |
| 65 | +cd plugins/rust/python-package/sql_sanitizer && uv lock --upgrade && cd - |
| 66 | +cargo deny --all-features check advisories --config deny.toml |
| 67 | +# Run tests for all plugins: |
| 68 | +for plugin in encoded_exfil_detection pii_filter rate_limiter retry_with_backoff secrets_detection sql_sanitizer url_reputation; do |
| 69 | + make plugin-test PLUGIN=$plugin |
| 70 | +done |
| 71 | +``` |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## Gateway Compatibility Table |
| 76 | + |
| 77 | +Records known constraints between plugin dependencies and the gateway (`cpex`/`mcp-context-forge`). Update this when a dependency cannot be bumped due to gateway compatibility. |
| 78 | + |
| 79 | +| Plugin | Constrained dependency | Pinned range | Gateway version | Notes | Last reviewed | |
| 80 | +|---|---|---|---|---|---| |
| 81 | +| all | `cpex` | `>=0.1.0,<0.2` | gateway 0.1.x | ABI boundary — major bump requires gateway coordination | 2026-07 | |
| 82 | +| all | `pydantic` | `>=2.13.4,<3` | gateway 0.1.x | Pydantic v3 not yet validated against gateway models | 2026-07 | |
| 83 | +| all | `maturin` | `>=1.13.3,<2.0` | build toolchain | Major maturin bumps may change wheel ABI tagging | 2026-07 | |
| 84 | +| all | `redis` | `>=7.4.0` | gateway 0.1.x | Lower bound — no upper constraint yet | 2026-07 | |
| 85 | +| `pii_filter` | `pyo3` | `0.29.0` (workspace) | — | ABI3-py311; bump with cross-plugin coordination | 2026-07 | |
| 86 | +| `secrets_detection` | `regex` | `1.12.3` (workspace) | — | No constraint; update freely | 2026-07 | |
| 87 | + |
| 88 | +--- |
| 89 | + |
| 90 | +## Cycle Log |
| 91 | + |
| 92 | +Record each completed cycle here. One row per month. |
| 93 | + |
| 94 | +| Month | PR / Issue | Lock changes? | CVEs found | Deferrals | Merged by | |
| 95 | +|---|---|---|---|---|---| |
| 96 | +| 2026-07 | _first automated cycle pending_ | — | — | — | — | |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +## Dependabot PRs — Triage Guide |
| 101 | + |
| 102 | +Dependabot opens individual PRs weekly for new package releases. Triage criteria: |
| 103 | + |
| 104 | +- **Patch** (`x.y.Z`): merge if CI passes, no gateway constraint hit |
| 105 | +- **Minor** (`x.Y.z`): review changelog; merge if no breaking API changes and CI passes |
| 106 | +- **Major** (`X.y.z`): evaluate manually; update the compat table; coordinate with gateway team if the dep is in `constraint-dependencies` |
| 107 | +- **RUSTSEC advisory**: treat as P1 — either bump the dep or suppress with a justification in `deny.toml` |
0 commit comments