Postgres TLS Support: Recommended Connection String Format
Hi, is TLS supported for Postgres connections? If yes, what is the recommended connection string format to enable TLS? I'm using this script to start the service:
from os import environ
from phoenix.server.main import initialize_settings, main, setup_logging
environ['PHOENIX_SQL_DATABASE_URL'] = f'postgresql+asyncpg://{environ["POSTGRES_USERNAME"]}:{environ["POSTGRES_PASSWORD"]}@{environ["POSTGRES_HOST"]}:{environ["POSTGRES_PORT"]}/{environ["POSTGRES_DATABASE"]}?ssl=require'
initialize_settings()
setup_logging()
main()And, that works for a while. However, after some varying length of time, phoenix will start reporting these errors when accessing the UI:
asyncpg.exceptions.InvalidAuthorizationSpecificationError: no pg_hba.conf entry for host "172.31.4.230", user "phoenix", database "phoenix", no encryptionWhen that error occurs, I can stop the current running container, and the replacement will start up and work fine (using TLS as expected).
