-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icinga master does not recognize ticket created on agent #33
Comments
Hi, on the master, you can configure a constant named When you generate an agent certificate, the agent can also generate the so called ticket, which is an hash of the hostname of the agent and the Using this way, you dont have to approve the pki request manually on the master. |
Thank you for the explanation! I understand how this works now. I would like to point out, however, that if this playbook was run locally on each agent, there would be some security concerns with this approach as the The Icinga documentation mentions the following regarding handling of TicketSalt:
Unfortunately, my use-case prohibits running this playbook remotely, so I will have to follow the standard ticket-based approach to avoid distribution of my global |
tl;dr for future readers: The above error is caused by the |
In the
icinga_agent
role during agent registration, there are a critical series of steps that create the agent certificate and send a pki request to the master:In my testing, it appears that the "generate ticket and save it as a variable" step (which is repeated twice for unknown reasons) generates a ticket that only the agent knows about. Thus, in the final step, when the agent sends a pki request to the icinga master, the request is rejected due to an unknown ticket:
When I removed the ticket generation from the above steps, the pki request registered properly with the Icinga master and I was able to subsequently approve it.
My question is, what is the intended purpose of the ticket generation? Are these tasks assumed to be ran on the master instead of the agent?
Thanks for maintaining such a useful library! Cheers!
The text was updated successfully, but these errors were encountered: