remove mariadb superuser sql statements 59/33259/1
authorJorge Hernandez <jh1730@att.com>
Tue, 27 Feb 2018 21:14:14 +0000 (15:14 -0600)
committerJorge Hernandez <jh1730@att.com>
Tue, 27 Feb 2018 21:14:14 +0000 (15:14 -0600)
commit68d2d90042457360545d36874d95d561b1361a97
tree406e3a0b37a058756097ceb1dc2d0cad467adf91
parent47c1630d48e40e1fbc051fa6eae251ffbe1d4945
remove mariadb superuser sql statements

PE installation as part of data upgrade invokes
"set global" statements that are typically used
by priviledged accounts as the "root" mariadb user.

As part of the effort to clean up the mariadb docker install,
only permissions to a regular mariadb user (policy_user by default)
are given in 3 databases: onap_sdk, log, and support.
This account cannot do changes outside those.

In any case the usage of the global timeouts is questionable.
We should keep an eye if there's any potential bad side effect,
and correct it if it doesn't.   It's preferable to keep
"policy_user" with a restricted set of privileges, instead
of being a superuser (otherwise can plainly user the root account).

Change-Id: I17b1a6a2cb62a319464e1db4b3aafbc1dbf20d78
Issue-ID: POLICY-650
Signed-off-by: Jorge Hernandez <jh1730@att.com>
packages/base/src/files/install/mysql/data/161000_upgrade_script.sql