← Back to Pull requests

docker: run the server on chainguard/static, not ubuntu with git #711

Closed
unknown closed this pull request without merging on Oct 27, 2026 22:38 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 16:22 UTC
Author

Description

---
🤖 written by Claude (start)

Change Type

/kind fix

Changelog

``release-note
The server image now runs on chainguard/static as a nonroot user with no shell or git, and fixes CVEs in klauspost/compress and OpenTelemetry.
`

Additional Notes

  • The server has cloned Git sources with go-git since #698 and never shells out, so it needs neither git nor a shell.

  • The image runs as the base's nonroot user (65532); the chart still runs it as UID 1001.

  • Compose checks health with arctl-server healthcheck, and drops the sed kubeconfig rewrite and mount: the server never loads a kubeconfig, since its only Kubernetes client uses in-cluster config.

  • Anyone who runs docker exec … sh in the server container loses that shell.
  • | Scanner | Before | After |
    |---|---|---|
    | trivy | 1 high, 28 medium, 22 low | 1 medium, no fix available |
    | grype | 1 high, 135 medium, 26 low | 1 medium, no fix available |

    Testing

    1. Run make run-docker. docker compose -p agentregistry ps shows the server healthy.
    2. Apply a Plugin with
    source.type: git and an HTTPS URL using arctl apply -f. arctl get plugin <name> -o yaml shows reason: Resolved and a resolvedSource.commit`.

    ---
    🤖 written by Claude (end)

    🤖 Generated with Claude Code

    Diff: 163 lines (+122 / -41) across 2 files Reviewer: lcopi Review duration: 375m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 163 lines diff across 2 files
    0.40
    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.305
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #711"
    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: 40.0% (MEDIUM) · Higher = larger blast radius
    40.0%
    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: 15.8% · Safe to merge
    15.8%