inkwall

module
v0.5.0-rc.1 Latest Latest
Warning

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

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

README

Inkwall

OpenSSF Scorecard

A Kubernetes-native web application firewall. You install one operator; it injects an inspection engine next to your ingress controller and enforces the WAFPolicy objects you attach to your routes. The engine runs OWASP Coraza with the Core Rule Set (CRS).

Status: early (latest release). Inkwall works with Traefik and its Ingress, IngressRoute and Gateway API HTTPRoute routes, with Envoy Gateway and Istio and their HTTPRoute routes, with Istio's VirtualService routes, and as a standalone reverse proxy in front of anything else. The API is v1alpha1 and will change. See Limits and the roadmap.

New to Inkwall? Start with the quickstart: a local kind cluster, the released chart, Traefik and a demo app, from nothing to a blocked attack in five minutes. examples/ has the same app behind Traefik, Envoy Gateway and Istio. The docs index lists every guide, reference and design doc.

Contents

How it works

  1. The operator, inkwall-operator, injects the engine, inkwall-engine, into Traefik's pods as a sidecar. It attaches a ForwardAuth Middleware to every Ingress, IngressRoute or Traefik-served HTTPRoute a policy targets. With Envoy Gateway, it adds the engine to the Envoy pods through the Gateway's EnvoyProxy, and gives every HTTPRoute a policy targets an EnvoyExtensionPolicy whose ext_proc filter calls the engine. It sends signed policy bundles to every engine. With Istio, it adds the engine to a Gateway's pods through the ConfigMap the Gateway names, or injects it into its ingress gateway's pods (for VirtualService targets), and an EnvoyFilter turns ext_proc on for the protected routes (Istio).
  2. The engine inspects each request with the CRS and answers allow or deny. When the operator is down, it keeps enforcing its last bundle.
  3. Each policy's status shows how far it got: Accepted, then Programmed (its routes are wired), then Enforced (every engine runs it), then Ready. The InkwallConfig named default, if you create one, lists in status.proxies the proxy controllers of the cluster's IngressClasses and GatewayClasses, and whether Inkwall wires their routes (Full, Partial or Unsupported).

Install

You need Kubernetes 1.29 or later and Helm 3 or 4. CI tests on Kubernetes 1.34 and on kind's newest (1.37).

<version> is a release without its v, the latest one unless you have a reason to pick another:

helm install inkwall oci://ghcr.io/inkwall-dev/charts/inkwall --version <version> \
  --namespace inkwall-system --create-namespace
kubectl -n inkwall-system rollout status deployment/inkwall-operator

Then install Traefik, or restart it: only pods created after the operator get the engine.

kubectl -n <traefik namespace> rollout restart deployment/<traefik>

For HTTPRoute targets served by Traefik, install the Gateway API CRDs and turn on Traefik's Gateway API provider (providers.kubernetesGateway.enabled=true in its chart).

Envoy Gateway needs no restart: Envoy Gateway rolls the Envoy pods of a Gateway when it gets its first protected route. Turn on its Backend API, which the engine's socket needs:

helm upgrade --install eg oci://docker.io/envoyproxy/gateway-helm --version v1.9.3 \
  --namespace envoy-gateway-system --create-namespace \
  --set config.envoyGateway.extensionApis.enableBackend=true

Istio (1.28 or later) needs no restart either: Istio rolls a Gateway's pods when it gets its first protected route. Its Gateways' namespaces must be proxy namespaces (istio-ingress and istio-system by default): see Istio. For VirtualService targets, restart Istio's ingress gateway (kubectl -n <namespace> rollout restart deployment/istio-ingressgateway) once Inkwall is installed, as for Traefik.

The chart README lists the chart's values and shows how to uninstall. The guides cover upgrading, GitOps with Argo CD and Flux, rotating the signing key, connecting to a control plane and the client IP behind a load balancer.

The images, the chart and the checksums are signed keyless with cosign v3: verify them with cosign v3, as cosign v2 reports "no signatures found". To verify an image:

cosign verify ghcr.io/inkwall-dev/inkwall-engine:<version> \
  --certificate-identity-regexp '^https://github.com/inkwall-dev/inkwall/\.github/workflows/release\.yaml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

The binaries (inkwall-engine, inkwall-operator, inkwallctl) are on the releases page. Each one's version subcommand (or --version) prints the release, the commit and the Go version it was built with:

$ inkwallctl version
inkwallctl 0.4.1
commit: 0123456789abcdef0123456789abcdef01234567
go: go1.27.3 linux/amd64

Protect a route

To protect a route, create a WAFPolicy that targets it:

apiVersion: waf.inkwall.dev/v1alpha1
kind: WAFPolicy
metadata:
  name: web
  namespace: shop
spec:
  targetRefs: [{kind: Ingress, name: web}]   # an Ingress Traefik serves
  mode: Block                                # the default, Detect, logs but never blocks

