Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: hide data source password to client (#845)

STEVEN54e911d4c6c7
diff --git a/api/data_source.go b/api/data_source.go
index 6af5f46a2a..a86957e316 100644
--- a/api/data_source.go
+++ b/api/data_source.go
@@ -121,7 +121,8 @@ type DataSource struct {
Name string `jsonapi:"attr,name"`
Type DataSourceType `jsonapi:"attr,type"`
Username string `jsonapi:"attr,username"`
- Password string `jsonapi:"attr,password"`
+ // Do not return the password to client
+ Password string
}
// DataSourceCreate is the API message for creating a data source.