Skip to content

Commit 31d93d0

Browse files
fix(rollout): require ssl mode rollout service (#2298)
Ref: SRX-FIMM1N
1 parent 9e9b44d commit 31d93d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/rollout-service/pkg/cmd/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ type Config struct {
7575
DbMigrationsLocation string `default:"" split_words:"true"`
7676
DbMaxIdleConnections uint `required:"true" split_words:"true"`
7777
DbMaxOpenConnections uint `required:"true" split_words:"true"`
78+
DbSslMode string `default:"verify-full" split_words:"true"`
7879

7980
ArgocdServer string `split_words:"true"`
8081
ArgocdInsecure bool `default:"false" split_words:"true"`
@@ -232,7 +233,7 @@ func runServer(ctx context.Context, config Config) error {
232233
DbUser: config.DbUserName,
233234
MigrationsPath: config.DbMigrationsLocation,
234235
WriteEslOnly: false,
235-
SSLMode: "disable",
236+
SSLMode: config.DbSslMode,
236237

237238
MaxIdleConnections: config.DbMaxIdleConnections,
238239
MaxOpenConnections: config.DbMaxOpenConnections,

0 commit comments

Comments
 (0)