[COMMON] Allow to use ' in mysql passwords 70/106470/3
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 22 Apr 2020 22:11:44 +0000 (00:11 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 27 Apr 2020 18:50:52 +0000 (20:50 +0200)
commitf5e74e506c8ae56f4a7af7dfa516c5733fadb22e
treef66b73376e4102f210e6fd6099342e6c6be5d9c8
parentf69c491ed06b017fe439ff8ff48ac896e93d0f52
[COMMON] Allow to use ' in mysql passwords

derivePassword which we use to generate our passwords includes ' in
set of special characters that can be used in passwords.

Current implementation of bitnami configure-mysql.sh simply
concatenates password surrounded with '' rest of SQL query. This
causes issues if password contains ' as it creates invalid SQL statement.

To fix this issue we just patch the script and escape the special '
character in password.

Issue-ID: OOM-2246
Reported-by: Mateusz Pilat <m.pilat@partner.samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I3d2150760755e55558e2045cbb7ca5693c8ab71f
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
kubernetes/common/mariadb-galera/resources/config/configure-mysql.sh [new file with mode: 0755]
kubernetes/common/mariadb-galera/templates/configmap.yaml
kubernetes/common/mariadb-galera/templates/statefulset.yaml