Documentation
¶
Overview ¶
Package proxy implements Inkwall's standalone mode: an HTTP reverse proxy that inspects each request and forwards allowed ones to an upstream.
It is used in front of services without a supported ingress, and it is the reference adapter: every other adapter must reach the same verdict for the same request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Upstream is the service that allowed requests are forwarded to.
Upstream *url.URL
// MaxBodyBytes is how much of a request body is inspected. The rest is
// streamed to the upstream uninspected. Zero disables body inspection.
MaxBodyBytes int64
// ClientIP resolves the client address behind trusted proxies. Nil
// trusts no proxies.
ClientIP *clientip.Resolver
// Logger receives one security event per denied or logged request.
// Nil uses slog.Default().
Logger *slog.Logger
}
Config configures a Handler.