Page MenuHomePhabricator

Add system user analytics-privatedata to the anaytics-privatedata-users group
Closed, ResolvedPublic5 Estimated Story Points

Description

This task aims to add a system user called analytics-privatedata to the analytics-privatedata-users POSIX group. This user will be useful when Kerberos will be enabled, since researchers/analysts/etc.. will need a way to run authenticated recurrent jobs (like crons) without the need to kinit manually every 24h.

This is a interim compromise to avoid impacting users with Kerberos too much, that may eventually be deprecated in favor of something better and more granular.

The idea is the following:

  • a user authenticates with kinit (and password) when logging in into a stat/notebook host
  • a user in analytics-privatedata-users will also be able to sudo as analytics-privatedata to kinit with a keytab (that doesn't require a password) stored on some stat/notebook hosts, but only in some use cases (like executing a cron for 3 days to test something etc..)

Event Timeline

Change 550814 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] admin: add analytics-privatedata system user

https://gerrit.wikimedia.org/r/550814

During the SRE meeting no strong opposition to this task was raised, but it was suggested that logging kerberos-run-command usage in a log file could be good to track down people misusing the tool in the future.

Change 551794 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] kerberos: add syslog logging to kerberos-run-command.py

https://gerrit.wikimedia.org/r/551794

Change 551794 merged by Elukey:
[operations/puppet@production] kerberos: add syslog logging to kerberos-run-command.py

https://gerrit.wikimedia.org/r/551794

Change 550814 merged by Elukey:
[operations/puppet@production] admin: add analytics-privatedata system user

https://gerrit.wikimedia.org/r/550814

elukey set the point value for this task to 5.
jbond subscribed.

I think this is complete but please reopen if there are still outstanding tasks