From d699ae077533ab7ad1254a4463d81617ea60841c Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Tue, 26 Aug 2025 17:33:39 -0600 Subject: [PATCH] feat: mark connection strings as sensitive Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- internal/river/config.go | 2 +- pkg/riverqueue/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/river/config.go b/internal/river/config.go index bd6a4e9..e9f2907 100644 --- a/internal/river/config.go +++ b/internal/river/config.go @@ -12,7 +12,7 @@ type Config struct { Logger Logger `koanf:"-" json:"-"` // DatabaseHost for connecting to the postgres database - DatabaseHost string `koanf:"databaseHost" json:"databaseHost" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"` + DatabaseHost string `koanf:"databaseHost" json:"databaseHost" sensitive:"true" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"` // Queues to be enabled on the server, if not provided, a default queue is created Queues []Queue `koanf:"queues" json:"queues" default:""` // Workers to be enabled on the server diff --git a/pkg/riverqueue/client.go b/pkg/riverqueue/client.go index fbf55f5..e3b6d9c 100644 --- a/pkg/riverqueue/client.go +++ b/pkg/riverqueue/client.go @@ -58,7 +58,7 @@ type JobClient interface { // Config settings for the river client type Config struct { // ConnectionURI is the connection URI for the database - ConnectionURI string `koanf:"connectionURI" json:"connectionURI" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"` + ConnectionURI string `koanf:"connectionURI" json:"connectionURI" sensitive:"true" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"` // RunMigrations is a flag to determine if migrations should be run RunMigrations bool `koanf:"runMigrations" json:"runMigrations" default:"false"` // RiverConf is the river configuration