Puppet Master accepting request without certificates

103 views
Skip to first unread message

kaustubh chaudhari

unread,
Dec 4, 2013, 6:28:26 PM12/4/13
to puppet...@googlegroups.com
Hi,

Auto sign is not configured.

1. installed puppet agent on a windows box.
2. accepted the certificate
3. uninstalled puppet agent from the windows box.
4. puppet cert clean "wintest"
5. puppet node clean "wintest"
6 puppet node deactivate "wintest"

7. install puppet agent on windows box(did no modification to windows box except reboot)
8. puppet agent --test (on wintest)

Puppet master accepts the connections without asking for certs, Puppetdb accepts the facts and reports for this node without hesitation.

==
2013-12-04 13:01:17,274 INFO  [command-proc-51] [puppetdb.command] [393a2937-5df1-4972-87ca-6f5f59170911] [deactivate node] wintest
2013-12-04 13:02:16,410 INFO  [command-proc-52] [puppetdb.command] [beb89340-2ef5-473b-9e2e-cd9defada826] [replace facts] wintest
2013-12-04 13:02:16,770 INFO  [command-proc-51] [puppetdb.command] [7b45f94d-367a-4ccc-959c-6a3e086f0911] [replace catalog] wintest
2013-12-04 13:02:17,340 INFO  [command-proc-52] [puppetdb.command] [31a82ba2-7ede-4252-90d2-6a45984c257b] [store report] puppet v3.3.2 - wintest
==

This is so weird, how is this happening?

Did some one face this issue, can someone help me understand this behavior.

How do i make sure that once deactivate/cleaned from puppet master certs removed, net puppet run should ask for the cert request.

-Kaustubh

kaustubh chaudhari

unread,
Dec 4, 2013, 6:50:44 PM12/4/13
to puppet...@googlegroups.com
Ok,

I understood my doubts partially!

When we uninstall puppet agent from windows box, it will not delete the APP Data folder for puppet which contains the certificates, to generate new certificate request you need to uninstall puppet agent and delete this directory.

Further, i understood that puppetdb will deactivate the nodes but it will not delete/purge it, to purge we need set "node-purge-ttl" in the puppetdb config.

What i was not able to understand is if i have removed the agent certificates from the puppet master "puppet cert clean wintest" why the request is getting accepted by master?

Can someone please help me to understand this!

-Kaustubh

Felix Frank

unread,
Dec 6, 2013, 10:48:01 AM12/6/13
to puppet...@googlegroups.com
Hi,

removing the cert data is one thing, but to make sure the old certficate
cannot be used again, it must be effectively revoked.

The (current) documentation states that puppet cert clean does in fact
revoke the certificate, so you should not be seeing this issue.

Which version of puppet is this?

Regards,
Felix

kaustubh chaudhari

unread,
Dec 6, 2013, 12:44:50 PM12/6/13
to puppet...@googlegroups.com
Hi,

Thanks for the reply Felix!

I am on 3.3.2!

once i remove the cert with puppet agent clean! I dont see its certificate in the puppet cert list -all

However, agent can still run the catalog! this is what worries me!!

-Kaustubh

Felix Frank

unread,
Dec 6, 2013, 1:06:23 PM12/6/13
to puppet...@googlegroups.com
That's normal behavior, because the client still retains the cert and
it's still signed with your puppet CA and therefor trusted.

You may want to scrutinize the CRL file, perhaps it's not used properly.
Also try and find out if puppet cert revoke works better than pupet cert
clean wrt. the CRL.

HTH,
Felix
Reply all
Reply to author
Forward
0 new messages