#498 switch from krb_login to gssapi_login
Closed: Fixed 3 years ago by onosek. Opened 3 years ago by kevin.

koji is deprecating krb_login. Please switch rpkg to use gssapi_login instead.

ie, fedpkg now outputs in rawhide:

/usr/lib/python3.8/site-packages/koji/util.py:53: DeprecationWarning: Please use gssapi_login instead, krb_login will be removed in koji 1.22

(koji 1.21 was just released, so this is going to happen in 3ish months).

Thanks!


It would be great to use Koji's activate_session() method instead of hard-coding gssapi_login(). The activate_session() call simply uses whatever authentication mechanism is configured in the Koji profile (and we load the authentication details from the kojiprofile setting in /etc/rpkg/*.conf.) That would make it easier to use rpkg with other Koji instances.

With this change, Koji does not use the krb_rdns option, so we can remove that from rpkg. See https://bugzilla.redhat.com/show_bug.cgi?id=1812702

Thanks, I removed this option.
In the end, I went even further and I removed all 'kojiconfig' (deprecated) code (here https://pagure.io/rpkg/pull-request/505). It slightly simplified login process and later I should look at the activate_session method whether it is reasonable/possible to use it instead of gssapi_login.

Commit ff23577 relates to this ticket

Metadata Update from @onosek:
- Issue set to the milestone: 1.61

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #505 Merged 3 years ago
  • #504 Merged 3 years ago