Files
codex/codex-rs/plugin-archive-verification/BUILD.bazel
T
Alex Ionescu 4e5cd2f07d Test remote plugin archive verification end to end (#63527)
## 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
2026-11-24 03:55:44 +00:00

23 lines
749 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",
extra_binaries = [
"//codex-rs/app-server:codex-app-server",
"//codex-rs/app-server:exec-server",
"//codex-rs/bwrap:bwrap",
"//codex-rs/code-mode-host:codex-code-mode-host",
],
integration_compile_data_extra = ["testdata/plugin_archive_signing_v1.json"],
integration_test_timeout = "long",
run_tests_with_wine_exec = True,
test_tags = ["no-sandbox"],
)