Skip to content
Snippets Groups Projects
Commit c5a791a6 authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Merge branch 'mongo-connect-testing' into 'main'

Remove explicit user/pass credentials for MongoDB

See merge request !22
parents f3aa3e9d 7d1060de
No related branches found
No related tags found
1 merge request!22Remove explicit user/pass credentials for MongoDB
Pipeline #51814 passed with stages
in 1 minute and 14 seconds
......@@ -56,11 +56,7 @@ func main() {
// connect to mongo db
db, err := mongo.Connect(
context.Background(),
options.Client().ApplyURI(cfg.Mongo.Addr).SetAuth(options.Credential{
Username: cfg.Mongo.User,
Password: cfg.Mongo.Pass,
}),
)
options.Client().ApplyURI(cfg.Mongo.Addr))
if err != nil {
logger.Fatal("error connecting to mongodb", zap.Error(err))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment