← Back to Pull requests

feat: support containers-native auth files (REGISTRY_AUTH_FILE / containers/auth.json) in keychain #5233

Open
unknown opened this pull request with 84 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 21, 2026 02:40 UTC
Author

Summary


This PR adds support for containers-native authentication files (REGISTRY_AUTH_FILE and containers/auth.json) to Cosign's default registry keychain.

Resolution Precedence


Credentials are resolved per-registry in the following order:
1. $REGISTRY_AUTH_FILE (when set and file exists)
2. Standard Docker config (~/.docker/config.json via authn.DefaultKeychain)
3. $XDG_RUNTIME_DIR/containers/auth.json
4. $XDG_CONFIG_HOME/containers/auth.json (fallback ~/.config/containers/auth.json)

If a source exists but lacks an entry for the requested registry, lookup falls through to subsequent sources before defaulting to Anonymous.

Fixes #5195

Diff: 84 lines (+63 / -21) across 1 files Reviewer: cmurphy Review duration: 15483m
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.53) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.53 · 84 lines diff across 1 files
0.53
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%
40%
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.266
Sensitive Paths sensitive_paths
0.053
Real PR Conversation Timeline
1 comments
"Review active on #5233"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 40.5% 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: 52.8% (MEDIUM) · Higher = larger blast radius
52.8%
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: 40.5% · Lower = rushed or shallow review
40.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: 31.4% · Safe to merge
31.4%