From cd1d5a6476014ff9cabd3a387b9898d8cbcb3e64 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Fri, 16 Feb 2024 15:35:27 +0300 Subject: [PATCH] Fix in certificate generation Signed-off-by: v.oleynikov --- "hooks/lib/certificate/\321\201ertificate.py" | 8 ++++---- lib/python/requirements.txt | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git "a/hooks/lib/certificate/\321\201ertificate.py" "b/hooks/lib/certificate/\321\201ertificate.py" index f3a0b8699..b2a205328 100644 --- "a/hooks/lib/certificate/\321\201ertificate.py" +++ "b/hooks/lib/certificate/\321\201ertificate.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 -