feat: support containers-native auth files (REGISTRY_AUTH_FILE / containers/auth.json) in keychain #5233
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
cmurphy
Summary
This PR adds support for containers-native authentication files (
REGISTRY_AUTH_FILEandcontainers/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.jsonviaauthn.DefaultKeychain)3.
$XDG_RUNTIME_DIR/containers/auth.json4.
$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