Skip to content
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

Un-provision accounts #185

Open
lvps opened this issue Apr 12, 2021 · 0 comments
Open

Un-provision accounts #185

lvps opened this issue Apr 12, 2021 · 0 comments
Labels
huge refactorings model Model classes (Item, Feature, etc...)

Comments

@lvps
Copy link
Member

lvps commented Apr 12, 2021

  1. Create a UserMappings table (UUID to username)
  2. Every N minutes, query LDAP server and get a list of all accounts (excluding locked ones)
  3. Query the UserMappings table
  4. Compare the results

If an account is gone from LDAP, write the current timestamp in the DeletedAt column. Otherwise, write NULL.

If an account is renamed:

  1. Rename it in Audit and AuditProduct
  2. Rename it in tokens... this will be fun. Actually I don't remember if it's needed.

Then take all mappings with NOW() - DeletedAt > 6 MONTHS or something and:

  1. Rename to "deleted account 12456" or something in Audit and AuditProduct
  2. Delete tokens
@lvps lvps added model Model classes (Item, Feature, etc...) huge refactorings labels Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
huge refactorings model Model classes (Item, Feature, etc...)
Projects
None yet
Development

No branches or pull requests

1 participant