Skip to content

fix(security): enable system trusted root certificates in buildSecurityContext (#917) - #948

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/917-security-context-system-trusted-roots
Sep 25, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/917-security-context-system-trusted-roots

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Initialize SecurityContext(withTrustedRoots: true) in buildSecurityContext (lib/core/security/ssl_certificate_support.dart) so that system root CAs are available when client certificate/key authentication is configured without a custom root certificate.
  • Also initialize SecurityContext(withTrustedRoots: true) in PostgresConnection._buildSettings (lib/core/database/postgres_connection.dart).
  • Add tests in test/core/security/ssl_certificate_support_test.dart verifying buildSecurityContext with system trusted roots and custom root certs.

Linked issue

Closes #917

Checklist

  • flutter analyze passes locally
  • Scope matches the linked issue only (no drive-by refactors)
  • PR targets dev

@github-actions github-actions Bot added bug Something isn't working core Core library logic and services connections Database connections, URI parsing, pools labels Sep 25, 2026
@github-actions github-actions Bot added this to the 0.4.18 milestone Sep 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 8ebd455 into dev Sep 25, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/917-security-context-system-trusted-roots branch September 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working connections Database connections, URI parsing, pools core Core library logic and services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant