feat(gateway): add operation interceptors#1936
Draft
drew wants to merge 1 commit into
Draft
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
🌿 Preview your docs: https://nvidia-preview-pr-1936.docs.buildwithfern.com/openshell |
7b79fcb to
aa69ab9
Compare
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
aa69ab9 to
efd8bef
Compare
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.
Summary
Implement RFC 0006 gateway operation interceptors and add a policy governance example interceptor that vends a default sandbox policy, governs GitHub/GitLab providers, and signs the vendored policy digest with an internal JWT workflow.
Related Issue
RFC 0006
Changes
examples/policy-governance-interceptorwith policy vending, provider lockdown, signature labels, JWT signing/verification, and an end-to-end smoke script.Testing
mise run pre-commitpassesManual verification run locally:
cargo fmt --allbash -n examples/policy-governance-interceptor/smoke.shcargo test -p policy-governance-interceptor --message-format=shortbash examples/policy-governance-interceptor/smoke.shenv CC=clang CXX=clang++ RUSTC_WRAPPER= cargo test -p openshell-interceptors -p openshell-server -p policy-governance-interceptor --features openshell-server/test-support,openshell-server/gh-release-z3 --message-format=shortmise run pre-commitwas attempted twice locally. The default run failed becauseaws-lc-syspicked up/opt/homebrew/bin/gcc-15and failed against the macOS SDK block syntax. The clang rerun got past that but failed because localz3.his not installed. The focused Rust verification above usesopenshell-server/gh-release-z3, matching the smoke build path.Checklist