Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo DB UI Default Creds #81

Closed
wants to merge 0 commits into from

Conversation

sam57719
Copy link
Collaborator

Added Mongo DB UI default basic auth credentials and made it readonly.

@sam57719 sam57719 linked an issue May 13, 2024 that may be closed by this pull request
Copy link
Member

@sjefferson99 sjefferson99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sam57719 I've checked out this branch and adjusted .env file to include the credentials lines, but still getting auth errors. Can you reproduce?

[+] Running 5/5
✔ Network smib-bridge-network Created0.1s
✔ Container smib-db Created0.1s
✔ Container smib-slack Created0.1s
✔ Container smib-db-ui Created0.1s
✔ Container smib-webserver Created0.0s
smib-db-ui | /docker-entrypoint.sh: connect: Connection refused
smib-db-ui | /docker-entrypoint.sh: line 15: /dev/tcp/smib-db/27017: Connection refused
smib-db-ui | Server is open to allow connections from anyone (0.0.0.0)
smib-db-ui | basicAuth credentials are "admin:pass", it is recommended you change this in your config.js!
smib-slack | [INFO] [2024-05-13T21:44:02+0000] main(_listener:L61): app.num_connections = 1

@sam57719 sam57719 closed this May 13, 2024
@sam57719 sam57719 deleted the 78-mongo-db-using-default-credentials branch May 13, 2024 22:20
@sam57719 sam57719 restored the 78-mongo-db-using-default-credentials branch May 13, 2024 22:24
@sam57719 sam57719 reopened this May 13, 2024
@sam57719
Copy link
Collaborator Author

No Default credentials warning - need to set the username and password in the .env file (see template)

2024-05-14 22:20:31 Waiting for smib-db:27017...
2024-05-14 22:20:32 No custom config.js found, loading config.default.js
2024-05-14 22:20:32 Welcome to mongo-express 1.0.2
2024-05-14 22:20:32 ------------------------
2024-05-14 22:20:32 
2024-05-14 22:20:32 
2024-05-14 22:20:32 Mongo Express server listening at http://0.0.0.0:8081
2024-05-14 22:20:32 Server is open to allow connections from anyone (0.0.0.0)

@sjefferson99 Still need to remove the secrets from this branch history

@sam57719 sam57719 closed this May 15, 2024
@sam57719 sam57719 force-pushed the 78-mongo-db-using-default-credentials branch from 756a1da to d4f8773 Compare May 15, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mongo db using default credentials
2 participants