Ah I see if the top of my head the issue might be that cockroach tried to Eval the user out of the cert but cannot do that since none is included which might become a problem when ZITADEL opens the sql connection
The root cert is used for both users, which is fine, I guess. @adlerhurst does it make sense to move that property to a level higher in the config, as this is always the same for all users, I guess?
But there is just one client cert you can configure, which is then just used for the admin user, by default.
I think we should deprecate dbSslClientCrtSecret and split it to the properties dbSslAdminCrtSecret and dbSslUserCrtSecret which both default to dbSslClientCrtSecret for backwards compatibility. This should be fine, as TLS already needs to be enabled explicitly.
The idea back then was that it's something you need to connect using the user and when we introduced the admin field we didn't want to break the configuration.