← Back to Pull requests

Sign published images with ddsign #135

Closed
unknown closed this pull request without merging on Nov 13, 2026 15:16 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 10:46 UTC
Author

What this PR does

The multi-arch csi-driver image is now signed with ddsign right after the build pushes it. The signature is a build attestation in the attestation store (AMS): it records the CI job, the GitLab project, the branch or tag, and the commit.

The build pushes one multi-arch index, and the release tag points to the same digest, so one signature covers both the main and the tag publications.

Why

artifact-gateway publishes Datadog's public container images. It now audits each source image with Turnstile, Datadog's artifact policy system, and checks how the image was built: in CI, in an allowed project, and for releases from the matching git tag (https://datadoghq.atlassian.net/browse/BARX-2131). That check reads the image-integrity attestation that ddsign writes. Today this repo's published images have none, so every audit of them fails. The audit is observe only for now: it never blocks a publication.

This is the same change as datadog-agent's https://github.com/DataDog/datadog-agent/pull/58776, which signs all Agent images.

Behavior

  • A failed digest lookup or a failed signature fails the build job, so an unsigned image cannot reach the publish jobs.

  • The signature costs about 2.5 s per image (measured in datadog-agent).

  • The build image already ships ddsign and crane.
  • Checks

    | Check | Status |
    |---|---|
    | The branch pipeline signs the image | passed: GitLab pipeline 152937672, build_image logged successfully signed artifact |
    | The attestation is in the attestation store with the right claims | passed: datadog-csi-driver:v152937672-cf41a023 is signed: project DataDog/datadog-csi-driver, identity gitlab-runner.datadog-csi-driver@kubernetes.us1.ddbuild.io, ref = this branch |

    This repo's CI identity is already allowed to sign, so no access change is needed.

    🤖 Generated with Claude Code

    Diff: 239 lines (+179 / -60) across 2 files Reviewer: tbavelier Review duration: 270m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 239 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.328
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #135"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.7% · Safe to merge
    14.7%