deNBI / perunKeystoneAdapter

Perun Keystone Adapter parses data propagated by Perun data and modifies a connected Keystone.
https://perunkeystoneadapter.readthedocs.io/en/latest/
Apache License 2.0
5 stars 0 forks source link

User/Project deletions #1

Closed jkrue closed 6 years ago

jkrue commented 6 years ago

Current situation

All actions on Keystone are processed immediately.

What does that mean ?

The user / project data is propagated by Perun and processed by the Perun Keystone Adapter. Any changes in the propagated data follows an update of Keystone. For any additions or modifications (user_create, user_update, projects_create and project_update) this seems to be ok. But, a missing user or project in the propagated database is also removed from keystone in time. In my opinion this is a dangerous/unsafe behaviour.

Idea for a maybe better (safer) handling:

Instead of an immediately processing we could deactivate the concerned user/project first and delete it then :

  1. manually
  2. after a fixed period of time (one day, several day, a week)
  3. after one or more confirmations (which could be the next pushed dataset)
  4. a mixture of that above
jkrue commented 6 years ago

When a project is deleted its bound resources are normally not deleted.

However, when a project is removed we must consequently remove also all resources bound by this project. This might be not a good idea ...

Instead of deleting the project we could

jkrue commented 6 years ago

The feature branch denbi_portal_compute_center (recently merged) realizes the discussed solution. Delete an user or project using the library function disable and tag it as deleted. The library also offers a termination function which allows to really delete a tagged user/project.