Store users IPs and ability to ban IPs
I have a chat where sometimes trolls come to mess with users. It would be nice to store user IPs and the ability to ban users from same IP.
It also be nice to have the option to make a chat public for non registered users ("readonly mode") Yes I know there is an open issue #604 ,but just trying to bump it :)
Thanks in advance.
Regarding this.. What about the idea to be able to "attach" a md5 or something similar of the IP beside the user posts.. Makes it possible to identify trolls posting from multiple accounts..
Lunitic IP: E03AE33EE8417CE2C9785274217636E0
Preferable some other scheme ...
Maybe we could show the real IPs on of connected users on the admin panel? And show last 8 characters of the hashed IP on the user profile tap.
@engelgabriel For me it would be super useful to have as an admin user IPs shown in the user profile tab, because I had some people who tried to impersonate others on my chat.
Pleaes note that displaying IP publicly (i.e. not only to admins) is a privacy concern even if they are simply hashed it's trivial to bruteforce, they should be at least salted
As already mentioned, we should have the IP view ability for Administrators and Moderators and Owners.
This will not create any privacy concerns. Public users should not be able to view IP addresses.
Add reCAPTCHA - IP LOGGING for DMCA requests #10542
@WebSavvyGuy
This will not create any privacy concerns
It has legal connotations with GDPR. As soon as you link an IP to a user it is personally identifiable data and covered by GDPR.
Public users should not be able to view IP addresses
What about your when system gets hacked ?
@Gandalf-the-Grey is correct.
GDPR is a gamechanger regarding storing personally identifiable information, period. Love it or loath it, you can't change it.
Almost every major website has some sort of logs stored with IPs.
Setting up some sort of disclaimer helps in those scenarios.
Why this chat doesn't have some sort of IP log by now is puzzling.
Almost every major website has some sort of logs stored with IPs.
Websites usually log via the webserver. Forums and other systems may then use the IP and link it to a user, but that now has consequences due to GDPR
Setting up some sort of disclaimer helps in those scenarios.
Not necessarily with GDPR. Disclaimers will do absolutely nothing to protect you from your responsibilities to look after the data if is personally identifiable - eg an IP linked to a user.
Why this chat doesn't have some sort of IP log by now is puzzling.
As per the first comment. And strangely enough not everyone needs it !
@reetp
I am not convinced this GDPR you speak of applies to just IP being logged and associated with a "nickname/username"
Actually the Nginx logs for the rocket.chat service already show username and IP but its hard to access that and it needs better and organized ways to access it from the Admin panel.
Those IP logs do not really identify anybody at all. There would be several further steps required to identify someone after obtaining an IP address. Most of which involves law enforcement and then the assistance of the ISP. I can give you my IP address now, and I bet the average Joe could not identify me.
In a nutshell, almost every server running Rocket.chat already has IP logs and username. (100% confirmed if you use Nginx). It's just not configured into the admin panel.
To your second point....Yes, not everyone needs the IP but for standard security, it's pretty much the basics. But as I have stated in the past, this application is really good for internal (i.e office) and small scale use. Public and anonymous large scale use (as we tried to use it for in the past) it isn't good at all.
@WebSavvyGuy
I am not convinced this GDPR you speak of applies to just IP being logged and associated with a "nickname/username"
General Data Protection Regulation
If you don't know about it then I really suggest you go and read up. Plenty of stuff online about it. It is a game changer for data storage with personally identifiable information, particularly in the EU, but affecting anyone who has contact with EU citizens.
Who does the GDPR affect? The GDPR not only applies to organisations located within the EU but it will also apply to organisations located outside of the EU if they offer goods or services to, or monitor the behaviour of, EU data subjects. It applies to all companies processing and holding the personal data of data subjects residing in the European Union, regardless of the company’s location.
What constitutes personal data? Any information related to a natural person or ‘Data Subject’, that can be used to directly or indirectly identify the person. It can be anything from a name, a photo, an email address, bank details, posts on social networking websites, medical information, or a computer IP address.
@reetp
Well almost the entire internet has to be rewritten then.
How much is enforceable, we would have to wait and see to find out. As you pointed out, mostly applied to EU. Also, some common sense has to be applied here. An IP address does not identify you directly. A lot of hurdles would have to be taken to get the actual person and even then it may not even be the same person. It could be a household, institution, service center. Adding "a computer IP address" as personal data is just careless by the GDPR people who wrote that.
Think of all the software/websites (forums, blogs, etc...basically any site that you need to register at and, heck any server with logs being recorded) out there that records IPs. This is more a function of your webserver via logs.
As i have already said, Rocket.chat does presently record usernames with IPs. (For me its located at /var/log/nginx/access.log) Are you saying they should remove that then?
Anyways, we are getting way off topic. My vote is to still add this feature to the admin panel so we can access the IP logs that already exist for this application and ban those who need banning.
But I am not holding my breath. (GDPR or no GDPR :) )
@WebSavvyGuy
Well almost the entire internet has to be rewritten then.
Welcome to 2018...
How much is enforceable, we would have to wait and see to find out
More than you may think. Especially if you are in the EU or have any dealings with the EU. Note other bugs on Rocket for GDPR compliance....
Adding "a computer IP address" as personal data is just careless by the GDPR people who wrote that.
Nope. It's intentional. It's the way it is, and I believe there is case law already in the EU regarding the status of IPs
Think of all the software/websites
Yup - they'll all need looking at unless you have zero visitors from the EU. But it's OK. You still have 24 days to get your compliance in order :-)
Note also the very first comment in this bug:
It would be nice to store user IPs and the ability to ban users from same IP.
So the intention is to retain that data to identify and ban that user. That becomes PII, and subject to GDPR.
So my original point was that this feature should be a toggle at most for those who want it, but not for those who do not.
Gee this thread is just a joke im sorry I even commented! Anything that is asked regarding IP loggin is stone walled, im out ill pay someone to rewrite a solution as nobody here is the slightest bit interested other then GDPR compliance well I have a huge budget I can deal with that when it arises right now Id like some access to these IPs you say are already logged! and a decent solution or at least some decent input in these threads it's like dealing with a bunch of five year olds asking about issues here. #10542
@WoWzee
I totally hear you. Let me know if you find a solution. We definitely need this feature but it's not going to happen with people striking fear into the developers with this GDPR nonsense.
Some idiot added "IP address" to the list of personal data into the FAQ's and now this is going to get them all paranoid. (which it already has some)
We run a website with tens of thousands of users and Rocket.chat was not able to handle the load (even on a powerful server) so keep that in mind for how much time and money you spend into modifying. We learned the hard way.
@reetp
Every single webserver stores IP address logs. I hope the EU shuts down the internet to the rest of the world. Let's see how long this law lasts.
I'm not saying you shouldn't have it.
I just just asked that you bear in mind that there are those of us who are subject to different laws, like it or not, and to respect that fact. The USA is not the only nation on the planet, nor does it have the only set of laws.
GDPR is here. It has been for 2 years. Just that it becomes mandatory on the 25th May. It can't simply be ignored. The EU is a market of 500 million people. It is not insignificant. And the fines for non compliance are large. GDPR is there to protect the privacy of the individual, which has been abused for far too long, and that is no bad thing IMHO.
Please stop using words like 'idiot' and 'nonsense'. They are superfluous in a grown up discussion. This about law, decided by judges.
We are considering fro development a solution, that would have the following characteristics:
- Have a server side memory only map of the IP -> USER relationship
- Never store the IP -> USER relationship on the DB
- Enable the admins to ban a IP by reporting a USER
- Enable the method calls rate limiter to filter per IP
- Log abuses of the rate limiter per IP so can be used by Fail2Ban
- Only store a list of banned IPs on the DB
- List of banned IPs is only visible on the Admin Panel
Can you guys give us some feedback about this ideas?
@engelgabriel I got the following notes on the top of my mind.
-
Keep in mind that ip adressen are not always fixed and can be used by multiple users. (Maybe only allow ban after multiple accounts from that up are blocked or list other accounts on a IP. ).
-
Clusters need a way to share this data. Without the database this will be tricky.
-
Givven the GDPR, we need a clear ground on which we are allowed this action. (Its not that the GDPR prohibits this, it just mandates you are upfront about it and clear in your privacy statement).
-
As a side note user management on this level could also (and possibly would be better to) be bone through an external login provider over oAuth. (Gitlab/drupal/Wordpress all have dedicated code on rocketchat to do oAuth that I know and all are capably to manage users and ban abusers without adding complexity to rocketchat. The GDPR parts stay in affect but are now part of the website not the chat and all have more experience with abuse than rocketchat) [Full disclosure. I worked on the drupal integrations and maintain the drupal rocketchat module]
-
Rate limiting is (if configurable & dynamic) a great idea.
To some of participants in this discussion: please do not spread FUD about GDPR, please consult your use cases with your own lawyers if you haven't already. GDPR doesn't change much for people that were doing things right. You should handle PII material with a proper care. If you are running an Internet service and can't do that properly you should really shut it down.
Obviously if that is such controversy let's just define option I_DONT_BELIEVE_IN_INTERNET_ABUSE=true that would cause to skip such logging.
Have a server side memory only map of the IP -> USER relationship Never store the IP -> USER relationship on the DB
I see no reason for restricting ourselves. In the end we are keeping e-mail addresses in DB. How holding IP address is making it worse? As @Lawri-van-Buel noted, it introduce issues with clusters when sharing data.
Enable the admins to ban a IP by reporting a USER
Sounds good.
Enable the method calls rate limiter to filter per IP
Not sure if that's needed that much. Global settings for rate limiting to avoid general spam would be enough. Maybe with some exceptions (please note: reverse-proxy scenario, many-to-one relation in some scenarios)
Log abuses of the rate limiter per IP so can be used by Fail2Ban
Ideally I would love to have nginx/apache like log file with actions user/ip
Only store a list of banned IPs on the DB
As mentioned above, IMO no need for such restrictions, however, we might want to limit access to IP data to admins
List of banned IPs is only visible on the Admin Panel
Sounds good.
I believe this is an important issue. If we want to make Rocket.Chat more usable for public usage, we'll need more powerful moderation tools. One of these would be IP bans. Myself, I currently use a different login provider which allows me to ban IPs, but I feel it would be quite important to build this into Rocket.Chat.
Implementing this doesn't have to be insanely difficult - add a "ban" function to users, which will disable their account and find the user's last few IPs and restrict those from creating new accounts. Even the admins don't need to see the IPs - this can be done in the background Discord-style.
As for law/GDPR/privacy issues: is an IP address not "data required for the operation of the service"? Every single webserver logs IPs too, so I feel it would be trivial to legalize the storing of IPs in such manner. If the admin doesn't want it, they should just be able to turn it off in the ban list.
Another good feature to add at this point is some sort of DNSBL / getipintel integration, to prevent people from using VPNs or Tor exit nodes (of course, it should be possible to disable, or add specific IPs/hosts that bypass this, for companies that use VPNs). Rate limiting, CAPTCHA and/or fail2ban seem like useful features here too, to prevent bots trying to match leaked databases/common password against users.
Using Rocket.Chat publicly is difficult without proper moderation tools. Slack suffers from this too - let's beat them to it :)