root: support for custom postgresql connection options#15577
root: support for custom postgresql connection options#15577rissson merged 12 commits intogoauthentik:mainfrom
Conversation
This allows for setting additional settings on the PostgresSQL connection string, such as `host`, and `target_session_attrs`.
…signing replica specific options
…not specified in the default config
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15577 +/- ##
=======================================
Coverage 93.17% 93.18%
=======================================
Files 831 831
Lines 44226 44250 +24
=======================================
+ Hits 41209 41235 +26
+ Misses 3017 3015 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
|
@D-Tasker207 thank you for your contribution! I've reworked this a bit to match how we currently handle free-form config options. This will go through our review process and we'll get it merged! |
There was a problem hiding this comment.
Small suggestions for the doc changes. Thanks for the contribution @D-Tasker207!
Co-authored-by: Dewi Roberts <dewi@goauthentik.io> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* main: (91 commits) *: replace Celery with Dramatiq (#13492) website/docs: stages/mtls: Clean up stage configuration section (#15753) translate: Updates for file locale/en/LC_MESSAGES/django.po in es (#15818) website: bump the eslint group in /website with 2 updates (#15805) web: bump typedoc from 0.28.7 to 0.28.8 in /packages/esbuild-plugin-live-reload (#15809) core: bump axllent/mailpit from v1.27.1 to v1.27.2 in /tests/e2e (#15813) web: bump the rollup group across 1 directory with 4 updates (#15806) web: bump the eslint group across 3 directories with 2 updates (#15808) lifecycle/aws: bump cross-env from 7.0.3 to 10.0.0 in /lifecycle/aws (#15807) web: bump ts-pattern from 5.7.1 to 5.8.0 in /web (#15810) web: bump @sentry/browser from 9.41.0 to 9.42.0 in /web in the sentry group across 1 directory (#15811) web: Add support for placeholder in <ak-text-input> (#15795) providers/rac: fix incorrect caching (#15779) root: support for custom postgresql connection options (#15577) website: bump the build group in /website with 3 updates (#15784) web: bump @sentry/browser from 9.40.0 to 9.41.0 in /web in the sentry group across 1 directory (#15785) core: bump astral-sh/uv from 0.8.2 to 0.8.3 (#15786) lifecycle/aws: bump aws-cdk from 2.1021.0 to 2.1022.0 in /lifecycle/aws (#15787) core: bump twilio from 9.6.5 to 9.7.0 (#15788) revert: web: Font fixes (#15581) (#15789) ...
Details
Allows users to specify custom connection options found in the postgresql documentation.
Writer connection options can be specified using:
AUTHENTIK_POSTGRESQL__CONN_OPTIONSOptions to be applied to every replica can be specified using:
AUTHENTIK_POSTGRESQL__REPLICA_CONN_OPTIONSReplica specific overrides can be applied using:
AUTHENTIK_POSTGRESQL__READ_REPLICA__<n>__CONN_OPTIONSCloses #15559
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)