-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow admins to view user IP addresses in the admin panel users table and users page #1009
base: main
Are you sure you want to change the base?
Conversation
I thought that we fixed the trusted proxy problem a long time ago :O |
not sure how since it was never configured, lol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few things that I would like to see changed:
- I would prefer if you'd move the trusted proxy stuff in its own PR
- Since we are already changing the db schema to have the IP-addresses of users we should create a new table for IP addresses and one that makes the references between users and IPs. That would have a few benefits:
- accounts for multiple devices
- The most important IP imo is the one used to register an account. At least that is the one I would be interested in for spam detection.
- since this is personal information I think we should create a scheduled job to look for IP addresses that have been used over a year ago and deleting them
- we can use the same table for IP-blocks in the future
- easier to lookup all users with a specific IP
I think this would be a really good addition for admins to prevent spam right upon account creation
Co-authored-by: BentiGorlich <[email protected]>
Co-authored-by: BentiGorlich <[email protected]>
Should we follow-up this PR? |
This PR is stale because it has been open 40 days with no activity. |
Rebased.. |
Fixed PHP cs fixer. |
Introduces admin ability to view local users IP addresses as resolved from
src/Service/IpResolver.php
:A user's IP address is updated on:
I also added local user email and IP to the user's page for admins:
Other things:
I noticed the GitHub authenticator was missing the IP being set in the user dto which will cause the registration limiter to be ineffective, so I added it in to be consistent with the other authentication mechanisms.
Closes: #833