For an HTTPRoute, served by Envoy Gateway, Istio or Traefik, target it with its group, and optionally one rule: {group: gateway.networking.k8s.io, kind: HTTPRoute, name: web, sectionName: api}. One policy can target routes of both proxies. Traefik wires an HTTPRoute only when every Gateway it is attached to is Traefik's: another proxy fails the rules that refer to Traefik's Middleware, so a route also attached to one is WiringFailed. Give each proxy its own HTTPRoute.

Once the policy is Ready, every engine enforces it. Send an attack to check:

$ kubectl get wafpolicy -n shop
NAME   MODE    READY   REASON   BUNDLE   AGE
web    Block   True    Ready    2        3s
$ curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: shop.example.com' "http://$TRAEFIK/?id=1%27%20OR%20%271%27%3D%271"
403

REASON says why a policy isn't Ready. inkwallctl status checks the whole cluster: the proxies, the policies that aren't Ready, and the engines, with what to do (Troubleshooting).

Responses. Add responses: {inspect: true} to a policy to inspect what the app answers too, for data leaks (SQL errors, stack traces, directory listings: the Core Rule Set's RESPONSE-95x rules). In Block mode a response that leaks is replaced with 403. Through Envoy Gateway and Istio: Traefik's ForwardAuth and HAProxy never send responses, so on their routes such a policy is Programmed=False (ResponsesNotInspected) while its requests are still inspected (design).

Start in Detect mode, tune false positives on the policy (exclusions, narrowed with when to a path and an argument, argument name, cookie or header, skip paths, ruleSets[].paranoiaLevel), then switch to Block. Extra rules come from WAFRuleSet and ClusterWAFRuleSet objects: built-in, SecLang or a ConfigMap. operator/config/samples has one object of each kind.

IP lists. A WAFIPList lists client addresses, and a policy denies or allows them:

apiVersion: waf.inkwall.dev/v1alpha1
kind: WAFIPList
metadata: {name: abusers, namespace: shop}
spec:
  entries:
  - {cidr: 203.0.113.0/24, description: scraper}
---
# in the WAFPolicy's spec:
  ipLists: {deny: [abusers], allow: [monitors]}

A denied client gets 403 before any rule (logged in Detect mode); an allowed one isn't inspected, and a deny list wins over an allow list. Lists match the client IP the engine resolves: behind a load balancer, set that up first (client IP), or every client is the load balancer. inkwallctl test --client-ip 203.0.113.9 checks them offline (engines 0.5.0 or later).

CRS settings. At paranoia level 1 the CRS denies PUT, PATCH and DELETE, and request content types outside its list. Set the CRS's own settings on the CRS rule set's binding (engines 0.5.0 or later):

  ruleSets:
  - ref: {kind: ClusterWAFRuleSet, name: owasp-crs-v4}
    paranoiaLevel: 1
    crs:
      allowedMethods: [GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS]   # replaces the CRS's list
      allowedRequestContentTypes: [application/json, application/x-www-form-urlencoded, multipart/form-data]
      detectionParanoiaLevel: 2      # level 2 rules log (action log) but never block
      outboundAnomalyThreshold: 4    # with responses.inspect: the score that blocks a response

Both lists replace the CRS's defaults: list every method and media type (type/subtype, without parameters) the application takes. To test policies before they reach the cluster, see testing policies offline. Coming from ingress-nginx with ModSecurity? inkwallctl migrate ingress-nginx converts its annotations into policies: see migrating from ingress-nginx.

To stop protecting the route, delete the policy or remove the route from its targetRefs: the operator removes its Middleware from the route, and Traefik serves it uninspected. For an HTTPRoute, it deletes the route's EnvoyExtensionPolicy (Envoy Gateway) or removes it from the Gateway's EnvoyFilter (Istio), and takes the engine out of a Gateway with no protected route left, leaving its EnvoyProxy or ConfigMap as it was.

Safe by default. In block mode, a request that can't be inspected in time is rejected (503), so padding a request past the deadline doesn't get an attack through; detect mode never blocks. If Traefik can't reach the engine at all (crashed, restarting or hung), Traefik answers 500 in both modes: see when the engine is down. Envoy, through Envoy Gateway, answers 500 too (through Istio, 503, or 504 for a hung engine), unless every policy on the route fails open: then it lets the request through. On a route whose policies are all in detect mode (and fail open), Envoy doesn't wait for the engine at all: it sends it a copy of the request and forwards it. Every engine verifies the signature of each bundle. While a policy blocks, Traefik pods can't start without the engine: see when the operator is down.

Without Kubernetes

The engine also runs as a standalone reverse proxy in front of any HTTP service:

$ inkwall-engine proxy --upstream http://localhost:3000 --mode block
$ curl -s -o /dev/null -w '%{http_code}\n' 'localhost:8480/?id=1%27%20OR%20%271%27%3D%271'
403

See running the engine without Kubernetes for its flags and other modes, and testing policies offline for inkwallctl test. To protect an Envoy you configure yourself, in or out of Kubernetes, see protecting raw Envoy.

Limits

  • Proxies: Traefik, Envoy Gateway (v1.9; not with mergeGateways or Envoy as a DaemonSet), Istio (1.28 or later; its Gateway API and its ingress gateways, not mesh sidecars) and the HAProxy Kubernetes Ingress Controller (3.1 or later; with the operator), wired by the operator; raw Envoy (1.33 or later) that you configure with the engine's ext_proc adapter (protecting raw Envoy); any other HAProxy (3.1 or later) that you configure with the engine's SPOE agent (protecting HAProxy); and the standalone proxy. Caddy is designed, not built. ingress-nginx is retired upstream, so it gets no integration: inkwallctl migrate ingress-nginx moves its ModSecurity settings to a supported proxy.
  • Targets: Ingress and Traefik IngressRoute (match rules that join Host, Path and PathPrefix with &&) through Traefik; Gateway API HTTPRoute through Envoy Gateway, Istio or Traefik's Gateway API provider (Exact and PathPrefix paths, methods; no header or query matches); Istio VirtualService through Istio's ingress gateways (exact and prefix uris, exact methods; named http routes). Other Gateway API controllers' HTTPRoutes are resolved into the bundle, but not wired.
  • One cluster per operator. The operator can connect to an optional control plane, which isn't in this repository: in GitOps mode it sends it a read-only copy of your policies, in Managed mode it writes the policies the control plane sends, and in both it forwards the engines' security events. Standalone, the default, connects to nothing. See connecting to a control plane.
  • A cluster's policies must fit in a bundle of 7,200 KiB compressed. Past 900 KiB, the bundle is split over several Secrets.
  • Responses are inspected only through Envoy Gateway, Istio and raw Envoy (responses), never through Traefik's ForwardAuth or HAProxy; a body over responses.maxBytes (64 KiB by default) has its prefix inspected, and streamed responses (Server-Sent Events, gRPC) pass with their headers inspected only.
  • gRPC: a call's path and metadata (headers) are inspected; the text in its protobuf messages only with body.grpcMessages: Inspect, read without a schema. gRPC with another codec is inspected as other requests, and denied by the Core Rule Set's content type rule. Client streams longer than the body limit are cut there, and bidirectional streaming calls stall while the proxy holds the body. See gRPC.
  • Behind a load balancer, the engine sees the client's IP only with the PROXY protocol on Traefik's entry points or with externalTrafficPolicy: Local: see client IP.

Roadmap

Tracked on the project board and in milestones:

  • v0.2.0 (shipped): signing key rotation, offline tests of WAFPolicy objects, IngressRoute targets, unwiring with a finalizer and the operator side of the optional control plane, first shipped in 0.1.1; bundles split into chunk Secrets, operator memory that no longer grows with engines, the ForwardAuth answer capped, user guides, and fuzzing, scale and upgrade tests.
  • v0.3.0 (shipped): Gateway API HTTPRoute targets with Traefik and Envoy Gateway (through ext_proc), proxy discovery, per-policy request counts sent to the control plane, policy statuses written only when they change, and inkwallctl migrate ingress-nginx, which turns ingress-nginx ModSecurity annotations into policies.
  • v0.4.0 (shipped): Istio (the HTTPRoute routes of its Gateways and its VirtualService routes), HAProxy (an SPOE agent, and the HAProxy Kubernetes Ingress Controller wired by the operator) and raw Envoy; response inspection through Envoy Gateway; the text in gRPC messages and gRPC-shaped denials; WebSocket handshake rules, and messages inspected by the engine's own proxy; and status that says when an engine is too old for a policy's fields (EnginesOutdated).
  • v1.0.0 (next): a stable API (out of v1alpha1) with an upgrade path.
  • Then more proxies: Caddy. Not ingress-nginx, which is retired upstream: its users migrate with inkwallctl migrate ingress-nginx.

Development

make check        # lint, unit tests, vulnerability scan, docs checks (minutes)
make check-all    # every job CI runs on a pull request (hours; Docker and kind)
make crs-test     # OWASP CRS regression suite through each adapter
make kind-up      # kind cluster with a demo behind the engine and Traefik
make kind-e2e     # operator end to end on kind, every proxy in turn (CI: one job per proxy)
make kind-e2e-traefik  # one proxy: also -raw-envoy, -envoy-gateway, -istio, -haproxy

make help lists every target; CONTRIBUTING.md has the test tiers, what each needs, and when CI runs it. The design docs are in docs/design; start with the component map.

Contributing, security, license

Read CONTRIBUTING.md (commit format, branches, releases) and follow the Code of Conduct. Report vulnerabilities privately, as SECURITY.md describes. Inkwall is licensed under the Apache License 2.0.

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).
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.
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.
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/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/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.
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/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/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.
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).
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.
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.
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).

Jump to

Keyboard shortcuts

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