pkg/

directory
v0.7.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0

Directories

Path Synopsis
adapters
extproc
Package extproc implements the ext_proc adapter used by Envoy's external processing filter (envoy.service.ext_proc.v3), and so by Envoy Gateway.
Package extproc implements the ext_proc adapter used by Envoy's external processing filter (envoy.service.ext_proc.v3), and so by Envoy Gateway.
forwardauth
Package forwardauth implements the forward-auth adapter used by Traefik's ForwardAuth middleware.
Package forwardauth implements the forward-auth adapter used by Traefik's ForwardAuth middleware.
httpcheck
Package httpcheck implements POST /v1/check, the engine's own check API (api/engine/v1).
Package httpcheck implements POST /v1/check, the engine's own check API (api/engine/v1).
internal/httpadapter
Package httpadapter holds request handling shared by the adapters that receive requests over net/http: the reverse proxy and forward-auth.
Package httpadapter holds request handling shared by the adapters that receive requests over net/http: the reverse proxy and forward-auth.
internal/llmtest
Package llmtest is the policy the adapters' tests check LLM endpoints with (design 0012): each adapter must read an endpoint's body to its own limit, deny a failed check with 400 and the request ID, and keep the rules off the body.
Package llmtest is the policy the adapters' tests check LLM endpoints with (design 0012): each adapter must read an endpoint's body to its own limit, deny a failed check with 400 and the request ID, and keep the rules off the body.
proxy
Package proxy implements Inkwall's standalone mode: an HTTP reverse proxy that inspects each request and forwards allowed ones to an upstream.
Package proxy implements Inkwall's standalone mode: an HTTP reverse proxy that inspects each request and forwards allowed ones to an upstream.
spoe
Package spoe implements an SPOE agent (an SPOA): the adapter HAProxy's Stream Processing Offload Engine calls over SPOP, its binary protocol (doc/SPOE.txt in HAProxy).
Package spoe implements an SPOE agent (an SPOA): the adapter HAProxy's Stream Processing Offload Engine calls over SPOP, its binary protocol (doc/SPOE.txt in HAProxy).
Package agent connects the engine to the operator (0002 §5.2): it keeps one stream open, verifies and applies every bundle the operator sends, and reports what it applied.
Package agent connects the engine to the operator (0002 §5.2): it keeps one stream open, verifies and applies every bundle the operator sends, and reports what it applied.
Package bundlekey is how the operator and the engines name and exchange the public keys that bundles are signed with (0004 §4.6).
Package bundlekey is how the operator and the engines name and exchange the public keys that bundles are signed with (0004 §4.6).
Package bundlesecret is the format of the operator's bundle Secret, which the operator writes and the engines and inkwallctl read (0004 §4.6).
Package bundlesecret is the format of the operator's bundle Secret, which the operator writes and the engines and inkwallctl read (0004 §4.6).
Package clientip resolves the real client address of a request that may have passed through load balancers or proxies.
Package clientip resolves the real client address of a request that may have passed through load balancers or proxies.
Package events turns the engine's security events into SecurityEvents (0002 §5.4) and holds them, bounded, until the agent sends them to the operator.
Package events turns the engine's security events into SecurityEvents (0002 §5.4) and holds them, bounded, until the agent sends them to the operator.
Package geo looks a client's country up in a country table (design 0011 §5.1): the sorted IP ranges, each with a country code, that the operator compiles a country database (MMDB) into and sends to engines (inkwall.geo.v1.CountryTable).
Package geo looks a client's country up in a country table (design 0011 §5.1): the sorted IP ranges, each with a country code, that the operator compiles a country database (MMDB) into and sends to engines (inkwall.geo.v1.CountryTable).
Package grpcschema holds a policy's gRPC schema as the engine reads messages with it (design 0013 §5, §6): the compiled form the operator puts in the bundle (bundlev1.GRPCSchema, which pkg/grpcschema/load reads), checked and indexed.
Package grpcschema holds a policy's gRPC schema as the engine reads messages with it (design 0013 §5, §6): the compiled form the operator puts in the bundle (bundlev1.GRPCSchema, which pkg/grpcschema/load reads), checked and indexed.
compile
Package compile compiles a FileDescriptorSet into the schema engines read gRPC messages with (design 0013 §5.1, §5.2): the operator runs it on a policy's descriptor set, so that engines never parse descriptors.
Package compile compiles a FileDescriptorSet into the schema engines read gRPC messages with (design 0013 §5.1, §5.2): the operator runs it on a policy's descriptor set, so that engines never parse descriptors.
grpcschematest
Package grpcschematest builds gRPC schemas for tests, as the operator compiles them and an engine loads them.
Package grpcschematest builds gRPC schemas for tests, as the operator compiles them and an engine loads them.
load
Package load reads a bundle's compiled gRPC schema (bundlev1.GRPCSchema) into a grpcschema.Schema.
Package load reads a bundle's compiled gRPC schema (bundlev1.GRPCSchema) into a grpcschema.Schema.
Package grpcwire reads gRPC request messages without their schema: it splits a body into gRPC messages and finds the text in each protobuf message, for rules to inspect.
Package grpcwire reads gRPC request messages without their schema: it splits a body into gRPC messages and finds the text in each protobuf message, for rules to inspect.
Package haproxyprobe is the probe the operator sends through HAProxy to tell whether a route runs the engine's SPOE filter (0002 §6.4): a GET with Header carrying a random nonce and a MAC of the nonce, the host and the path under the bundle's probe key.
Package haproxyprobe is the probe the operator sends through HAProxy to tell whether a route runs the engine's SPOE filter (0002 §6.4): a GET with Header carrying a random nonce and a MAC of the nonce, the host and the path under the bundle's probe key.
Package iplist matches client addresses against a set of CIDR prefixes: a policy's IP allow and deny lists (#358).
Package iplist matches client addresses against a set of CIDR prefixes: a policy's IP allow and deny lists (#358).
Package llm reads the requests of LLM APIs (OpenAI Chat Completions, Responses and Embeddings, Anthropic Messages) and checks them against a policy's caps (docs/design/0012): the model, the prompt's size, the messages, the choices, the output limit, the roles a client sends and the tools it defines.
Package llm reads the requests of LLM APIs (OpenAI Chat Completions, Responses and Embeddings, Anthropic Messages) and checks them against a policy's caps (docs/design/0012): the model, the prompt's size, the messages, the choices, the output limit, the roles a client sends and the tools it defines.
Package pipeline turns a request into a verdict: it runs the rule evaluator under a per-request deadline and applies the enforcement mode (detect or block) and the failure mode (fail open or closed).
Package pipeline turns a request into a verdict: it runs the rule evaluator under a per-request deadline and applies the enforcement mode (detect or block) and the failure mode (fail open or closed).
Package policy enforces a bundle: each policy of the bundle gets its own pipeline (mode, failure mode, timeout, skip paths, rules, body settings), and each request is inspected by the policy of its route.
Package policy enforces a bundle: each policy of the bundle gets its own pipeline (mode, failure mode, timeout, skip paths, rules, body settings), and each request is inspected by the policy of its route.
Package ratelimit holds the token buckets of a policy's rate limits (design 0009, #705): one engine-wide Store of every limit's buckets, per key, in a fixed-size table.
Package ratelimit holds the token buckets of a policy's rate limits (design 0009, #705): one engine-wide Store of every limit's buckets, per key, in a fixed-size table.
Package request defines the canonical HTTP request that every Inkwall adapter produces and the inspection pipeline consumes.
Package request defines the canonical HTTP request that every Inkwall adapter produces and the inspection pipeline consumes.
Package router decides, before any rule runs, how much of a request needs inspection (pipeline tier T0).
Package router decides, before any rule runs, how much of a request needs inspection (pipeline tier T0).
Package rules defines the interface between the inspection pipeline and a rule engine.
Package rules defines the interface between the inspection pipeline and a rule engine.
coraza
Package coraza implements rules.Evaluator with OWASP Coraza and the OWASP Core Rule Set (CRS), which is embedded in the binary.
Package coraza implements rules.Evaluator with OWASP Coraza and the OWASP Core Rule Set (CRS), which is embedded in the binary.
Package streams splits streamed responses into the events that are inspected one by one (#323, docs/design/0006 §2): a Server-Sent Events stream into its events, a gRPC server stream into its messages.
Package streams splits streamed responses into the events that are inspected one by one (#323, docs/design/0006 §2): a Server-Sent Events stream into its events, a gRPC server stream into its messages.
Package telemetry exposes engine metrics in the Prometheus format and the admin endpoints (/metrics, /healthz, /readyz).
Package telemetry exposes engine metrics in the Prometheus format and the admin endpoints (/metrics, /healthz, /readyz).
Package websocket reads the frames of a WebSocket connection (RFC 6455 §5), so that the engine's reverse proxy can inspect a client's messages before it forwards them (#276).
Package websocket reads the frames of a WebSocket connection (RFC 6455 §5), so that the engine's reverse proxy can inspect a client's messages before it forwards them (#276).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL