Cyber
Remediation approaches
Eden distinguishes network-based, policy-based, module-based and client-based remediation. These describe enforcement placement and how the logic is delivered. They can be composed: network controls constrain the traffic path, a gateway policy selects an isolated module, and a participating client constructs safer requests before sending them.
The important question is which effect must be prevented, and where that effect first becomes possible. A control must execute at an appropriate earlier stage on every path for which protection is claimed.
Status: this page distinguishes the architecture from the current preview implementation. HTTP policy and module contracts have bounded implementation tests. Network revision activation and client integrations require separate supported-profile, installation and effect evidence. No universal host, protocol, client or CVE protection is implied.
Compare the four approaches
| Approach | Input visible to the control | Enforcement action | Deployment dependency |
|---|---|---|---|
| Network-based | Metadata available at the exact packet/socket/connection hook. | Admit/drop traffic, restrict bind/connect or constrain an allowed route. | Original managed host/workload ownership and the supported native hook/profile. |
| Policy-based | Canonical parsed protocol fields and structural observations. | Apply a prepared declarative admission requirement. | Traffic traverses the configured gateway listener and supported protocol adapter. |
| Module-based | Host-selected context and explicitly disclosed typed captures. | Return Continue, Reject or a permitted Mutate proposal. | An admitted immutable Rust worker, matching manifest, current binding and bounded SDK session. |
| Client-based | The participating caller's request before or during construction. | Locally reject or normalize an operation before sending it. | A qualified integration is actually installed in each covered caller and operation path. |
The four approaches are not four Rust enum variants. The current Rust module decision enum has three outcomes. The four native HTTP requirement types are also a separate concept: they are examples within policy-based remediation.
Network-based remediation
Network remediation changes reachability or transport admission at a managed network boundary. For example, a rule can prevent a workload from opening an unapproved destination connection or require traffic to use the original Eden handoff. This is useful when the required control concerns exposure, destinations or processing that occurs before application-level request handling.
The execution path is:
packet or socket operation
→ original managed network hook
→ supported scope/selector and current native policy
→ admit or refuse at that hook
→ later protocol/application processing, if admittedThe inspected Linux Runtime foundation has owned application-cgroup ingress, egress, socket-create, IPv4/IPv6 bind and connect hooks. Those names describe attachment points, not equal functionality at every point. The fixed packet program admits a restricted IPv4/TCP route shape and refuses IP options, fragments and out-of-route traffic; IPv6 address hooks do not establish general IPv6 remediation support.
An application-cgroup hook does not automatically cover an unrelated host listener, another namespace, an ancestor attachment or a replacement workload. A packet ingress hook executes after earlier kernel work; a socket-create hook does not prove that all inbound allocation is prevented. Establish the actual ordering for the exact deployed system and exploit prerequisite.
Transport metadata cannot substitute for a parsed application body. Encrypted application fields are unavailable at a packet-only control point. Inspecting those fields requires an appropriate authorized protocol/TLS boundary.
For an effective network revision, retain the exact host/workload/listener scope, program/policy digest, installed hook identities and observed revision. Check direct, loopback, overlay, existing-connection and replacement-resource paths separately. Existing launch-time confinement is not proof that a later patch API activated a new protection revision. This guide does not invent a public network patch endpoint while that revision/coverage integration remains in development.
Policy-based remediation
Policy remediation expresses an invariant as data. Eden validates and prepares the declaration outside the request path. The protocol adapter supplies canonical observations; the prepared policy selects a native action before the protected upstream operation.
request → protocol parse → scoped structural rule → reject or continueUse this approach for a fixed requirement such as:
- Disable a particular method/path temporarily.
- Forbid an override header, regardless of its value or casing.
- Require a JSON request without selected root members.
- Restrict a route to an explicit set of media types.
The native constraint reference contains the exact JSON for deny, header_absent, json_members_absent and media_type. These are four requirements within the preview http-structure-v1 profile, not the four overall remediation approaches.
A policy rejecting a root data member refuses both {"data":null} and {"data":{}}. It does not remove the member. An admitted operation continues to the original backend under its normal authorization. An unknown or unsupported input cannot silently count as inspected or protected.
The current policy publication path reuses authenticated Interlay configuration. Its observed state describes one local listener. A saved declaration or local ready status does not establish fleet rollout, network-hook coverage or a client integration. See publication and observed state.
Module-based remediation
Module remediation supplies executable logic through a separately compiled Rust worker. Use it when supported captures need more involved validation or an explicitly permitted transformation that the native declaration cannot express.
request → protocol parse and structural selection
→ admit original worker and extract declared captures
→ RemediationModule::evaluate
→ host validates context, proposal and current authority
→ reject, continue unchanged, or apply permitted mutation and continueFor example, a host can supply has_data: true from a complete JSON-root inspection. A worker can propose removing data. The host must have granted that exact root-member mutation; it validates and serializes the changed request, then rechecks base authorization and the binding before upstream dispatch.
The public interface is the async RemediationModule trait, with initialization, evaluation and shutdown. The worker registry binds the implementation to an exact entrypoint. A manifest declares the SDK/profile, parser digest, captures, permissions and limits. Artifact admission binds immutable image and module identities to the original Runtime application revision and worker incarnation.
The worker returns a proposal. It receives no backend capability handles and cannot authorize a different endpoint, tenant, route or destination. Actual process/network/filesystem/CPU/memory restrictions remain Runtime's job. Loading a customer library into Eden's process is not this execution model.
Module code can evolve as a separately retained worker artifact; it does not require a per-module source change in Eden or the protected application. This architectural property is distinct from a qualified production rollout. The current preview is Linux Unix RPC with bounded unary HTTP captures and permitted root-JSON mutations; it does not imply streaming or all-protocol support.
Read the Rust SDK guide for the complete evaluation example, worker registration, a typed manifest, the step-by-step host flow and negotiated limits.
Client-based remediation
Client remediation executes in a participating caller or its installed client integration before the protected operation is sent. Depending on the qualified delivery profile, that integration could be an application SDK, driver wrapper or local client component. Installing it may require application configuration or code changes.
application constructs operation
→ installed client integration validates or normalizes it
→ serialize and send, or refuse locally
→ server/network/gateway independently enforce their own controlsFor example, an integrated caller could prevent its own use of an unsafe override field before serialization. This can improve request construction at the source. It does not stop a separate caller that sends the same field directly to the server. Shared security requirements therefore still need an enforceable server or network boundary for bypassing and untrusted clients.
Client-provided identity, policy version or inspection flags do not become trusted merely because an SDK set them. Eden must independently derive or verify authority. Similarly, the management client that publishes an Interlay policy is a control-plane tool; calling PATCH from an SDK does not itself install a business-request interception hook in that client.
No qualified, versioned client-remediation hook or installation contract is established by the preview sources referenced here. This section defines the approach and its boundary; it is not an announcement of a shipping client agent, automatic driver instrumentation or a new SDK method. A supported client profile must specify its actual package/version, covered operations, installation, failure behavior, update/rollback and observed application coverage.
Choose and combine controls
| Required invariant | Appropriate approach |
|---|---|
| A workload must not reach an unapproved network destination. | A qualified network egress control at the actual connection boundary. |
| Requests to a selected route must never contain a root override field. | A supported declarative policy at the shared protocol boundary. |
| The request needs bounded custom validation or permitted root-field transformation. | A module selected by policy and validated by the gateway before effects. |
| Participating application code should construct safer requests before sending them. | A qualified client integration, with independent shared enforcement where bypass is possible. |
Choose the earliest supported stage that can observe the necessary facts and prevent the prohibited effect while preserving required legitimate behavior. An HTTP callback cannot repair processing that already occurred in the kernel. A network reachability rule cannot prove JSON semantics. A client-only check cannot enforce behavior against an arbitrary caller. A module cannot manufacture an input, stage or mutation that its adapter does not support.
For each activated control, record desired and observed effective revisions, actual scope, current authority, unsupported paths and failure behavior. Validate with independent effect observations: forbidden effects do not occur, ordinary operations still work, and mutations produce exactly the intended change. Do not combine several partial observations into a universal protection claim.
Implementation references
Pinned preview source may require repository access: