Update Projects::InactiveProjectsDeletionCronWorker to use a bot-type user account
Description
Projects::InactiveProjectsDeletionCronWorker currently assigns the first administrator to remove projects. This can/will cause confusion.
For that reason, I think we should use a
bot-type
user account. We can give those accounts the exact privileges they need to do their job, but nothing more. And these accounts cannot be used to log in, so there is no risk of credentials leaking.
Implementation Plan
- Create a new
admin_bot
method similar to the methods defined here and setadmin
astrue
for this bot. Also assign the avatar for bot as suggested provided by the product designer. - Use this bot in the inactive projects deletion cron worker.
- Add the new
admin_bot
to the list of bots here - Update the documentation here that currently states "first active administrator".