Jira (PUP-9720) puppet agent --fingerprint is broken

30 views
Skip to first unread message

Josh Cooper (JIRA)

unread,
May 24, 2019, 6:10:02 PM5/24/19
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Task PUP-9720
puppet agent --fingerprint is broken
Issue Type: Task Task
Assignee: Unassigned
Created: 2019/05/24 3:09 PM
Priority: Normal Normal
Reporter: Josh Cooper

Prior to 6.4, puppet agent --fingerprint would print the hash of the client cert or client's CSR. It would generate a private key, submit the CSR, as part of that process.

In 6.4 the option doesn't work, because it's trying to pass onetime: true keyword arguments, which the state machine doesn't accept. It also doesn't print the hash of the CSR, which is important for things like PUP-9715.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
May 24, 2019, 6:10:03 PM5/24/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Coremunity

Josh Cooper (JIRA)

unread,
May 24, 2019, 6:10:03 PM5/24/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.5.0

Josh Cooper (JIRA)

unread,
May 29, 2019, 12:50:03 PM5/29/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Hopper

Josh Cooper (JIRA)

unread,
Jun 6, 2019, 12:21:02 PM6/6/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.4.3

Josh Cooper (JIRA)

unread,
Jun 6, 2019, 12:21:03 PM6/6/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Affects Version/s: PUP 6.4.0

Josh Cooper (JIRA)

unread,
Jun 11, 2019, 6:24:02 PM6/11/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Prior to 6.4, {{puppet agent --fingerprint}} would print the hash of the client cert or client's CSR. It In the process it would generate a private key, submit the CSR, as part of that process attempt to download the client cert (which might be signed due to autosigning) and print the cert fingerprint (if we got one) or fallback to the CSR fingerprint .


In 6.4 the option doesn't work, because it's trying to pass {{onetime: true}} keyword arguments, which the state machine doesn't accept. It also doesn't print the hash of the CSR, which is important for things like PUP-9715.

Josh Cooper (JIRA)

unread,
Jun 11, 2019, 6:29:04 PM6/11/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Prior to 6.4, {{puppet agent --fingerprint}} would print the hash of the client cert or client's CSR. In the process it would generate a private key, submit download the CSR CA cert and CRL , attempt to download the client cert (which might be signed due to autosigning) , and print the cert 's fingerprint (if we got one) . If that failed it would attempt to load the client's CSR locally or fallback retrieve the CSR from the server, and print its fingerprint.

Note {{puppet agent --fingerprint}} never submitted the CSR, but it might seem
to work if a previous agent run had already submitted the CSR , and either due to manual intervention or autosigning, the CSR is signed before {{puppet agent -- fingerprint }} is run .


In 6.4 the option doesn't work, because it's trying to pass {{onetime: true}} keyword arguments, which the state machine doesn't accept. It also doesn't print the hash of the CSR, which is important for things like PUP-9715.

Josh Cooper (JIRA)

unread,
Jun 12, 2019, 12:00:12 PM6/12/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Hopper Platform Core KANBAN

Josh Cooper (JIRA)

unread,
Jun 12, 2019, 12:01:06 PM6/12/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.5.0
Fix Version/s: PUP 6.6.0

Josh Cooper (JIRA)

unread,
Jun 17, 2019, 5:19:03 PM6/17/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes Summary: If the agent doesn't have a client cert yet, then `puppet agent --fingerprint` will now print the SHA256 digest of the certificate request (CSR) like it used to do in Puppet < 6.4.
Release Notes: Bug Fix

Josh Cooper (JIRA)

unread,
Jun 17, 2019, 5:35:03 PM6/17/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes Summary: If the agent doesn't have a client cert yet, then `puppet agent --fingerprint` will now print the SHA256 digest of the certificate request (CSR) like it used to do in Puppet < 6.4. Note this the digest of the DER encoded certificate or CSR.

Josh Cooper (JIRA)

unread,
Jun 17, 2019, 5:35:03 PM6/17/19
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper

Josh Cooper (JIRA)

unread,
Jun 17, 2019, 8:58:02 PM6/17/19
to puppe...@googlegroups.com

Octavian Larion (JIRA)

unread,
Jun 26, 2019, 9:16:03 AM6/26/19
to puppe...@googlegroups.com

This has arrived on master and is included in 6.6.0 release, closing this ticket.

Jean Bond (JIRA)

unread,
Jun 28, 2019, 2:01:02 PM6/28/19
to puppe...@googlegroups.com
Jean Bond updated an issue
 
Change By: Jean Bond
Labels: resolved-issue-added
Reply all
Reply to author
Forward
0 new messages