#9754 ipa vault-del triggers a deprecation warning
Closed: fixed by frenaud. Opened by frenaud.

The command ipa vault-del triggers a deprecation warning in /var/log/httpd/error_log:

[Wed Feb 26 07:36:48.086309 2025] [wsgi:error] [pid 61053:tid 61311] [remote 2620:52:0:bb:f816:3eff:fe9a:364a:45812] ipa: WARNING: /usr/lib/python3.13/site-packages/ipaserver/plugins/dogtag.py:1590: The subsystem in PKIConnection.__init__() has been deprecated (https://github.com/dogtagpki/pki/wiki/PKI-10.8-Python-Changes).

This issue is similar to https://pagure.io/freeipa/issue/9691 but happens in a different portion of code:
https://github.com/freeipa/freeipa/blob/018b3d3dc6d26ec50f73aaea675ecfb8813aaea1/ipaserver/plugins/dogtag.py#L1590-L1596:

connection = PKIConnection( 
     'https', 
     self.kra_host, 
     str(self.kra_port), 
     'kra', 
     cert_paths=paths.IPA_CA_CRT 
 ) 

The PKIConnection initialization does not need to provide the subsystem anymore.


Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/7704

master:

  • cbe863bf15ed3c0091256f86e9da3fe382b658f1 vault: remove PKIConnection deprecation warning

ipa-4-12:

  • 25848a8d49a77280f7b00cb81271ddb94aef7d48 vault: remove PKIConnection deprecation warning

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

Metadata