diff --git a/integrations/openshell/README.md b/integrations/openshell/README.md index ada1870f..4daccc0f 100644 --- a/integrations/openshell/README.md +++ b/integrations/openshell/README.md @@ -25,6 +25,25 @@ The explicit `--allow-insecure-lab` flag is required for a nonloopback listener; it does not add authentication. Do not expose this listener publicly. This is an experimental integration, not an authenticated production deployment. +## Request flow + +![Under the sample fail_closed policy, OpenShell enforces network policy, asks Nomos to review selected HTTP requests, and forwards only permitted requests.](docs/images/http-request-review.svg) + +For requests selected for review, the supervisor calls Nomos over gRPC before +injecting managed credentials. Nomos validates the request, sends the observation +and configured questions to the decision model, and applies the configured score +thresholds. It returns a decision to OpenShell; the middleware does not forward +the workload request. + +For requests selected for review, the sample `fail_closed` policy requires both +network-policy permission and a review allow decision before forwarding. With +`fail_open`, an assessment failure can instead let the request continue without +an allow decision. A content denial blocks under either setting. OpenShell adds +managed credentials where configured and forwards the original payload; Nomos +does neither. A network-policy denial stops the request before assessment. +See [configuration](docs/configuration.md) for questions, thresholds and the +model API, and [lab testing](docs/lab-testing.md) for forwarding evidence. + ## Read and run 1. [Setup](docs/setup.md): build, configure a model, register with OpenShell, diff --git a/integrations/openshell/docs/images/http-request-review.svg b/integrations/openshell/docs/images/http-request-review.svg new file mode 100644 index 00000000..073e305c --- /dev/null +++ b/integrations/openshell/docs/images/http-request-review.svg @@ -0,0 +1,75 @@ + + + +OpenShell HTTP review with Nomos +This diagram shows the sample fail_closed policy. The sandbox sends an HTTP request through the OpenShell supervisor. The supervisor enforces network policy and calls Nomos middleware before managed credential injection. Nomos calls a decision model and returns allow, deny, or an error. OpenShell forwards only permitted requests; policy denials and assessment failures do not reach the destination. + + + + + + + + OpenShell HTTP review with Nomos + Policy-selected outgoing requests with fail_closed error handling + + + + + + + + + + OpenShell sandbox + OpenShell supervisor + Destination service + Nomos middleware + Decision model + Request blocked + + + Agent / HTTP client + Sandbox runtime mediates + outgoing traffic + Enforce network policy + Select requests for review + Receives permitted + HTTP requests + Validate request and scores + Apply configured questions + and decision thresholds + Jev / Deciffusion + Score request against + configured questions + Policy or content denial; + assessment failure + under fail_closed policy + + + + + + + + + + + + 1 HTTP + request + 4 Forward + only if allowed + 2 Review + gRPC before + credentials + 3 Allow / deny + or error + HTTP(S) + Scores + Deny / failure + + OpenShell forwards the original payload; configured managed credentials are injected after review. + Orange: request / assessment • Blue: review results • Red: blocked before destination + +