#9675 Support GSSAPI in Cockpit on IPA servers
Closed: fixed by frenaud. Opened by abbra.

Cockpit can use GSSAPI authentication and has pretty good definition of how to enable it: https://cockpit-project.org/guide/latest/sso.html. These instructions work on IPA clients but they cannot be used on IPA servers because IPA framework already owns HTTP/.. Kerberos service and its keytab.

Luckily, there are two changes that need to be done to enable Cockpit single sign-on with GSSAPI on IPA servers:
- create a symlink /etc/cockpit/krb5.keytab to /var/lib/ipa/gssproxy/http.keytab
- add SELinux policy to allow cockpit_session_t to operate on ipa_var_lib_t files

No additional changes are needed. Note that Cockpit instructions above also talk about Kerberos service modifications to enable delegation. These modifications should not be done for IPA servers' HTTP services, as these services are already enabled to handle delegation.

This ticket should handle the SELinux policy addition. Adding a symlink should be left for administrators as an explicit action. For that we should contribute a documentation update to Cockpit.


master:

  • c775de3c2bf05b447bfd17646306f62406ffc6dc selinux: allow Cockpit to use HTTP keytab on IPA servers
  • 4519c2fde183d8b8c4f49da37fed68a41a220d72 Minimal test for Cockpit integration on IPA master
  • c4f3d9034ddfcddcb13e75d1c149d38da34dea08 Extend nightly tests with Cockpit test

ipa-4-12:

  • c71e12e902b3912c31245d46ad6f2c2ddee01126 selinux: allow Cockpit to use HTTP keytab on IPA servers
  • 0dadcbb4ac9f6142b5130f025f64d918d6f208a9 Minimal test for Cockpit integration on IPA master
  • 4994728fc646e67ec5ae8ce2a53d579f1496272e Extend nightly tests with Cockpit test

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-69300, https://issues.redhat.com/browse/RHEL-69301

Metadata