Skip to content

root: support for custom postgresql connection options#15577

Merged
rissson merged 12 commits intogoauthentik:mainfrom
stazio:custom_options
Jul 25, 2025
Merged

root: support for custom postgresql connection options#15577
rissson merged 12 commits intogoauthentik:mainfrom
stazio:custom_options

Conversation

@D-Tasker207
Copy link
Contributor

@D-Tasker207 D-Tasker207 commented Jul 15, 2025

Details

Allows users to specify custom connection options found in the postgresql documentation.

Writer connection options can be specified using:
AUTHENTIK_POSTGRESQL__CONN_OPTIONS

Options to be applied to every replica can be specified using:
AUTHENTIK_POSTGRESQL__REPLICA_CONN_OPTIONS

Replica specific overrides can be applied using:
AUTHENTIK_POSTGRESQL__READ_REPLICA__<n>__CONN_OPTIONS

Closes #15559


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

Staz M and others added 5 commits July 14, 2025 11:13
@D-Tasker207 D-Tasker207 requested review from a team as code owners July 15, 2025 18:41
@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 837dce4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68837434e8c3d800088f5c96
😎 Deploy Preview https://deploy-preview-15577--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 837dce4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6883743414cbe80008a1fa1a
😎 Deploy Preview https://deploy-preview-15577--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 837dce4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/688374341cc36e0008e4d760
😎 Deploy Preview https://deploy-preview-15577--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rissson rissson changed the title Custom postgresql connection options root: support for custom postgresql connection options Jul 16, 2025
@rissson rissson self-assigned this Jul 16, 2025
@codecov
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.18%. Comparing base (c7e932c) to head (837dce4).
Report is 1 commits behind head on main.

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     
Flag Coverage Δ
e2e 46.57% <8.33%> (-0.02%) ⬇️
integration 23.46% <8.33%> (-0.01%) ⬇️
unit 91.29% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

rissson added 2 commits July 17, 2025 16:29
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson
Copy link
Member

rissson commented Jul 17, 2025

@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!

Copy link
Contributor

@dewi-tik dewi-tik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestions for the doc changes. Thanks for the contribution @D-Tasker207!

rissson and others added 2 commits July 17, 2025 16:55
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>
@rissson rissson requested a review from dewi-tik July 17, 2025 14:55
Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com>
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson enabled auto-merge (squash) July 18, 2025 03:32
@tanberry tanberry requested review from a team as code owners July 24, 2025 18:23
@tanberry tanberry disabled auto-merge July 24, 2025 18:50
rissson added 2 commits July 25, 2025 14:09
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson enabled auto-merge (squash) July 25, 2025 12:10
@rissson rissson merged commit 61c3c32 into goauthentik:main Jul 25, 2025
105 checks passed
kensternberg-authentik added a commit that referenced this pull request Aug 6, 2025
* 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)
  ...
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.

Support arbitrary libpq connection options in PostgreSQL backend

4 participants