mokey icon indicating copy to clipboard operation
mokey copied to clipboard

Change doc for Mokey -> FreeIPA access creation

Open mhaluska opened this issue 5 years ago • 2 comments

This part is really not nice solution, you should not create standard user for Mokey app.

  1. New role is not required, there already exist 'User Administrator'
  2. Don't use user, use service
$ mkdir /etc/mokey/keytab
$ kinit adminuser
$ ipa service-add mokey/server.example.com
$ ipa role-add-member 'User Administrator' --services=mokey/[email protected]
$ ipa-getkeytab -s freeipa.example.com -p mokey/[email protected] -k /etc/mokey/keytab/mokeyapp.keytab
$ chmod 640 /etc/mokey/keytab/mokeyapp.keytab
$ chgrp mokey /etc/mokey/keytab/mokeyapp.keytab

mhaluska avatar Jan 08 '20 13:01 mhaluska

Please note, the "User Administrator" role gives more permissions to the mokey service, namely

  • User Administrators
  • Group Administrators
  • Stage user Administrators

There's a subtle difference between the "user Administrator" role and the "User Administrators" privilege.

g5pw avatar Sep 16 '20 21:09 g5pw

@g5pw @mhaluska Thanks for pointing this out. Would be good to figure out the min permissions required to run the mokey service and add those to the docs. You can always create a specific role for mokey which would give you complete control over the permissions.

aebruno avatar Sep 24 '20 13:09 aebruno