Expand description
Session token generation and validation.
Each proxy session gets a unique cryptographic token. The child process
receives it via NONO_PROXY_TOKEN env var and must include it in all
requests to the proxy. This prevents other local processes from using
the proxy.
Functionsยง
- constant_
time_ eq - Constant-time comparison of two token strings.
- generate_
session_ token - Generate a fresh session token.
- validate_
proxy_ auth - Validate a
Proxy-Authorizationheader against the session token.