mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## 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
13 lines
342 B
Python
13 lines
342 B
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
|
|
exports_files(
|
|
["testdata/plugin_archive_signing_v1.json"],
|
|
visibility = ["//codex-rs/core-plugins:__pkg__"],
|
|
)
|
|
|
|
codex_rust_crate(
|
|
name = "plugin-archive-verification",
|
|
compile_data = ["testdata/plugin_archive_signing_v1.json"],
|
|
crate_name = "codex_plugin_archive_verification",
|
|
)
|