Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DATABASE_CACERTFILE #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Support DATABASE_CACERTFILE #22

wants to merge 2 commits into from

Conversation

reknih
Copy link

@reknih reknih commented Oct 28, 2024

What this PR does / why we need it:

This PR adds support for the new DATABASE_CACERTFILE environment variable (Plausible 2.1.2 and later) by allowing a user to add a trusted root certificate for their database in the values file. This certificate will be stored in a secret and mounted as a volume if set. This is needed because root certificate checks are now enforced but the container is built with an empty / unused trust store. Hence, if connecting to Postgres via TLS, this configuration must be provided.

The PR also updates Plausible to 2.1.4.

Which issue this PR fixes

Allows the user to connect to a database via TLS on Plausible 2.1.2 and later. Can help #10 and #17 because üroviding DATABASE_CACERTFILE forces a connection using TLS/SSL and supersedes the ?ssl=true connection string parameter. However, it's not a fix because parameters will still not have an effect on that container and prevent its startup.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

Also change to use the official image from GitHub's container registry, as encouraged in the docs.

Signed-off-by: Martin Haug <[email protected]>
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.

1 participant