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

mysql 8 comes with mysqlx plugin listening on all interfaces by default #415

Open
zeisss opened this issue Oct 23, 2020 · 6 comments
Open
Labels

Comments

@zeisss
Copy link

zeisss commented Oct 23, 2020

Not sure if this something you want to fix in the your defaults, but this was quite surprising to us:

Mysql 8 comes with a plugin called "mysql x" that openes a second server socket (port * 10 by default) on all interfaces (in our case: the public internet).

Given that this role sets the bind-address by default to localhost, it might also wants to set the mysqlx-bind-address to something more restrictive and/or disable it default.

Docs:

@stale
Copy link

stale bot commented Jan 21, 2021

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Jan 21, 2021
@stale
Copy link

stale bot commented Feb 20, 2021

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@stale stale bot closed this as completed Feb 20, 2021
@fama
Copy link

fama commented Apr 24, 2021

I second that. I wish there was a way to disable the mysqlx with ansible variable to add to config file
mysqlx=0 as this is certainly a security risk:

ss -tulpn
Netid     State      Recv-Q     Send-Q         Local Address:Port           Peer Address:Port     Process     
...
tcp       LISTEN     0          151                127.0.0.1:3306                0.0.0.0:*                    
tcp       LISTEN     0          70                         *:33060                     *:*                    
...

@nathan-march
Copy link

This should definitely get fixed, please reopen! @geerlingguy

@stale
Copy link

stale bot commented May 20, 2021

This issue is no longer marked for closure.

@sebcmp
Copy link

sebcmp commented Jan 17, 2023

Ubuntu/Debian defaults to localhost

> grep bind /etc/mysql/mysql.conf.d/mysqld.cnf 
bind-address		= 127.0.0.1
mysqlx-bind-address	= 127.0.0.1

This role should really default to 127.0.0.1 on both bind addresses instead of 0.0.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants