Skip to main content

Module auth

Module auth 

Source
Expand description

Bearer-token authentication and the rules for when the server may run without it.

Structs§

TokenAuth
Rejects requests whose authorization header doesn’t carry the expected bearer token.

Functions§

check_exposure
Refuses configurations that would expose logs to the network without a token, and returns a warning for ones that are allowed but risky.
generate_token
A random 256-bit token, hex encoded.