Miro Hrončok
ac791f7372
Stop using deprecated pkg_resources
...
Use packaging.version and importlib.metadata instead.
Note that packaging.version only parses versions compatible with Python packaging
(originally defined in PEP 440).
https://packaging.python.org/en/latest/specifications/version-specifiers/
Fixes https://pagure.io/freeipa/issue/9676
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com >
2025-05-06 13:48:35 +02:00
Alexander Bokovoy
5368120805
custodia: do not use deprecated jwcrypto wrappers
...
jwcrypto has turned JWK object into a dict-like structure in 2020 and
marked data wrappers as deprecated. The only exception for direct
foo['bar'] access is a key ID -- some keys might have no 'kid' property,
thus it is best to use jwk.get('kid') instead for those.
Fixes: https://pagure.io/freeipa/issue/9597
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2024-05-23 15:12:27 -04:00
Alexander Bokovoy
5e17c134aa
Remove ipaserver.custodia.__init__.py
...
Use native Python namespaces instead.
Related: https://pagure.io/freeipa/issue/9467
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com >
2023-11-27 18:15:44 +01:00
Florence Blanc-Renaud
fdd3dd29b7
pylint: fix consider-iterating-dictionary
...
Related: https://pagure.io/freeipa/issue/9278
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com >
Reviewed-By: Stanislav Levin <slev@altlinux.org >
2023-01-10 08:30:58 +01:00
Florence Blanc-Renaud
12067297d8
pylint: remove useless suppression
...
The newer version of pylint has fixed false positives and
does not need anymore these suppressions:
- global-variable-not-assigned
- invalid-sequence-index
- no-name-in-module
- not-callable
- unsupported-assignment-operation
Related: https://pagure.io/freeipa/issue/9278
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com >
Reviewed-By: Stanislav Levin <slev@altlinux.org >
2023-01-10 08:30:58 +01:00
Stanislav Levin
5a00882eab
pylint: Fix useless-suppression
...
Cleanup up no longer used Pylint's disables where possible.
Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2022-03-11 13:37:08 -05:00
Christian Heimes
e6f09c1b5f
Also drop Custodia client and forwarder
...
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00
Christian Heimes
c27233e3a0
Remove more unused Custodia code
...
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00
Christian Heimes
e1abfe0fb7
Fix Custodia pylint issues
...
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00
Christian Heimes
a4631b7f3f
Fix Custodia imports
...
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00
Christian Heimes
d27f01b2fb
Remove unused Custodia modules
...
The CLI, IPA integration and storage backends are not used by IPA.
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00
Christian Heimes
1e98f310f6
Add Custodia 0.6.0 to ipaserver package
...
Incorporate Custodia into IPA.
See: https://pagure.io/freeipa/issue/8882
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2021-06-16 10:28:17 -04:00