Documentation
¶
Overview ¶
Package router decides, before any rule runs, how much of a request needs inspection (pipeline tier T0). Skipping is how most traffic avoids the cost of rule evaluation, so matching is deliberately conservative: a request is only skipped when its path is unambiguous.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnambiguousPath ¶ added in v0.2.3
UnambiguousPath returns the request path if every component that sees it (Inkwall, the proxy, the application) would read it the same way. Only plain ASCII path characters are accepted (see plainPath); percent-encoding, non-ASCII or invalid UTF-8 bytes (fullwidth or overlong dots), backslashes, semicolons, repeated slashes and dot segments are rejected, because applications differ in how they interpret them, and that difference is how a skip rule becomes a bypass. Path exclusions (pkg/rules/coraza) use it for the same reason.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table maps paths to decisions. The zero value inspects everything. It is safe for concurrent use once built.