← Back to Pull requests

Upgrade tuf, securesystemslib and in-toto and migrate the downloader and dev signing #26226

Open
unknown opened this pull request with 285 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 21:18 UTC
Author

What does this PR do?

Upgrades tuf to 7.0.1, securesystemslib to 1.6.0 and in-toto to 3.1.0 in agent_requirements.in, and migrates the code that depends on them. The .deps/resolved/* lockfiles are left to the resolution workflow.

Downloader:

  • Replaces the removed securesystemslib.interface key loader. It keeps the legacy keyids, because the offline-signed in-toto layout and links reference keys by them and securesystemslib 1.x derives different ones.

  • Imports RequestsFetcher from tuf.ngclient.requests_fetcher and passes the now-required Updater bootstrap argument (None, i.e. the cached root.json).

  • Moves the synthetic TUF repo test helper to CryptoSigner.

  • Syncs the pins in pyproject.toml.
  • Dev package:

  • Migrates release signing in signing.py off the removed securesystemslib APIs, keeping legacy keyids for machine-key signatures and the 60s GPG timeout, and syncs the pins.
  • Motivation

    Supersedes #26046 (automated security bump for CVE-2026-123806 in tuf), whose two P1 review findings were that the downloader fails at import under securesystemslib 1.x and that the consumer pins were stale. Upstream: securesystemslib 1.0.0 changelog.

    Verified with ddev validate dep and ddev test datadog_checks_downloader (76 passed, 1 skipped, including real in-toto verification). The machine-key signing path was checked end to end against keyids from securesystemslib 0.28; the GPG/Yubikey path was only mock-tested. RequestsFetcher is deprecated upstream, so moving to Urllib3Fetcher is a follow-up. A changelog entry is still to be added now that the PR number exists.

    Checklist before requesting review

  • I self-reviewed the full diff, and this description matches the final change

  • Tests cover the change, or this description explains why none are needed

  • Automated review comments, including Codex review, were addressed or answered

  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards
  • 🤖 Generated with Claude Code

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: aiuto Review duration: 852m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.63) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 285 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.338
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #26226"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.9% (MEDIUM) · Higher = larger blast radius
    62.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 33.6% · Safe to merge
    33.6%