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

Make the database root user require a password. #273

Closed
wants to merge 1 commit into from

Conversation

luckydonald
Copy link
Contributor

@luckydonald luckydonald commented Apr 4, 2024

With MYSQL_ALLOW_EMPTY_PASSWORD=yes
and no MYSQL_ROOT_PASSWORD set,
it will use the default MYSQL_ROOT_PASSWORD=,

resulting in the root user having an EMPTY PASSWORD per default,
too easily resulting in #272.

5220223266285805472-y

With `MYSQL_ALLOW_EMPTY_PASSWORD=yes` it will use the default `MYSQL_ROOT_PASSWORD=`,
resulting in the root user having an EMPTY PASSWORD per default,
too easily resulting in anonaddy#272.
@@ -11,7 +11,6 @@ services:
volumes:
- "./db:/var/lib/mysql"
environment:
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
Copy link
Member

@crazy-max crazy-max May 4, 2024

Choose a reason for hiding this comment

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

This is just an example and not necessary to make it require. Please see my comment in related issue #272 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"It is not necessary to make this secure on default." - Why, what's the hurt in this?

Copy link
Member

@crazy-max crazy-max May 15, 2024

Choose a reason for hiding this comment

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

As stipulated in #272 (comment) I don't mind if we set MARIADB_RANDOM_ROOT_PASSWORD=yes instead.

Also one of these is required anyway, you can't just remove this env: https://hub.docker.com/_/mariadb

image

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.

None yet

2 participants