From 67a41dca83206d31d79b1224ace7b304aef6f857 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 11 Sep 2023 09:11:48 -0700 Subject: [PATCH] Remove db datasource from error msg to prevent leaking of secrets (#1528) --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index b3137a50..03295f22 100644 --- a/db/db.go +++ b/db/db.go @@ -119,7 +119,7 @@ func New(c *Config) (AuthDB, error) { db, err := nosql.New(c.Type, c.DataSource, opts...) if err != nil { - return nil, errors.Wrapf(err, "Error opening database of Type %s with source %s", c.Type, c.DataSource) + return nil, errors.Wrapf(err, "Error opening database of Type %s", c.Type) } tables := [][]byte{