Honor --allow-http-registry and COSIGN_REPOSITORY across OCI operations #5202
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.54) × (1 − Review Confidence (0.69)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.54 · 323 lines diff across 12 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 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
Diff Size
diff_size
0.346
Real PR Conversation Timeline
4 items
The only new test here is for GetEnvTargetRepository, I wonder if it's worthwhile to add a test or two for the sign or verify paths?
Added a number of sign and verify tests that use COSIGN_REPOSITORY with an HTTP registry!
Approved
Approved these changes.
cmurphy
Hayden-IO
Pass RegistryOptions.NameOptions() to GetEnvTargetRepository and ociremote.WithNameOptions so that --allow-http-registry is preserved when parsing COSIGN_REPOSITORY and resolving references. Also ensure bundle verification/download, experimental OCI 1.1 signature read/write, and clean commands consistently respect TargetRepository and NameOptions.
AI found and generated while updating scaffolding e2e tests
Ref https://github.com/sigstore/cosign/pull/5034
Fixes https://github.com/sigstore/cosign/issues/5033