Closed hvp1991 closed 1 month ago
For database names we have a regexp in place which does not allow hivens. Unfortunately, the PR to make it configurable got stuck at some point.
About user creation failing, I think this part (and admin template) of the SQL command does not take special characters into account. Should be easy to fix.
Thanks @FxKu for the response, Just wanted to confirm the PR to make it configurable would also support special chars in database names (i.e hyphen -
). Also Can we make sure when we have special character in database name all the following process / operations (user creation, role creation and any other things) would support the same and sql command is compatible as well using double quotes..
Please, answer some short questions which should help us to understand your problem / question better?
We are using zalando operator, However when we try to create database with special character in name (to be specific hyphen
-
), we do notice some errors in operator logs! In this example you can find db name isapp-new
I do see credentials are getting created in zalando , However while syncing roles it gives specifically following error while creating role, The strange part is
app-new_owner
role andapp-new_owner_user
user got created but fails with reader, writer roles and users!As per the code base special characters are allowed since queries are used with special character..!!
Error:
Roles , Users and DBs:
Postgresql cluster:
Logs: