Files
open-webui/backend/open_webui/utils
Classic298 3ef0d15433 fix: audit log shows passwords that contain a double quote (#31659)
* fix: audit log shows passwords that contain a double quote

With AUDIT_LOG_LEVEL set to REQUEST or REQUEST_RESPONSE, a password containing a double quote was only masked up to that quote, so a new password like Q"secret was logged as "********"secret. A request with whitespace before the colon, such as "new_password" : "secret", was not masked at all. Any field whose name ends in "password" is now masked through its closing quote in both cases.

* fix: audit log records passwords sent back in responses

With AUDIT_LOG_LEVEL set to REQUEST_RESPONSE, fields whose name ends in "password" were masked in request bodies, but response bodies were logged unmasked. Saving or opening the LDAP server settings therefore wrote the Application DN Password to the audit log in plain text, because the settings come back in the response, and the Jupyter passwords in the code execution settings leaked the same way. Responses now get the same masking as requests.
2026-10-01 07:21:58 +04:00
..
2026-09-21 11:35:30 -04:00
2026-10-01 03:31:20 +04:00
2026-08-24 18:29:36 -04:00
2026-09-19 17:54:09 -04:00
2026-03-17 17:58:01 -05:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-08-23 13:36:53 -04:00
2026-10-01 03:31:20 +04:00
2026-09-27 23:29:38 +04:00
2026-10-01 03:31:20 +04:00
2026-07-26 23:09:22 -04:00
2026-10-01 03:31:20 +04:00
2026-10-01 03:31:20 +04:00
2026-10-01 03:31:20 +04:00
2026-08-17 00:57:57 -07:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-09-21 11:35:30 -04:00
2026-06-19 00:16:06 +02:00
2026-10-01 03:31:20 +04:00
2026-10-01 03:31:20 +04:00
2026-09-15 22:47:03 -04:00
2026-07-31 17:41:14 -04:00