Nameless icon indicating copy to clipboard operation
Nameless copied to clipboard

Add IP history retention policy

Open ghost opened this issue 4 years ago • 3 comments

Describe the feature

Currently NamelessMC stores IP history of an user forever, but some website owners would prefer to reduce the amount of private information stored on user, so it would be good to have IP history retention policy. The only benefit of storing IP address history I can see is helping a person in case of their account being hacked and accessed by another.

The suggestion is to add a way to set IP history retention policy, like 24 hours, 30 days, 90 days after which old IP addresses are deleted from the history.

ghost avatar Oct 26 '21 10:10 ghost

I wonder what this would look like in the context of Nameless... Every x amount of hours, go through the user IP table and delete records more than x hours old?

tadhgboyle avatar Jun 11 '22 04:06 tadhgboyle

I wonder what this would look like in the context of Nameless... Every x amount of hours, go through the user IP table and delete records more than x hours old?

Sounds sensible - for this I think we first need a system which allows processes to run after x amount of time

This can be configured to either run in the background via ajax calls or via cron

samerton avatar Jun 14 '22 09:06 samerton

This looks like a great package: https://packagist.org/packages/lavary/crunz

We will have to think of some sort of wrapper so that if the user isn’t able to edit the cron settings we run it immediately, otherwise add it to this queue

On Tue, Jun 14, 2022 at 03:33 Sam @.***> wrote:

I wonder what this would look like in the context of Nameless... Every x amount of hours, go through the user IP table and delete records more than x hours old?

Sounds sensible - for this I think we first need a system which allows processes to run after x amount of time

This can be configured to either run in the background via ajax calls or via cron

— Reply to this email directly, view it on GitHub https://github.com/NamelessMC/Nameless/issues/2471#issuecomment-1154947101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGG43DDHY3X7PAM2AMKXGYLVPBGUZANCNFSM5GXOVNVA . You are receiving this because you commented.Message ID: @.***>

tadhgboyle avatar Jun 14 '22 14:06 tadhgboyle