Skip to content

Commit 53a0b7c

Browse files
feat: mark connection strings as sensitive (#137)
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 27486aa commit 53a0b7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/river/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Config struct {
1212
Logger Logger `koanf:"-" json:"-"`
1313

1414
// DatabaseHost for connecting to the postgres database
15-
DatabaseHost string `koanf:"databaseHost" json:"databaseHost" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"`
15+
DatabaseHost string `koanf:"databaseHost" json:"databaseHost" sensitive:"true" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"`
1616
// Queues to be enabled on the server, if not provided, a default queue is created
1717
Queues []Queue `koanf:"queues" json:"queues" default:""`
1818
// Workers to be enabled on the server

pkg/riverqueue/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type JobClient interface {
5858
// Config settings for the river client
5959
type Config struct {
6060
// ConnectionURI is the connection URI for the database
61-
ConnectionURI string `koanf:"connectionURI" json:"connectionURI" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"`
61+
ConnectionURI string `koanf:"connectionURI" json:"connectionURI" sensitive:"true" default:"postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable"`
6262
// RunMigrations is a flag to determine if migrations should be run
6363
RunMigrations bool `koanf:"runMigrations" json:"runMigrations" default:"false"`
6464
// RiverConf is the river configuration

0 commit comments

Comments
 (0)