Skip to content

List-Like Config-Entries should not be overwritten by appended by other config-files in ncpa.cfg.d #1434

Description

@Ryeera

Current Behavior

Config-Entries that have lists, like run_with_sudo or allowed_hosts are currently being overwritten if they are defined in both the main config ncpa.cfg as well as another config in ncpa.cfg.d. This causes issues when for example a global main ncpa.cfg is rolled out and a user adds a local ncpa.cfg.d/config.cfg to for example add another command that should be run with sudo. This then causes the monitoring to not function anymore for all other commands requiring sudo.

Expected Behavior

Instead of overwriting list-like config-entries like the one mentioned above, these entries should be appended, so the sum of all configs is stored in the config-entry. This way, users can add more commands which should run with sudo without breaking standardized monitoring.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions