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

Add extra environment variables for SSL encryption to the database #1296

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

Conversation

crimmy68
Copy link

@crimmy68 crimmy68 commented Aug 31, 2024

Related Issue: #1105

New Behavior

As suggested by someone else in #1105 , I added extra environment variables for the docker image:

  • DB_CLIENT_SSL_CERT
  • DB_CLIENT_SSL_KEY
  • DB_CLIENT_SSL_CA

Contrast to Current Behavior

Unable to provide parameters to use SSL encryption to external Postgresql database.

Discussion: Benefits and Drawbacks

Providing these extra environment variables is completely optional so there is no drawback.
However it provides the benefit of providing the option when filling in the extra.py is not an option.
( I don't want to edit code for Kubernetes deployments f.e. )

Changes to the Wiki

N/A

Proposed Release Note Entry

Simply mention the extra options.
potentially a reference to: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

also included variables in netbox.env
@crimmy68 crimmy68 changed the title initial proposal issue #1105 Add extra environment variables for SSL encryption to the database Aug 31, 2024
Re-ordered variables as indicated by the syntax check.
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