Documentation
¶
Overview ¶
Package sessionlabel provides a framework-neutral trusted edge adapter for pseudonymising an application session before nginx writes access logs.
Index ¶
Constants ¶
View Source
const ( HeaderName = "X-Isutools-Session" EnvSourceCookie = "ISUTOOLS_SESSION_COOKIE" EnvHMACKey = "ISUTOOLS_SESSION_HMAC_KEY" MinKeyBytes = 32 LabelBytes = 18 MaxSourceBytes = 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is immutable and safe for concurrent requests.
func New ¶
New validates the source cookie and HMAC key. Invalid configuration is a fail-closed adapter that strips spoofed labels but emits no replacement.
Click to show internal directories.
Click to hide internal directories.