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

root with empty password security vulnerability. How to change the default password? #819

Open
Osiris-Team opened this issue Oct 24, 2023 · 0 comments

Comments

@Osiris-Team
Copy link

Osiris-Team commented Oct 24, 2023

It seems to me that the database root user with an empty password is a pretty big security vulnerability,
since many Linux distributions come with all ports open. Not only that but also other programs on the same machine can access the database easily if the password isn't changed (how to change the password programmatically btw?).

Thus I'd like to generate a random password by default for the root user instead of an empty password which then can be got programmatically like so:

Connection conn = DriverManager.getConnection(configBuilder.getURL(dbName), "root", configBuilder.getPassword("root"));

Otherwise being able to change the password for the root user programmatically via for example db.setRootPassword("pass") would be also great.

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

No branches or pull requests

1 participant