diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ac413..c5d0a1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +0.8.3 +----- +- Switch to using `sslmode=require` for connections to backend DB + +0.8.2 +----- +- Switch to new PyPi publish method + 0.8.1 ----- - Switch to using `sslmode=prefer` for connections to backend DB diff --git a/cicada/lib/postgres.py b/cicada/lib/postgres.py index 5a1c934..2e9d771 100644 --- a/cicada/lib/postgres.py +++ b/cicada/lib/postgres.py @@ -19,7 +19,9 @@ def db_cicada(dbname=None): user = definitions["db_cicada"]["user"] password = definitions["db_cicada"]["password"] - conn = psycopg2.connect(host=host, port=port, dbname=dbname, user=user, password=password, sslmode="prefer") + conn = psycopg2.connect( + host=host, port=port, dbname=dbname, user=user, password=password, sslmode="require", application_name="cicada" + ) conn.autocommit = True return conn diff --git a/setup.py b/setup.py index 71cf893..3ccba00 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="cicada", - version="0.8.2", + version="0.8.3", description="Lightweight, agent-based, distributed scheduler", long_description=long_description, long_description_content_type="text/markdown", @@ -22,7 +22,7 @@ "pyyaml==6.0.*", "croniter==2.0.*", "tabulate==0.9.*", - "slack-sdk==3.30.*", + "slack-sdk==3.31.*", "backoff==2.2.*", ], extras_require={