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: