Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-781 Use databaseAdmin user in MongoDB clusters (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
recharte authored Jan 23, 2024
1 parent a63eea5 commit 59ddb42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/database_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))
Expand Down

0 comments on commit 59ddb42

Please sign in to comment.