diff --git a/hooks/lib/certificate/certificate.py b/hooks/lib/certificate/certificate.py index f3a0b8699..b2a205328 100644 --- a/hooks/lib/certificate/certificate.py +++ b/hooks/lib/certificate/certificate.py @@ -80,8 +80,8 @@ def with_metadata(self, country: str = None, def add_extension(self, type_name: str, critical: bool, value: str, - subject: crypto.Optional["X509"] = None, - issuer: crypto.Optional["X509"] = None): + subject: crypto.X509 = None, + issuer: crypto.X509 = None): """ Adds extensions to certificate. :param type_name: The name of the type of extension_ to create. @@ -96,10 +96,10 @@ def add_extension(self, type_name: str, :type value: :py:class:`str` :param subject: Optional X509 certificate to use as subject. - :type subject: :py:class:`crypto.Optional["X509"]` + :type subject: :py:class:`crypto.X509` :param issuer: Optional X509 certificate to use as issuer. - :type issuer: :py:class:`crypto.Optional["X509"]` + :type issuer: :py:class:`crypto.X509` """ ext = crypto.X509Extension(type_name=str.encode(type_name), critical=critical, diff --git a/lib/python/requirements.txt b/lib/python/requirements.txt index c13f7a98f..0fcfc7ef2 100644 --- a/lib/python/requirements.txt +++ b/lib/python/requirements.txt @@ -1,11 +1,11 @@ cffi==1.16.0 -cryptography==41.0.4 +cryptography==42.0.2 DateTime==5.2 deckhouse==0.4.9 dictdiffer==0.9.0 dotmap==1.3.30 pycparser==2.21 -pyOpenSSL==23.2.0 +pyOpenSSL==24.0.0 pytz==2023.3.post1 PyYAML==6.0.1 zope.interface==6.0 @@ -14,6 +14,5 @@ jsonpointer==2.4 attrs==23.1.0 jsonschema==4.19.1 jsonschema-specifications==2023.7.1 +kubernetes==28.1.0 kubernetes-validate==1.28.0 -rpds-py==0.10.6 -