Bugfix of 66974: mysql_user doesnt support privileges with underscore (#66995)

* Bugfix of 66974: mysql_user doesnt support privileges with underscore

* add changelog

* add seealso
This commit is contained in:
Andrew Klychkov 2020-01-31 22:44:04 +03:00 committed by GitHub
parent aad286b403
commit 16ebeda86d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 10 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- mysql_user - fix support privileges with underscore (https://github.com/ansible/ansible/issues/66974).

View file

@ -125,6 +125,9 @@ seealso:
- name: MySQL access control and account management reference - name: MySQL access control and account management reference
description: Complete reference of the MySQL access control and account management documentation. description: Complete reference of the MySQL access control and account management documentation.
link: https://dev.mysql.com/doc/refman/8.0/en/access-control.html link: https://dev.mysql.com/doc/refman/8.0/en/access-control.html
- name: MySQL provided privileges reference
description: Complete reference of the MySQL provided privileges documentation.
link: https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html
author: author:
- Jonathan Mainguy (@Jmainguy) - Jonathan Mainguy (@Jmainguy)
@ -262,16 +265,18 @@ VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION',
'PROCESS', 'PROXY', 'RELOAD', 'REPLICATION CLIENT', 'PROCESS', 'PROXY', 'RELOAD', 'REPLICATION CLIENT',
'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN', 'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN',
'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL', 'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL',
'CREATE ROLE', 'DROP ROLE', 'APPLICATION PASSWORD ADMIN', 'CREATE ROLE', 'DROP ROLE', 'APPLICATION_PASSWORD_ADMIN',
'AUDIT ADMIN', 'BACKUP ADMIN', 'BINLOG ADMIN', 'AUDIT_ADMIN', 'BACKUP_ADMIN', 'BINLOG_ADMIN',
'BINLOG ENCRYPTION ADMIN', 'CONNECTION ADMIN', 'BINLOG_ENCRYPTION_ADMIN', 'CLONE_ADMIN', 'CONNECTION_ADMIN',
'ENCRYPTION KEY ADMIN', 'FIREWALL ADMIN', 'FIREWALL USER', 'ENCRYPTION_KEY_ADMIN', 'FIREWALL_ADMIN', 'FIREWALL_USER',
'GROUP REPLICATION ADMIN', 'PERSIST RO VARIABLES ADMIN', 'GROUP_REPLICATION_ADMIN', 'INNODB_REDO_LOG_ARCHIVE',
'REPLICATION SLAVE ADMIN', 'RESOURCE GROUP ADMIN', 'NDB_STORED_USER', 'PERSIST_RO_VARIABLES_ADMIN',
'RESOURCE GROUP USER', 'ROLE ADMIN', 'SET USER ID', 'REPLICATION_APPLIER', 'REPLICATION_SLAVE_ADMIN',
'SESSION VARIABLES ADMIN', 'SYSTEM VARIABLES ADMIN', 'RESOURCE_GROUP_ADMIN', 'RESOURCE_GROUP_USER',
'VERSION TOKEN ADMIN', 'XA RECOVER ADMIN', 'ROLE_ADMIN', 'SESSION_VARIABLES_ADMIN', 'SET_USER_ID',
'LOAD FROM S3', 'SELECT INTO S3')) 'SYSTEM_USER', 'SYSTEM_VARIABLES_ADMIN', 'SYSTEM_USER',
'TABLE_ENCRYPTION_ADMIN', 'VERSION_TOKEN_ADMIN',
'XA_RECOVER_ADMIN', 'LOAD FROM S3', 'SELECT INTO S3'))
class InvalidPrivsError(Exception): class InvalidPrivsError(Exception):