## Why
Verifier unit tests exercise the signing checks in isolation. Integration
tests cover how callers handle verification failures, including whether
they preserve an existing cache or write checkout files.
## What changed
Reuse the signed archive fixture with a mock backend to cover these paths:
- `plugin/install` accepts an unsigned archive without fetching signing keys.
- `plugin/reconcile` caches unsigned and valid signed releases, reuses a
cached version without downloading it again, and preserves that version
when a newer archive fails verification or signing keys are unavailable.
- `plugin/share/checkout` writes the checkout and local metadata after
successful verification and leaves them absent for a tampered archive.
- The measurement reference cache rejects a tampered archive and accepts
valid bytes on retry for the same plugin version.
Wire the tests into Bazel and give the new RPC suite the existing app-server
integration test concurrency limits in nextest.
GitOrigin-RevId: bfac72216ccee6c5a33fe08ef0081fad48ac842d
## Why
Concurrent plugin archive verifications could make repeated signing key
requests when a refresh failed, returned an immediately expired response,
or omitted the requested key.
## What changed
Overlapping lookups for the same endpoint and credentials share the
completed fetch result. Each lookup resolves its own key ID from that
result. A waiting lookup can retry if the in-flight fetch is canceled.
## Testing
Add concurrency tests that check request counts for zero-TTL responses,
unknown keys, and fetch failures. The tests also verify credential
isolation and retry after cancellation.
GitOrigin-RevId: f089f8f4822314683ecadea658d6abeac36d53a3
## Why
Verifying each signed plugin archive fetched the signing keys again, even
when the same Plugin Service credentials and key ID were used.
## What changed
Reuse signing keys within a plugin manager for the same Plugin Service
endpoint and request headers until the server-provided
`cache_ttl_seconds` expires. Requests without a non-empty
`Authorization` header fetch keys every time.
Fetch keys when the requested key ID is missing or the cache expires.
Serialize refreshes within each scope and clear the previous keys before
fetching so a failed refresh leaves no cached keys to reuse.
## Testing
Add coverage for cache reuse and expiry, missing key IDs, invalidation
after a denied refresh, and recovery after a canceled refresh. Exercise
reuse and isolation across plugin managers through signed bundle downloads.
GitOrigin-RevId: cc1171d7914b904f6895a179cbb0cf55ffa537d3
## Why
A SHA-256 digest can detect changed archive bytes, but someone who replaces
both the archive and its digest can still pass that check. A signature
verified with a Plugin Service release signing key lets callers detect
that replacement before extraction.
## What changed
Add `RemotePluginArchiveDownload::verify` to check the archive's SHA-256
digest and verify its detached RSA signature with the matching
release key from the authenticated `/ps/plugins/signing-keys` endpoint.
Allow downloads with missing or null signing metadata to proceed without
verification. Report malformed metadata when verification is called so
catalog responses can still be parsed, and omit signing metadata when
serializing download records.
## Testing
Add a signed archive fixture and tests for successful verification,
tampering with both archive bytes and the reported digest, redirected key
responses, invalid signing metadata and keys, and unsigned downloads.
GitOrigin-RevId: 8dd1575cb24ca3e531223faf57d23c12445651bf
## What changed
Register `codex-plugin-archive-verification` in the Cargo workspace and
add a Bazel library target. The library currently contains only crate
documentation describing its purpose of verifying Plugin Service archive
signatures.
GitOrigin-RevId: 6d5b4e38985ccef2423561f10eea78a8e919946b