When nph-zms cannot authenticate a request it logs a Warning with the
request's REQUEST_URI and HTTP_REFERER. The URI carries the credentials
the client sent: pass=/password= in clear (the plain relay, or any
client that streams with user and password), the full auth= hash, whose
first 8 characters the same line is careful to truncate, or a token=
JWT. Warnings reach the Logs table at the default database log level,
where every user with System=View can read them, and a JWT or an auth
hash still valid from another address or until its TTL lets the reader
stream, or use the API, as that user.
Log the uri and referer through url_for_log(), which drops the query
string, and add the monitor and event ids, which the query string was
the only place to find.
The same file's debug lines logged the whole environment (QUERY_STRING,
REQUEST_URI, HTTP_REFERER, the session cookie), the query string, the
JWT and the password at level 1. Log the environment without those
values (URLs through url_for_log()), drop the query string line, which
the "zms request" line already summarises, log the JWT as a fingerprint
(zm::crypto::LogFingerprint()), and say only that a password was given.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>