Skip to content

fix: 7317 support pg ssl#7366

Merged
Chocobozzz merged 6 commits intoChocobozzz:developfrom
U1F974:fix/7317_support_pg_ssl
Feb 13, 2026
Merged

fix: 7317 support pg ssl#7366
Chocobozzz merged 6 commits intoChocobozzz:developfrom
U1F974:fix/7317_support_pg_ssl

Conversation

@U1F974
Copy link
Contributor

@U1F974 U1F974 commented Jan 5, 2026

Description

Added the ability to specify TLS credentials for PostgreSQL.

Related issues

#7317

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this PR does not update server code
  • 🙋 no, because I need help

@U1F974
Copy link
Contributor Author

U1F974 commented Jan 5, 2026

do i need to add tests for this ?

# Each file path (ca, cert, key) MUST be absolute path
#
# Example:
# ssl:
Copy link
Owner

Choose a reason for hiding this comment

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

I think that renaming this section to ssl_settings would be simpler to use & manage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that renaming this section to ssl_settings would be simpler to use & manage.

done, please review the changes

port: 5432
ssl: false
ssl_settings:
enabled: false
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove ssl_settings.enabled and keep ssl: boolean option to prevent configuration breaking change

Copy link
Contributor Author

@U1F974 U1F974 Jan 30, 2026

Choose a reason for hiding this comment

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

Should it look like this ?

...
  port: 5432
  ssl: false
  ssl_settings:
    reject_unauthorized: false
    ca: '/absolute/path/to/server-certificates/root.crt'
    cert: '/absolute/path/to/client-certificates/postgresql.crt'
    key: '/absolute/path/to/client-key/postgresql.key'
...

Copy link
Owner

Choose a reason for hiding this comment

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

yes 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Chocobozzz
Copy link
Owner

Thank you

@Chocobozzz Chocobozzz merged commit 3f90624 into Chocobozzz:develop Feb 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants