Repository navigation
docs(ops): RCA + alert-anchored ledger for Dependabot alert #31 (pyo3 Low → PR #226) - #269
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
… Low → PR #226) Slack-triggered SRE pass anchored on Dependabot alert #31 (Low) for 'pyo3 PyString::from_object' UB on non-str inputs (RUSTSEC, fixed in pyo3 0.24.1). Open PR #226 already bumps Cargo.toml + Cargo.lock and all CI is green (Test 3.12, 3.13, Lint, Bandit, Dependency audit, Semgrep, CodeQL, SonarQube, Analyze). This commit ships the LMDE-style alert-number-anchored RCA companion under docs/ops/sre_audits/ so the alert-number trail survives even if Dependabot force-pushes or closes #226 before merge (precedent: GHSA-5239 / Dependabot #21 on commit cabf990). Audit-and-block respected: no commit pushed to the Dependabot branch. Local validation reproduced the bump on this branch (cargo update -p pyo3 --precise 0.24.1 + cargo check passed in 7.42s) then reverted the manifests so the working tree carries only the audit ledger. Verdict: MERGE PR #226 as-is. Vulnerable API PyString::from_object is not referenced at workspace HEAD (rg --type rust -> 0 matches), so the fix is defense-in-depth for this repo. Zero blast radius on the DB connector contract from DEFENSIVE_SCANNING_MANIFESTO.md \xc2\xa73 (cargo path; cannot influence WITH (NOLOCK), sampling, isolation, or DDL). Validation: - cargo check on pyo3 0.24.1 -> Finished dev profile (7.42s). - ./scripts/check-all.sh --skip-pre-commit -> 949 passed, 5 skipped. 35 failures are pre-existing pwsh parse-only environmental failures (no pwsh in this Linux container) and unrelated to this change. - Targeted guards: tests/test_markdown_lint.py + tests/test_docs_pt_br_locale.py + tests/test_docs_external_no_plan_links.py + tests/test_confidential_commercial_guard.py + tests/test_pii_guard.py + tests/test_dependency_artifacts_sync.py -> 147 passed. Doctrine: DEFENSIVE_SCANNING_MANIFESTO.md (NASA SEL / Cloudflare / Gibson - guest in customer DB, no surprise side effects); THE_ART_OF_THE_FALLBACK.md (diagnostic-on-fall - we publish what we tried even when the result is no change to commit); SUPPLY_CHAIN_AND_TRUST_SIGNALS.md (fail-open framing for stale Low alerts); ADR 0005 (audit-and-block CI posture). Co-authored-by: Fabio Tavares Leitão <[email protected]>
This was referenced Apr 27, 2026
FabioLeitao
force-pushed
the
main
branch
2 times, most recently
from
May 3, 2026 17:52
ae0da8d to
b5c995c
Compare
FabioLeitao
force-pushed
the
cursor/sre-agent-protocol-cc4f
branch
from
May 3, 2026 17:52
fd5156e to
472b120
Compare
FabioLeitao
added a commit
that referenced
this pull request
May 3, 2026
Consolidates the 11 draft audit / refusal PRs opened today around a single Dependabot signal (pyo3 0.23.5 -> 0.24.1) into one blameless RCA. Doc-only; zero blast radius on connectors / sampling / locks. - New: docs/ops/sre_audits/AUDIT_PR_SWARM_POSTMORTEM_2026-04-27.md - Index: docs/ops/sre_audits/README.md (adds 3 missing rows incl. this file) Respects ADR 0018 / 0019 (PII guards verified green on this branch), DEFENSIVE_SCANNING_MANIFESTO §1.3 (no surprise side effects), and THE_ART_OF_THE_FALLBACK §3 (diagnostic-on-fall, not silent re-derivation). GTD: merge PR #226 (Dependabot, all 9 checks green); close #266 / #267 / #268 / #269 as superseded once #226 lands. Co-authored-by: Fabio Tavares Leitão <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slack-triggered SRE pass anchored on Dependabot alert #31 (Low) —
pyo3 PyString::from_objectUB on non-strinputs (RUSTSEC; fixed inpyo3 0.24.1). The remediation already exists as PR #226 (pyo3 0.23.5 → 0.24.1inrust/boar_fast_filter/), CI is all green, and the verdict ledger from PR #239 (DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md§1.1) already classified it as the only Dependabot PR clearing the V3 HIGH-confidence bar today.This PR ships the LMDE-style alert-number-anchored RCA companion under
docs/ops/sre_audits/so the alert-number trail survives even if Dependabot force-pushes or closes #226 before merge — same precedent asGHSA-5239 / Dependabot #21on commit3aa75f5. Audit-and-block respected: no commit pushed to the Dependabot branch.Why a separate ledger and not a comment on #226?
If
#226is force-pushed or closed by Dependabot before merge (a known, common Dependabot behavior on a stale base), the alert-number ↔ remediation trail is lost frommain. The new ledger keeps alert #31 grep-able in themainhistory.Verdict
MERGE PR #226 as-is. Vulnerable API
PyString::from_objectis not referenced at workspace HEAD (rg --type rust → 0matches), so the fix is defense-in-depth for this repo. Zero blast radius on the DB connector contract fromDEFENSIVE_SCANNING_MANIFESTO.md§3 (cargo path; cannot influenceWITH (NOLOCK), sampling, isolation, or DDL). GitHub will auto-resolve alert #31 once #226 lands.Local validation (audit-and-block, then revert)
The 986-test gate (per the Slack mission statement):
The 35 failures are all
tests/test_scripts.py::test_*_ps1_syntaxand trip because the SRE-agent Linux container does not shippwsh. They pre-exist this branch and are environmental, not regressions. All product gates pass, including:tests/test_dependency_artifacts_sync.py— pyproject ↔ uv.lock ↔ requirements.txt SoT guard.tests/test_pii_guard.py— public-tree PII baseline.tests/test_markdown_lint.py + test_docs_pt_br_locale.py + test_docs_external_no_plan_links.py + test_confidential_commercial_guard.py + test_pii_guard.py + test_dependency_artifacts_sync.py→ 147 passed.pre-commit(Ruff, plans-stats, plans-hub, markdown lint, pt-BR locale, commercial guard, external plan links, dependency-artifacts sync, PII, PII history) — all Passed at commit time.Files
docs/ops/sre_audits/DEPENDABOT_ALERT_31_PYO3_RCA_2026-04-27.md— alert-anchored RCA, Julia-Evans-style explanation, verdict, doctrine refs, provenance.docs/ops/sre_audits/README.md— index row for the new ledger.Doctrine
docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md— §1 (guest in customer DB, no surprise side effects), §3 (DB-driver blast radius gate). Confirmed zero for this bump.docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md— applied to the audit itself: local-validation-then-revert is a diagnostic-on-fall (we publish what we tried, even when the result is no change to commit).docs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md— fail-open framing for stale Low alerts.docs/ops/sre_audits/DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md§1.1 — prior verdict on chore(deps): bump pyo3 from 0.23.5 to 0.24.1 in /rust/boar_fast_filter in the cargo group across 1 directory #226.Operational constraint
Audit-and-block respected. No commit pushed to
dependabot/cargo/rust/boar_fast_filter/cargo-f9635f71e3(#226). The maintainer keeps full control of when to merge #226 to close alert #31.Provenance
gh api .../dependabot/alerts/31returned 403 Resource not accessible by integration for thecursor[bot]token (alerts are read-restricted to human-mode tokens). Mapping alert Plans done 64903 #31 == chore(deps): bump pyo3 from 0.23.5 to 0.24.1 in /rust/boar_fast_filter in the cargo group across 1 directory #226 == pyo3 0.24.1 RUSTSEC inferred at HIGH confidence — Cargo is the only open ecosystem with a security advisory in flight on the 2026-04-27 list and matches both the severity (Low) and the file scope (uv.lock/Cargo.toml) named in the trigger.