mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 08:06:16 +00:00
feat: record client IP and user agent on audit entries (#12673)
* feat: record client IP and user agent on audit entries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: trust the compose network's proxy for the audit client IP Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: treat undecodable forwarded-for entries as a stop in the client IP walk Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the legacy audit view in step with the new audit columns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: add the audit origin columns to audit_partitioned only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * revert: keep the legacy audit table and view in step with the new columns Older servers read the legacy audit table in a SELECT * UNION ALL with audit_partitioned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 8604f6779f08ff2208e85628503877edce8e2343 This commit updates the EE repository reference after PR #1009 was merged in windmill-ee-private. Previous ee-repo-ref: 8c44649a51062cf4f056792c0e2da09b7b7354b5 New ee-repo-ref: 8604f6779f08ff2208e85628503877edce8e2343 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
windmill-internal-app[bot]
parent
9a7ab54746
commit
c689d74505
@@ -344,7 +344,8 @@ async fn run_backfill(
|
||||
row_to_json(r)::text AS "line!"
|
||||
FROM (
|
||||
SELECT workspace_id, id, timestamp, username, operation,
|
||||
action_kind::text AS action_kind, resource, parameters, email, span
|
||||
action_kind::text AS action_kind, resource, parameters, email, span,
|
||||
client_ip, user_agent
|
||||
FROM audit_partitioned
|
||||
WHERE timestamp >= $1 AND timestamp < $2
|
||||
AND (timestamp, id) > ($3, $4)
|
||||
|
||||
Reference in New Issue
Block a user