pub fn resolve_startup_auth(
host: &str,
has_api_key: bool,
) -> Result<AuthMode, InsecureBindError>Expand description
Resolve the startup authentication posture for an HTTP bind.
- Key set →
AuthMode::Enforcedregardless of host. - No key + loopback host →
AuthMode::LoopbackDev(caller should warn). - No key + non-loopback host →
InsecureBindError; the server must not start.