You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable TLS support for PostgreSQL (google#3831)
This PR adds TLS support for PostgreSQL connections in the Trillian server/signer. The key changes include:
Added new flags:
postgresql_tls_ca: Path to the CA certificate file for PostgreSQL TLS connection.
postgresql_verify_full: Enable full TLS verification for PostgreSQL (sslmode=verify-full). If false, only sslmode=verify-ca is used.
If no TLS configuration is provided, the connection defaults to non-TLS, ensuring backward compatibility.
Tracking issue: google#3830
---------
Signed-off-by: Firas Ghanmi <fghanmi@redhat.com>
* update trillian server/signer pipelines on-cel-expression
Signed-off-by: Firas Ghanmi <fghanmi@redhat.com>
---------
Signed-off-by: Firas Ghanmi <fghanmi@redhat.com>
Copy file name to clipboardExpand all lines: storage/postgresql/provider.go
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ package postgresql
16
16
17
17
import (
18
18
"flag"
19
+
"fmt"
20
+
"net/url"
21
+
"os"
19
22
"sync"
20
23
21
24
"github.com/google/trillian/monitoring"
@@ -25,7 +28,9 @@ import (
25
28
)
26
29
27
30
var (
28
-
postgreSQLURI=flag.String("postgresql_uri", "postgresql:///defaultdb?host=localhost&user=test", "Connection URI for PostgreSQL database")
31
+
postgreSQLURI=flag.String("postgresql_uri", "postgresql:///defaultdb?host=localhost&user=test", "Connection URI for PostgreSQL database")
32
+
postgresqlTLSCA=flag.String("postgresql_tls_ca", "", "Path to the CA certificate file for PostgreSQL TLS connection ")
33
+
postgresqlVerifyFull=flag.Bool("postgresql_verify_full", false, "Enable full TLS verification for PostgreSQL (sslmode=verify-full). If false, only sslmode=verify-ca is used.")
0 commit comments