From ac2e49de9abcf6ae5f5c501b067bbbe8ea3864ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Fri, 27 Oct 2023 18:39:23 +0200 Subject: [PATCH] fix(postgres-batch-exports): The correct sslmode is disable (#18252) --- posthog/temporal/workflows/postgres_batch_export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/temporal/workflows/postgres_batch_export.py b/posthog/temporal/workflows/postgres_batch_export.py index f47684242df6b..1844742880876 100644 --- a/posthog/temporal/workflows/postgres_batch_export.py +++ b/posthog/temporal/workflows/postgres_batch_export.py @@ -36,9 +36,9 @@ def postgres_connection(inputs): port=inputs.port, # The 'hasSelfSignedCert' parameter in the postgres-plugin was provided mainly # for users of Heroku and RDS. It was used to set 'rejectUnauthorized' to false if a self-signed cert was used. - # Mapping this to sslmode is not straight-forward, but going by Heroku's recommendation (see below) we should use 'no-verify'. + # Mapping this to sslmode is not straight-forward, but going by Heroku's recommendation (see below) we should use 'disable'. # Reference: https://devcenter.heroku.com/articles/connecting-heroku-postgres#connecting-in-node-js - sslmode="no-verify" if inputs.has_self_signed_cert is True else "prefer", + sslmode="disable" if inputs.has_self_signed_cert is True else "prefer", ) try: