Skip to content

Director daemon fails with unquoted special characters in resources.ini #426

@afeefghannam89

Description

@afeefghannam89

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions