Repository navigation
Disable inactive users after n number of days. #9348
Replies: 6 comments 6 replies
|
I agree with the need for this functionality, but would make sure that the deleting of users functionality would be disabled by default. |
|
Definitively something worth adding, but may be a bit tricky to do from a performance perspective. We would not want to update the user in the database every time the login for example, as that would be expensive. One idea I had for this in the past is to have a separate "keep-alive" capability that can be used for many purposes and not just users, in addition also have a separate service that handles disabling/deleting/etc, which in the future should be possible to run on separate nodes to the nodes handling requests. |
|
@keycloak/storage-x FIY |
|
The linked STIG requirement asks for accounts to be disabled, it doesn't mandate for pruning of accounts. To prevent the re-use of an account name or to be able to re-activate it later, there are valid scenarios to keep the account and only disable it. Even in the light GDPR, deleting a user is just one option. GDPR mandates that data that is no longer used should be removed, and auditing might be a good reason to keep the data. Depending on the scenarios instead of deleting a record, it could be anonymized. With the existing Event SPI, the functionality can already be added without changing any existing code. It offers the implementer to store the data about the last login in an efficient store of their choice, and it can be a lot more efficient than the general purpose storage options we currently offer and are about to offer with the new storage API. If user information is stored externally (like LDAP), one might not be able to store that information in the external store. I briefly considered deferring the event processing for performance reasons ... at the same time Keycloak shouldn't miss a login event of a user and then disable the account despite a recent login. If it would be added to the core of the Keycloak distribution, it would need to be configurable which accounts would be disabled, and what strategies to apply (disable account, scrub data from account, delete account; possibly staged and with an email notification). Regarding a general keep-alive functionality, the configuration UI and the triggered functionality sounds quite specific for users for me. |
|
Anyone has a solution to this. I am 8000 very new to keycloak. Please share if any one has simple solution for this. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There is a STIG requirements that require account pruning after a set number of days. Keycloak should have the ability built in to automatically disable accounts after a set amount to satisfy STIG requirement:
https://www.stigviewer.com/stig/application_security_and_development/2018-12-24/finding/V-69301
Furthermore, account deletion after an addition n number of days would also be useful in managing accounts and increasing security.
All reactions