Add project keys to OCI endpoints - #830
Conversation
🤖 Claude Code ReviewPR: #830 Good — Here is my review: PR Review: OCI Project Key AuthenticationSummaryThis PR adds project-scoped key authentication to the OCI registry, enabling CI runners to authenticate with a Strengths
Issues1. Pull-only restriction may be too restrictive (Medium)
2. Double rate-limit application on some paths (Low) In 3. In if let Ok(repo_rid) = repository.parse::<ProjectResourceId>() {
let project = resolve_project(context, &repo_rid).await?;
context.rate_limiting.project_request(project.uuid)?;
}If the project doesn't exist, 4.
5.
Security
Missing
Model: claude-opus-4-6 |
|
| Branch | u/ep/oci-project-key |
| Testbed | intel-v1 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 4.57 µs(+0.59%)Baseline: 4.55 µs | 4.73 µs (96.65%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 4.48 µs(+1.35%)Baseline: 4.42 µs | 4.61 µs (97.24%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 26.04 µs(+2.71%)Baseline: 25.36 µs | 26.29 µs (99.07%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 3.46 µs(+0.53%)Baseline: 3.44 µs | 3.58 µs (96.61%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 3.46 µs(+0.73%)Baseline: 3.43 µs | 3.56 µs (97.07%) |
3eb3d1c to
fac6d6a
Compare
4e5c30c to
9a0aacf
Compare
This changeset adds accepting project keys (#823) to the OCI endpoints.
The
docker loginwill now take a project slug or UUID and abencher_runtoken for OCI authentication.