# Why are satellites declared by name in the zones configuration?

**URL:** <https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400>\
**Category:** Icinga 2\
**Tags:** icinga2\
**Created:** [December 19, 2024, 10:28am UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400 "2024-12-19T10:28:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 10:28am UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/1 "2024-12-19T10:28:53Z")

</div>

Hello everyone,

This is a question related to the Icinga technology, it is not really a problem.

In the configuration for an agent, the zone to which it belongs has to be declared, together with the satellite(s) that will contact the agent.

Note that this question is limited to the use case where the satellite contacts the agent, and the agent never initiates the connection to the satellite.

Why is it needed to list the satellites without their IP address? What is Icinga doing with this information? Is it checking the identity of the incoming satellite using its certificate, and checking that the name is listed in the zones.conf?

If anyone has insight on this, or just confirms my intuition, I’ll be happy to understand.

Thank you,

Jean

---

<div class="post-metadata">

**Author:** ![rivad](https://community.icinga.com/user_avatar/community.icinga.com/rivad/32/5852_2.png) [@rivad](https://community.icinga.com/u/rivad)\
**Post date:** [December 19, 2024, 12:06pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/2 "2024-12-19T12:06:40Z")

</div>

Yes, AFAIK the zone isn’t in the certificate and isn’t checked only the hostname and the zones.conf is declaring it’s location in the hierarchy.

---

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 12:29pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/3 "2024-12-19T12:29:45Z")

</div>

I think we have the same “intuition”. But the questions remain: Why is it needed to list the satellites without their IP address (or host name) within the agent’s zones.conf file? Why is the parent zone name not enough? What is Icinga doing with the information of the satellite endpoint names?

Assuming of course we are in the case where the satellite contacts the agent, and the agent never initiates the connection to the satellite.

---

<div class="post-metadata">

**Author:** ![rivad](https://community.icinga.com/user_avatar/community.icinga.com/rivad/32/5852_2.png) [@rivad](https://community.icinga.com/u/rivad)\
**Post date:** [December 19, 2024, 1:09pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/4 "2024-12-19T13:09:10Z")

</div>

How else should the agent know, without this, if an other node is to be allowed to send it config and commands and where to send the results of check executions.

---

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 2:07pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/5 "2024-12-19T14:07:25Z")

</div>

> [@rivad](#):
>
> How else should the agent know

OK, this makes sense. Now, the agent, knowing the names of its parents and wanting to validate an incoming connection, how does it check these names? Does it verify the certificate of the connecting party? Or does it do a simple DNS check? Or both? Or something else?

---

<div class="post-metadata">

**Author:** ![rivad](https://community.icinga.com/user_avatar/community.icinga.com/rivad/32/5852_2.png) [@rivad](https://community.icinga.com/u/rivad)\
**Post date:** [December 19, 2024, 2:16pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/6 "2024-12-19T14:16:13Z")

</div>

Yes, it verifies the certificate. This was BTW the recent security issue.

> **[Uncovering a Client Certificate Verification Bypass in Icinga](https://icinga.com/blog/uncovering-a-client-certificate-verification-bypass-in-icinga/)**
>
> This is a guest blogpost from Finn Steglich. As of Icinga 2 versions 2.14.3, 2.13.10, 2.12.11, and 2.11.12 from 12th November 2024, a critical security

---

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 2:55pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/7 "2024-12-19T14:55:54Z")

</div>

> [@rivad](#):
>
> it verifies the certificate

OK great. Can I then install the same certificate on a new satellite? Would the agent be able to realise it is being contacted by a “fake” satellite?

Suppose the following scenario:

sat1 and sat2 defining zone mysat  
agent1 with parent mysat

Everything works well, then I take down sat1, replace it with sat3, install sat1 certificate on sat3, and restart with mysat zone containing sat2 and sat3 (pretending to be sat1). Will agent1 be fooled by sat3 pretending to be sat1? Will sat2 be fooled? Will the masters be fooled?

---

<div class="post-metadata">

**Author:** ![rivad](https://community.icinga.com/user_avatar/community.icinga.com/rivad/32/5852_2.png) [@rivad](https://community.icinga.com/u/rivad)\
**Post date:** [December 19, 2024, 3:04pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/8 "2024-12-19T15:04:46Z")

</div>

As long as the names in the certificate and the zones.conf file match, yes.  
If hostname == endpoint name then I would also give sat3 the same hostname and copy `/etc/icinga2` from sat1.

`icinga2 --version` gives you all the paths, where icinga keeps it’s configuration, states, data etc…

---

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 4:15pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/9 "2024-12-19T16:15:15Z")

</div>

Knowing this, it may be a good idea to - on purpose and from the start - give an abstract name to satellites, so that if you need to migrate your satellites to new servers with new names and new IP addresses, the agents can continue to work with the same configuration file (using the abstract names).

---

<div class="post-metadata">

**Author:** ![jeanm](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jeanm](https://community.icinga.com/u/jeanm)\
**Post date:** [December 19, 2024, 4:16pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/10 "2024-12-19T16:16:08Z")

</div>

Side question then… Is the Icinga PKI implementation able to deliver certificates with alternate names?

---

<div class="post-metadata">

**Author:** ![rivad](https://community.icinga.com/user_avatar/community.icinga.com/rivad/32/5852_2.png) [@rivad](https://community.icinga.com/u/rivad)\
**Post date:** [December 19, 2024, 4:58pm UTC](https://community.icinga.com/t/why-are-satellites-declared-by-name-in-the-zones-configuration/14400/11 "2024-12-19T16:58:34Z")

</div>

Not yet but maybe it will come.
