Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd
|
|
|
engine
command
Command inkwall-engine runs the Inkwall inspection engine.
|
Command inkwall-engine runs the Inkwall inspection engine. |
|
inkwallctl
command
Command inkwallctl is the Inkwall command-line tool.
|
Command inkwallctl is the Inkwall command-line tool. |
|
operator
command
Command inkwall-operator is Inkwall's Kubernetes operator: it turns WAFPolicy and the other waf.inkwall.dev objects into policy bundles for the engines, and wires the cluster's proxies to them (docs/design/0004).
|
Command inkwall-operator is Inkwall's Kubernetes operator: it turns WAFPolicy and the other waf.inkwall.dev objects into policy bundles for the engines, and wires the cluster's proxies to them (docs/design/0004). |
|
Package docs embeds the user documentation of this version, which inkwallctl mcp serves to AI assistants as resources (docs/mcp.md).
|
Package docs embeds the user documentation of this version, which inkwallctl mcp serves to AI assistants as resources (docs/mcp.md). |
|
hack
|
|
|
benchgate
command
Command benchgate fails when benchmarks regressed.
|
Command benchgate fails when benchmarks regressed. |
|
docscheck
command
Command docscheck keeps the Markdown docs from rotting.
|
Command docscheck keeps the Markdown docs from rotting. |
|
expiredcert
command
Command expiredcert writes a webhook certificate Secret's files that expired yesterday: ca.crt, ca.key, tls.crt and tls.key, as the operator's certificate rotator keeps them.
|
Command expiredcert writes a webhook certificate Secret's files that expired yesterday: ca.crt, ca.key, tls.crt and tls.key, as the operator's certificate rotator keeps them. |
|
fptraffic
command
Command fptraffic records the traffic of a real application as a HAR file, for the false-positive run (hack/fp-run.sh, make fp-run; #600, #707).
|
Command fptraffic records the traffic of a real application as a HAR file, for the false-positive run (hack/fp-run.sh, make fp-run; #600, #707). |
|
grpcecho
command
Command grpcecho is a gRPC server and client for the end-to-end tests of gRPC streams (#315, #317).
|
Command grpcecho is a gRPC server and client for the end-to-end tests of gRPC streams (#315, #317). |
|
grpchealth
command
Command grpchealth makes one gRPC call, grpc.health.v1.Health/Check, over HTTP/2 without TLS, and prints the call's status code (OK, PermissionDenied, ...).
|
Command grpchealth makes one gRPC call, grpc.health.v1.Health/Check, over HTTP/2 without TLS, and prints the call's status code (OK, PermissionDenied, ...). |
|
h2trailers
command
Command h2trailers posts a form body followed by a trailer over HTTP/2 without TLS (prior knowledge), and prints the response's status code.
|
Command h2trailers posts a form body followed by a trailer over HTTP/2 without TLS (prior knowledge), and prints the response's status code. |
|
loadgen
command
Command loadgen sends GET requests to one URL from a few concurrent clients for a while, and prints the latency percentiles and the status codes as one JSON line: a small, closed-loop load test for the kind measurements (hack/kind/response-load.sh), not a benchmark tool.
|
Command loadgen sends GET requests to one URL from a few concurrent clients for a while, and prints the latency percentiles and the status codes as one JSON line: a small, closed-loop load test for the kind measurements (hack/kind/response-load.sh), not a benchmark tool. |
|
mcpclient
command
Command mcpclient drives an MCP server over stdio for the kind e2e (hack/kind/mcp-e2e.sh): it starts the command after --, initializes, and lists the tools (-list), reads a resource (-read URI), or calls a tool (-tool NAME -args JSON), printing the result as JSON.
|
Command mcpclient drives an MCP server over stdio for the kind e2e (hack/kind/mcp-e2e.sh): it starts the command after --, initializes, and lists the tools (-list), reads a resource (-read URI), or calls a tool (-tool NAME -args JSON), printing the result as JSON. |
|
releases
command
Command releases prints the releases an upgrade test starts from, worked out from the repository's tags (#390): the latest patch of each of the -minors newest minor versions, newest first, without the leading v.
|
Command releases prints the releases an upgrade test starts from, worked out from the repository's tags (#390): the latest patch of each of the -minors newest minor versions, newest first, without the leading v. |
|
versionsbump
command
Command versionsbump bumps the versions under test in hack/versions.env (#393) to their latest upstream releases: each entry after a "# source:" comment, from
|
Command versionsbump bumps the versions under test in hack/versions.env (#393) to their latest upstream releases: each entry after a "# source:" comment, from |
|
wsecho
command
Command wsecho is a WebSocket echo server and a client for it.
|
Command wsecho is a WebSocket echo server and a client for it. |
|
internal
|
|
|
buildinfo
Package buildinfo reports what a binary was built from, for the commands' version subcommand and --version flag.
|
Package buildinfo reports what a binary was built from, for the commands' version subcommand and --version flag. |
|
memlimit
Package memlimit sets the Go runtime's soft memory limit from the container's memory limit, for the operator and the engine.
|
Package memlimit sets the Go runtime's soft memory limit from the container's memory limit, for the operator and the engine. |
|
operator
|
|
|
api/v1alpha1
Package v1alpha1 holds the Inkwall Kubernetes API (group waf.inkwall.dev): the cluster configuration, the policies app teams attach to their routes, and the rule sets those policies use.
|
Package v1alpha1 holds the Inkwall Kubernetes API (group waf.inkwall.dev): the cluster configuration, the policies app teams attach to their routes, and the rule sets those policies use. |
|
bundle
Package bundle builds, signs and stores policy bundles (0004 §4.6).
|
Package bundle builds, signs and stores policy bundles (0004 §4.6). |
|
config/rbac
Package rbac holds the operator's RBAC, generated from its kubebuilder:rbac markers (make generate).
|
Package rbac holds the operator's RBAC, generated from its kubebuilder:rbac markers (make generate). |
|
enginereport
Package enginereport reads the engines the operator's replicas report in their inkwall-engines-<pod> ConfigMaps (0004 §4.8): which engines are connected, the bundle each runs and the one it rejected.
|
Package enginereport reads the engines the operator's replicas report in their inkwall-engines-<pod> ConfigMaps (0004 §4.8): which engines are connected, the bundle each runs and the one it rejected. |
|
integrations
Package integrations knows the proxies Inkwall wires into (0004 §4.2): how to recognise each one's IngressClass or GatewayClass and pods, and which engine adapter its pods use: Traefik, Envoy Gateway, Istio and the HAProxy Kubernetes Ingress Controller.
|
Package integrations knows the proxies Inkwall wires into (0004 §4.2): how to recognise each one's IngressClass or GatewayClass and pods, and which engine adapter its pods use: Traefik, Envoy Gateway, Istio and the HAProxy Kubernetes Ingress Controller. |
|
internal/access
Package access tells which integrations the operator may wire (0004 §7).
|
Package access tells which integrations the operator may wire (0004 §7). |
|
internal/controller
Package controller holds the operator's reconcilers.
|
Package controller holds the operator's reconcilers. |
|
internal/controlplane
Package controlplane connects the operator to the optional control plane (0002 §3.4, §5.3, §7.5; api/controlplane/v1).
|
Package controlplane connects the operator to the optional control plane (0002 §3.4, §5.3, §7.5; api/controlplane/v1). |
|
internal/conversion
Package conversion holds what the WAFPolicy conversion webhook needs when v1 is served next to v1alpha1 (#708, #64).
|
Package conversion holds what the WAFPolicy conversion webhook needs when v1 is served next to v1alpha1 (#708, #64). |
|
internal/crdwatch
Package crdwatch watches a kind whose CRD may be missing, such as Traefik's IngressRoute: a controller can't start with a watch on a kind the API server doesn't serve, so the watch is added once it does.
|
Package crdwatch watches a kind whose CRD may be missing, such as Traefik's IngressRoute: a controller can't start with a watch on a kind the API server doesn't serve, so the watch is added once it does. |
|
internal/discovery
Package discovery finds the cluster's proxies (0004 §4.1): the controllers its IngressClasses and GatewayClasses name, and how far Inkwall wires each, in InkwallConfig.status.proxies.
|
Package discovery finds the cluster's proxies (0004 §4.1): the controllers its IngressClasses and GatewayClasses name, and how far Inkwall wires each, in InkwallConfig.status.proxies. |
|
internal/distribution
Package distribution serves bundles to the engines (0004 §4.7): every operator replica runs the BundleService, pushes each new bundle to its connected engines, and records what they applied.
|
Package distribution serves bundles to the engines (0004 §4.7): every operator replica runs the BundleService, pushes each new bundle to its connected engines, and records what they applied. |
|
internal/export
Package export sends the engines' security events to SIEMs and log pipelines, from every operator replica, without the control plane (design 0010): each replica exports the events of the engines connected to it, from one bounded buffer with a cursor per sink, as OTLP logs (gRPC or HTTP) or JSON over HTTP.
|
Package export sends the engines' security events to SIEMs and log pipelines, from every operator replica, without the control plane (design 0010): each replica exports the events of the engines connected to it, from one bounded buffer with a cursor per sink, as OTLP logs (gRPC or HTTP) or JSON over HTTP. |
|
internal/geo
Package geo compiles a country database (MMDB) into the country table engines enforce geo blocking with (design 0011 §4.2, §6), and stores the table in its Secrets (§4.4).
|
Package geo compiles a country database (MMDB) into the country table engines enforce geo blocking with (design 0011 §4.2, §6), and stores the table in its Secrets (§4.4). |
|
internal/geo/mmdbtest
Package mmdbtest writes small MaxMind DB files for tests (design 0011 §10): a search tree of 24-bit records and a data section of country records, per the MaxMind DB spec (https://maxmind.github.io/MaxMind-DB/).
|
Package mmdbtest writes small MaxMind DB files for tests (design 0011 §10): a search tree of 24-bit records and a data section of country records, per the MaxMind DB spec (https://maxmind.github.io/MaxMind-DB/). |
|
internal/geo/mmdbtest/mmdbgen
command
Command mmdbgen writes a small country database for the e2e tests (design 0011 §10): an IPv6 MMDB with MaxMind's IPv4 aliases, mapping the prefixes it is given to their countries.
|
Command mmdbgen writes a small country database for the e2e tests (design 0011 §10): an IPv6 MMDB with MaxMind's IPv4 aliases, mapping the prefixes it is given to their countries. |
|
internal/injection
Package injection gets the engine into a proxy's pods (0004 §4.3): a Pod webhook adds it as a native sidecar, and a controller provides what the sidecar needs in the pod's namespace (the trust ConfigMap) and in the operator's (read access to the bundle Secret).
|
Package injection gets the engine into a proxy's pods (0004 §4.3): a Pod webhook adds it as a native sidecar, and a controller provides what the sidecar needs in the pod's namespace (the trust ConfigMap) and in the operator's (read access to the bundle Secret). |
|
internal/podcache
Package podcache caches the proxy pods for the operator (0004 §4.3): one informer per integration's pod selector, read as one cache.
|
Package podcache caches the proxy pods for the operator (0004 §4.3): one informer per integration's pod selector, read as one cache. |
|
internal/policystatus
Package policystatus turns the WAFPolicies' conditions into metrics and Kubernetes Events (#378): the inkwall_operator_policies gauge counts the policies by condition, status and reason, and a change of a policy's Ready, Programmed or Enforced condition records an Event on it, so `kubectl describe wafpolicy` and event-based tooling see it.
|
Package policystatus turns the WAFPolicies' conditions into metrics and Kubernetes Events (#378): the inkwall_operator_policies gauge counts the policies by condition, status and reason, and a change of a policy's Ready, Programmed or Enforced condition records an Event on it, so `kubectl describe wafpolicy` and event-based tooling see it. |
|
internal/rollout
Package rollout replaces proxy pods that need a new engine, when the InkwallConfig asks for it (spec.engine.rollout: Automatic, #376): pods the Pod webhook would inject that run without the engine (started before Inkwall) or with an injected engine of another image than the one configured (an engine in the pod's own spec is the user's).
|
Package rollout replaces proxy pods that need a new engine, when the InkwallConfig asks for it (spec.engine.rollout: Automatic, #376): pods the Pod webhook would inject that run without the engine (started before Inkwall) or with an injected engine of another image than the one configured (an engine in the pod's own spec is the user's). |
|
internal/wiring
Package wiring sends a proxy's protected routes to the engine (0004 §4.4), through one Integration per proxy.
|
Package wiring sends a proxy's protected routes to the engine (0004 §4.4), through one Integration per proxy. |
|
manager
Package manager assembles the operator: the controllers and webhooks, in one controller-runtime manager.
|
Package manager assembles the operator: the controllers and webhooks, in one controller-runtime manager. |
|
reasons
Package reasons says, for every condition reason the operator sets and every reason a security event gives, what it means and what to do.
|
Package reasons says, for every condition reason the operator sets and every reason a security event gives, what it means and what to do. |
|
resolver
Package resolver turns the cluster's WAF objects into bundle policies (0004 §4.5): each WAFPolicy's targets are expanded into concrete host / path matches, its rule sets resolved, and conflicts between policies settled.
|
Package resolver turns the cluster's WAF objects into bundle policies (0004 §4.5): each WAFPolicy's targets are expanded into concrete host / path matches, its rule sets resolved, and conflicts between policies settled. |
|
test/eventsink
command
Command eventsink is a small HTTP intake for exported security events, for the export's end-to-end test on kind (hack/kind/export-e2e.sh), in the style of stubcontrolplane: it records each POST's events (JSON Lines or a JSON array, gzip or not) with the headers the test checks, and can be told how to answer.
|
Command eventsink is a small HTTP intake for exported security events, for the export's end-to-end test on kind (hack/kind/export-e2e.sh), in the style of stubcontrolplane: it records each POST's events (JSON Lines or a JSON array, gzip or not) with the headers the test checks, and can be told how to answer. |
|
test/fakecontrolplane
Package fakecontrolplane is a control plane that implements api/controlplane/v1 for tests: enrollment with one-time tokens, client certificates from its own CA, and the Connect stream.
|
Package fakecontrolplane is a control plane that implements api/controlplane/v1 for tests: enrollment with one-time tokens, client certificates from its own CA, and the Connect stream. |
|
test/fakeengine
Package fakeengine is a lightweight engine for operator tests (0004 §9): it speaks the bundle protocol, verifies each bundle's signature and acknowledges it, without inspecting any traffic.
|
Package fakeengine is a lightweight engine for operator tests (0004 §9): it speaks the bundle protocol, verifies each bundle's signature and acknowledges it, without inspecting any traffic. |
|
test/stubcontrolplane
command
Command stubcontrolplane runs the fake control plane (fakecontrolplane) as a server, for the end-to-end test on kind: it implements api/controlplane/v1 with its own CA, so this repository's tests never need a real control plane.
|
Command stubcontrolplane runs the fake control plane (fakecontrolplane) as a server, for the end-to-end test on kind: it implements api/controlplane/v1 with its own CA, so this repository's tests never need a real control plane. |
|
test/testenv
Package testenv starts a local API server (envtest) with the Inkwall CRDs installed, for operator tests.
|
Package testenv starts a local API server (envtest) with the Inkwall CRDs installed, for operator tests. |
|
webhook
Package webhook holds the operator's admission webhooks.
|
Package webhook holds the operator's admission webhooks. |
|
pkg
|
|
|
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. |
|
adapters/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. |
|
adapters/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). |
|
adapters/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. |
|
adapters/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. |
|
adapters/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. |
|
adapters/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). |
|
agent
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. |
|
bundlekey
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). |
|
bundlesecret
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). |
|
clientip
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. |
|
events
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. |
|
geo
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). |
|
grpcschema
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. |
|
grpcschema/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. |
|
grpcschema/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. |
|
grpcschema/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. |
|
grpcwire
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. |
|
haproxyprobe
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. |
|
iplist
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). |
|
llm
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. |
|
pipeline
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). |
|
policy
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. |
|
ratelimit
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. |
|
request
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. |
|
router
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). |
|
rules
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. |
|
rules/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. |
|
streams
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. |
|
telemetry
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). |
|
websocket
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). |
Click to show internal directories.
Click to hide internal directories.