From 6c7c28f019dff5c73c7b512ca8f2b045c141270d Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 6 May 2024 13:55:44 -0300 Subject: [PATCH 1/2] fix: add workaround for libssl in core20 (#175) Signed-off-by: Claudio Matsuoka --- craft_store/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/craft_store/auth.py b/craft_store/auth.py index 8a13d30..eaab80c 100644 --- a/craft_store/auth.py +++ b/craft_store/auth.py @@ -30,11 +30,14 @@ import keyring.backends.fail import keyring.errors from keyring._compat import properties -from keyring.backends import SecretService from xdg import BaseDirectory # type: ignore[import] from . import errors +# workaround to prevent legacy provider loading in focal +os.environ["CRYPTOGRAPHY_OPENSSL_NO_LEGACY"] = "1" +from keyring.backends import SecretService # noqa: E402 + logger = logging.getLogger(__name__) From a4136e10f822729b2dcade83e7aa3c3e37472dec Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 6 May 2024 14:33:21 -0300 Subject: [PATCH 2/2] Release 2.6.2 (#176) Signed-off-by: Claudio Matsuoka --- .bumpversion.cfg | 2 +- craft_store/__init__.py | 2 +- docs/.custom_wordlist.txt | 1 + docs/changelog.rst | 7 +++++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 472aa73..9e3ee22 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.6.1 +current_version = 2.6.2 commit = False tag = False diff --git a/craft_store/__init__.py b/craft_store/__init__.py index d5904fe..d2fd1fc 100644 --- a/craft_store/__init__.py +++ b/craft_store/__init__.py @@ -16,7 +16,7 @@ """Interact with Canonical services such as Charmhub and the Snap Store.""" -__version__ = "2.6.1" +__version__ = "2.6.2" from . import creds, endpoints, errors, models diff --git a/docs/.custom_wordlist.txt b/docs/.custom_wordlist.txt index b9af7e3..284af96 100644 --- a/docs/.custom_wordlist.txt +++ b/docs/.custom_wordlist.txt @@ -6,6 +6,7 @@ https io initialization initialized +libssl NotLoggedIn keyring StoreClient diff --git a/docs/changelog.rst b/docs/changelog.rst index 17f66d9..6937468 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,13 @@ ********* Changelog ********* + +2.6.2 (2024-05-06) +------------------ + +- Disable legacy libssl providers. This is a workaround to prevent a crash + when loading cryptography in focal. + 2.6.1 (2024-03-26) ------------------