mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23570
Author: @micheal000010000-hub
Created: 4/10/2026
Status: ❌ Closed
Base:
dev← Head:feat/audit-get-requests-23461📝 Commits (1)
eee2922feat: allow optional auditing of GET requests via env flag (#23461)📊 Changes
2 files changed (+14 additions, -3 deletions)
View changed files
📝
.env.example(+4 -1)📝
backend/open_webui/utils/audit.py(+10 -2)📄 Description
Pull Request Checklist
devbranch..env.example.feat.Description
This PR adds support for auditing
GETrequests via an environment variable and fixes an issue where authentication endpoints were being skipped when usingGET.Previously, requests with method
GETwere skipped before reaching the auth endpoint logic, causing them to never be logged.Changelog Entry
Description
GETrequests and fixes incorrect skipping of auth endpoints.Added
AUDIT_LOG_GET_REQUESTSto control auditing ofGETrequests.Changed
_should_skip_auditinglogic to conditionally includeGETrequests.Fixed
/api/v1/auths/*) were not logged when accessed viaGET.Additional Information
AUDIT_LOG_GET_REQUESTS=false(default): GET requests are skipped.AUDIT_LOG_GET_REQUESTS=true: GET requests are included in audit logs.Testing
Verified authenticated API requests using
/api/v1/modelsConfirmed no regression in existing POST/PUT/PATCH/DELETE behavior
Verified logic correctness by ensuring request flow works as expected
Tested both configurations:
AUDIT_LOG_GET_REQUESTS=false→ GET requests skippedAUDIT_LOG_GET_REQUESTS=true→ GET requests processedScreenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.