[SO] Fix SQL DB user creation when password contains special chars 15/111715/7
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 25 Aug 2020 20:50:12 +0000 (22:50 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 16 Oct 2020 07:35:15 +0000 (07:35 +0000)
commitdf44d8757fcaf8579ebd45cede1d6bfc99dd727d
tree830fec846acdb92a9534fdc3a484939a48eaba74
parent7c18bb5ae08838bc97f31a612cf4689d80a614e6
[SO] Fix SQL DB user creation when password contains special chars

SO uses custom scripts to create DBs and users.
Those scripts were not escaping properly special characters that may
appear in our auto-generated passwords.

Fix this issue by adding special characters escaping to those scripts.

Issue-ID: OOM-2328
Reported-by: Marat Salakhutdinov <marat.salakhutdinov@bell.ca>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Ifce3265df154a510606e0a082c7041536e2ec303
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/98-create-so-user.sh
kubernetes/so/components/so-mariadb/resources/config/docker-entrypoint-initdb.d/99-create-so-admin.sh