ubccr / mokey

FreeIPA self-service account management portal
BSD 3-Clause "New" or "Revised" License
189 stars 45 forks source link

Change doc for Mokey -> FreeIPA access creation #43

Closed mhaluska closed 1 year ago

mhaluska commented 4 years ago

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/server.example.com@EXAMPLE.COM
$ ipa-getkeytab -s freeipa.example.com -p mokey/server.example.com@EXAMPLE.COM -k /etc/mokey/keytab/mokeyapp.keytab
$ chmod 640 /etc/mokey/keytab/mokeyapp.keytab
$ chgrp mokey /etc/mokey/keytab/mokeyapp.keytab
g5pw commented 3 years ago

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

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

aebruno commented 3 years ago

@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.