Skip to content

Conversation

@its-abhaykumar
Copy link

Summary

This PR adds support for the POSTGRES_SSLMODE environment variable in the entrypoint script. This allows users to configure SSL modes (e.g., require, verify-full) when using a PostgreSQL database.

Details

  • Added file_env 'POSTGRES_SSLMODE' to support Docker secrets.
  • Added logic to set dbdriveroptions key 1000 (PDO::PGSQL_ATTR_SSL_MODE) via occ.
  • Fixed legacy ENV syntax warnings in the Dockerfile.

Testing

Verified in a local container environment. The logs confirm the configuration block is triggered during initialization:
Setting Postgres SSL Mode...

Fixes #2477

Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com>
Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com>
Add support for PostgreSQL SSL mode and CA options in entrypoint script.

Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com>
Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dynamic config for Postgres SSL mode

1 participant