When there is an unquoted string containing special characters anywhere in the icingaweb2 resources.ini file, regardless in which resource section, the Director daemon will fail to start with the error "DB configuration is not valid". It seems that the Director validates the entire resource.ini file, not only its own database section.
The template ini_template.j2 places quotes around a string only when it contains =, !, or a space (" "). However, there are passwords that do not include these characters but do contain others, such as }, [, ?, and so on.
I believe icingaweb2 quotes all values in the resource.ini file. Wouldn’t it be better to follow Icinga Web’s standard parsing behavior instead of handling each value type differently?