feat(jans-pycloudlib): add low-level support for SSL persistence connection by iromli · Pull Request #12194 · JanssenProject/jans (original) (raw)

Run the following command in your local git repository to apply this patch

cat << 'EOF' | git apply diff --git a/jans-pycloudlib/jans/pycloudlib/persistence/sql.py b/jans-pycloudlib/jans/pycloudlib/persistence/sql.py --- a/jans-pycloudlib/jans/pycloudlib/persistence/sql.py +++ b/jans-pycloudlib/jans/pycloudlib/persistence/sql.py @@ -8,6 +8,7 @@ import re import typing as _t import warnings +from cryptography.fernet import Fernet from collections import defaultdict from collections.abc import Callable from functools import cached_property @@ -277,6 +278,7 @@

 def __init__(self, manager: Manager, *args: _t.Any, **kwargs: _t.Any) -> None:
     self.manager = manager

@@ -291,6 +293,14 @@ if as_boolean(os.environ.get("CN_SQL_SSL_ENABLED", "false")): self._bootstrap_ssl_assets()

@@ -304,9 +314,13 @@ if filepath and (contents := self.manager.secret.get(secret_name)): logger.info(f"Detected non-empty {secret_name=}. The secret will be populated into {filepath!r}.")

EOF