Skip to content

Config sync should only sync icinga config files #8068

@Mikesch-mp

Description

@Mikesch-mp

Describe the bug

Icinga still syncs every file, even it is not a `.conf`` from master to other master/satellites & agents if it inside a zone directory of the configuration master.

To Reproduce

  1. Create a file or copy evil.sh to /etc/icinga2/zones.d/global-config
  2. reload icinga2
  3. check /var/lib/icinga2/api/zones/global-config/_etc

Expected behavior

Icinga2 should only sync files with .conf extension or even better .conf files that contains only valid configuration, otherwise you can have a lot of fun on a lot of host if you are evil like me

Metadata

Metadata

Assignees

No one assigned

    Labels

    TBDTo be defined - We aren't certain about this yetarea/configurationDSL, parser, compiler, error handlingarea/distributedDistributed monitoring (master, satellites, clients)enhancementNew feature or requeststalledBlocked or not relevant yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions