Skip to content

Log client IP on signup/activation and document duplicate-account lookup - #591

Merged
bpepple merged 2 commits into
masterfrom
log-user-ip-address
Aug 7, 2026
Merged

Log client IP on signup/activation and document duplicate-account lookup#591
bpepple merged 2 commits into
masterfrom
log-user-ip-address

Conversation

@bpepple

@bpepple bpepple commented Aug 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Log the client IP (via the existing _client_ip helper) alongside the username on account signup and activation, matching the (user=, ip=) format already used by the API auth logs in api/authentication.py.
  • Document journalctl commands in DEPLOYMENT.md for admins to find IPs behind multiple usernames, cross-referencing signup, activation, and authenticated API request log lines.

Motivation

Gives admins a way to spot duplicate accounts by correlating signup/activation events with API auth activity from the same IP.

bpepple added 2 commits August 7, 2026 16:14
Matches the (user=, ip=) format used in api/authentication.py so log entries are easy to grep for users signing up multiple accounts from the same IP.
Cross-references signup, activation, and API auth log lines (all sharing the (user=, ip=) format) so admins can spot one IP behind multiple usernames.
@bpepple bpepple self-assigned this Aug 7, 2026
@bpepple bpepple added the chore Miscellaneous drudgery label Aug 7, 2026
@bpepple
bpepple merged commit 8bb99a7 into master Aug 7, 2026
2 checks passed
@bpepple
bpepple deleted the log-user-ip-address branch August 7, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Miscellaneous drudgery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant