From 59ddb422ac5c6b4dad31a54e8a3f45ef33598f47 Mon Sep 17 00:00:00 2001 From: Diogo Recharte Date: Tue, 23 Jan 2024 12:49:50 +0000 Subject: [PATCH] EVEREST-781 Use databaseAdmin user in MongoDB clusters (#403) --- api/database_cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/database_cluster.go b/api/database_cluster.go index 88733b70..5a5e1930 100644 --- a/api/database_cluster.go +++ b/api/database_cluster.go @@ -103,8 +103,8 @@ func (e *EverestServer) GetDatabaseClusterCredentials(ctx echo.Context, name str response.Username = pointer.ToString("root") response.Password = pointer.ToString(string(secret.Data["root"])) case everestv1alpha1.DatabaseEnginePSMDB: - response.Username = pointer.ToString(string(secret.Data["MONGODB_USER_ADMIN_USER"])) - response.Password = pointer.ToString(string(secret.Data["MONGODB_USER_ADMIN_PASSWORD"])) + response.Username = pointer.ToString(string(secret.Data["MONGODB_DATABASE_ADMIN_USER"])) + response.Password = pointer.ToString(string(secret.Data["MONGODB_DATABASE_ADMIN_PASSWORD"])) case everestv1alpha1.DatabaseEnginePostgresql: response.Username = pointer.ToString("postgres") response.Password = pointer.ToString(string(secret.Data["password"]))