Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
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). |
|
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. |
|
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). |
|
controller
Package controller holds the operator's reconcilers.
|
Package controller holds the operator's reconcilers. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Package webhook holds the operator's admission webhooks.
|
Package webhook holds the operator's admission webhooks. |
Click to show internal directories.
Click to hide internal directories.