Skip to content

Require explicit approval for OCI-bundled component policies - #888

Merged
Aaron Wislang (asw101) merged 3 commits into
microsoft:mainfrom
asw101:fix/oci-policy-require-approval
Oct 18, 2026
Merged

Aaron Wislang (asw101) merged 3 commits into
microsoft:mainfrom
asw101:fix/oci-policy-require-approval

Conversation

@asw101

Copy link
Copy Markdown
Member

This change rejects publisher-supplied OCI policies unless a direct operator explicitly approves the complete bundled policy. Agent-facing and automated load paths remain fail closed, and rejection preserves the previously installed component and policy state. Operators who reviewed a bundled policy can use wassette component load --trust-bundled-policy <OCI-URI>.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.39779% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.19%. Comparing base (f0423f5) to head (c907b0e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/mcp-server/src/components.rs 55.55% 8 Missing ⚠️
crates/wassette/src/loader.rs 90.47% 6 Missing ⚠️
crates/wassette/src/component_storage.rs 90.00% 4 Missing ⚠️
crates/wassette-mcp-server/src/cli_handlers.rs 88.88% 2 Missing ⚠️
crates/wassette-mcp-server/src/main.rs 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #888      +/-   ##
==========================================
+ Coverage   77.12%   77.19%   +0.07%     
==========================================
  Files          48       48              
  Lines       18429    18610     +181     
==========================================
+ Hits        14213    14366     +153     
- Misses       4216     4244      +28     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@asw101

Copy link
Copy Markdown
Member Author

The Rust security audit failure was inherited from the current main dependency set rather than introduced by this PR. A separate dependency commit now updates Wasmtime 48.0.3 → 48.0.6, quinn-proto 0.11.16 → 0.11.18, and rustls 0.23.45 → 0.23.46; cargo audit exits successfully with only the two pre-existing allowed warnings. The dependency commit also passed cargo check --workspace --all-targets on its isolated branch.

@asw101

Copy link
Copy Markdown
Member Author

The dependency update made cargo audit pass, but the following cargo-deny step exposed a separate pre-existing configuration mismatch: cargo-deny defaults to rejecting every transitive unmaintained crate, so it rejected unsafe-libyaml even though the workflow treats that advisory as an allowed cargo-audit warning. The follow-up commit sets cargo-deny’s documented unmaintained = "workspace" scope, which continues to reject unmaintained crates selected directly by the workspace, reports transitive cases, and does not add an advisory ignore or relax actual vulnerability checks.

@asw101
Aaron Wislang (asw101) merged commit 429cd2f into microsoft:main Oct 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants