Repository navigation
fix: skip dynamic plugins when trust verification fails - #1305
Merged
willkill07 merged 1 commit intoOct 13, 2026
Merged
Conversation
Signed-off-by: Will Killian <[email protected]>
Contributor
2 tasks done
ericevans-nv
approved these changes
Oct 13, 2026
willkill07
added a commit
that referenced
this pull request
Oct 13, 2026
#### Overview This PR targets `release/0.10` on top of the merged plugin trust-check changes from #1305 and adds verified native artifact loading. Core activation retains the native manifest and library bytes accepted by host validation and loads those exact bytes even when the authored files change before loading. - [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license. - [x] I searched existing issues and open pull requests, and this does not duplicate existing work. #### Details - Carry the parsed native manifest and integrity-checked bytes through private activation helpers without changing public API signatures or load-spec structs. - Preserve #1305's optional-plugin skipping and required-plugin failure handling. Native artifacts already captured by core validation load from that captured input; worker and uncaptured internal load requests retain load-time policy checks. - Load embedded native libraries from private temporary copies, using 0700 directory permissions on Unix, and retain each copy until its library unloads. - Keep the CLI's existing snapshot loading location and adjacent native dependencies. Native digest reads use bounded regular-file checks. - Retain both PRs' regressions, including replacement of native manifest/library files and symlink swaps after successful verification, handling of failed load-time checks, and temporary-copy permissions and cleanup. - Document the behavior changes: embedding library-relative dependencies or resources may need explicit paths, and native digest checks reject symlinks and special files. There are no public API or native ABI changes. Validation of the combined code: - All 246 focused dynamic-plugin tests passed, including both PRs' regressions. - `just test-rust`: 5,820 of 5,821 passed. The existing CLI log-format assertion passed a targeted rerun with explicit human-format settings. - `just test-python`: 83 Rust bridge tests, 780 Python tests, and 24 example tests passed. - Node.js: five Rust bridge tests, all 453 JavaScript tests, and 26 example tests passed using the addon built with `__skip-implicit-config` to isolate machine plugin configuration. - Go: all packages passed a fresh `go test -count=1 -v ./...` run against the debug FFI library. Release FFI linking remains blocked on this macOS toolchain by the previously observed misaligned LINKEDIT string pool. - `uv run pre-commit run` passed against the staged integration, including formatting, Clippy, workspace checks, type checking, documentation links, and dependency checks. - The original `just docs-linkcheck` run passed; Fern's published-redirect comparison was unavailable because the remote endpoint returned 403. #### Where should the reviewer start? Start with `crates/core/src/plugin/dynamic/configuration.rs` and `trust.rs` to follow capture of validated native inputs, then inspect the cached-artifact path and temporary-copy ownership in `native.rs`. Embedding regressions are in `crates/core/tests/unit/plugin_dynamic_host_tests.rs`. #### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to) - Resolves [RELAY-1033](https://linear.app/nvidia/issue/RELAY-1033/load-the-same-dynamic-plugin-artifacts-that-passed-trust-verification) - Relates to #1305 (merged into `release/0.10`). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Security and Reliability** * Embedded native plugins load from a private snapshot of library bytes verified during validation. Changes to the source library, manifest, or signature after validation do not affect that activation. * Native library checks use bounded reads and reject symbolic links and special files. * Plugins that fail integrity or signature checks are excluded from activation under optional startup; under required startup, the failure prevents startup. This applies to native and worker plugins. * **Documentation** * Clarified native plugin loading behavior for application embeddings and CLI activation, including adjacent library dependencies and trust failures. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Will Killian <[email protected]>
2 tasks done
willkill07
added a commit
that referenced
this pull request
Oct 14, 2026
#### Overview Add 0.10.1 release notes covering the fifteen PRs merged into `release/0.10` since `0.10.0`, plus the anticipated merge of #1317, with matching patch-upgrade guidance. Preserve the 0.10.0 notes and follow the NVIDIA documentation style guide. - [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license. - [x] I searched existing issues and open pull requests, and this does not duplicate existing work. #### Details - Cover daemon-worker LLM middleware (#1281), the YAML dependency update (#1282), hook timeout and failure-policy fixes (#1288, #1289, #1290), and request-edit preservation (#1296). - Cover Anthropic streaming storage (#1303), Python typed reconstruction (#1304), Go native handle lifetimes (#1302), authenticated Pi hooks and session ownership (#1306), dynamic plugin trust failures (#1305), and verified native plugin loading (#1307). - Cover Pi named-upstream restrictions (#1314), LangChain tool-schema edits (#1316), and the configurable ChatGPT Codex endpoint (#1319). - Assume #1317 will merge: document plugin HTTP error helpers and prefixes, preservation of remote Guardrails and forwarded hook HTTP error statuses, verified reporting identities, and streaming limits. Verified against its current head `b61bb7da0bc6de7b7d5d27a569981867b7b2fcb9`; its implementation is not merged into this branch. - Add upgrade guidance for hook credentials and registration, generated hooks, daemon response behavior, request edits, Pi extensions and private provider endpoints, native plugin dependencies, stored Python typed values, ChatGPT endpoints, and HTTP error handling. - Keep PR references and counts out of user-facing release notes. Preserve the prior CodeRabbit corrections for MCP route registration, forwarded-stream observation limits, sanitizer-only behavior, and 0.10.1 installation pins. - Merge the latest `release/0.10` into the PR branch. Distinguish personal hook refresh commands from administrator-managed daemon bundles. Validation: `just docs`, `uv run pre-commit run`, and `git diff --cached --check` passed. Fern skipped the published redirect-history check because FDR returned HTTP 403. Verified the merged release range against source and public documentation, and the assumed #1317 behavior against its current PR source and docs. Language test suites were not run because the PR diff only updates documentation prose and installation version pins. Package installation commands, live daemon upgrades, plugin activations, and hook refreshes were not executed. Validation runs on the current release branch; #1317 remains an explicit release-content assumption. #### Where should the reviewer start? Start with `Release 0.10.1` in `docs/about-nemo-relay/release-notes/index.mdx`, then review `Update from NeMo Relay 0.10.0 to 0.10.1` in `docs/reference/migration-guides.mdx`. Review the new Pi endpoint, ChatGPT endpoint, LangChain tool-edit, and HTTP error guidance, including the #1317 merge assumption. Check matching version pins in `docs/getting-started/installation.mdx`. #### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to) - Relates to: none <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added NeMo Relay 0.10.0 and 0.10.1 release notes, including feature highlights, compatibility updates, fixes, and known issues. * Expanded migration guidance with upgrade steps and details on hook credentials and delivery, daemon-worker middleware behavior, request editing, plugin requirements, and Python value handling. * Updated installation examples across supported platforms, packages, and integrations to reference version 0.10.1. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Will Killian <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Prevent enabled optional dynamic plugins from loading after failed artifact trust checks. Optional failures skip the plugin and allow the host to continue; required failures abort startup.
Details
Public API signatures and structs, native ABI layouts, and worker protocol messages remain unchanged.
Validation:
just test-gopassed withCARGO_PROFILE_RELEASE_STRIP=noneto avoid the local macOS linker error.Where should the reviewer start?
Start with
validate_declarationincrates/core/src/plugin/dynamic/configuration.rsandDynamicPluginLoadTrust::manifest_for_loadincrates/core/src/plugin/dynamic/trust.rs. The configuration, host, and native-loader regressions show that failed optional checks cannot reach activation, including failures detected immediately before loading.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit