Jira (PDB-1085) `puppetdb ssl-setup` should allow arbitrary certnames

2 views
Skip to first unread message

Zachary Stern (JIRA)

unread,
Dec 29, 2014, 1:41:25 PM12/29/14
to puppe...@googlegroups.com
Zachary Stern created an issue
 
PuppetDB / New Feature PDB-1085
`puppetdb ssl-setup` should allow arbitrary certnames
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2014/12/29 10:40 AM
Priority: Normal Normal
Reporter: Zachary Stern

Currently, in order to load balance PuppetDB in PE, you need to configure your multiple PuppetDBs to use a single shared certificate.

The puppet_enterprise::profile::puppetdb class including with PE allows you to specify this alternate common cert to use instead of the PuppetDB node's agent cert.

However, if you later use puppetdb ssl-setup, which is very commonly used in troubleshooting scenarios, this will always be overwritten, due to the way the command determines what cert to use:

mycertname=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint  certname`
 
orig_public_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint  hostcert`
orig_private_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint hostprivkey`
orig_ca_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint localcacert`

That's definitely going to make troubleshooting PuppetDB issues cumbersome for LEI customers.

One potential remediation could be to include a command line flag for specifying an arbitrary certname, something like: puppetdb ssl-setup --certname foobaz

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Zachary Stern (JIRA)

unread,
Dec 29, 2014, 1:42:29 PM12/29/14
to puppe...@googlegroups.com

Brett Gray (JIRA)

unread,
Dec 29, 2014, 5:22:32 PM12/29/14
to puppe...@googlegroups.com
Brett Gray commented on New Feature PDB-1085

Good call Zachary Stern, I found this issue the other day doing an engagement and clearly forgot to raise a ticket!

Zachary Stern (JIRA)

unread,
Dec 29, 2014, 5:23:30 PM12/29/14
to puppe...@googlegroups.com
Zachary Stern updated an issue
 
Change By: Zachary Stern
Currently, in order to load balance PuppetDB in PE, you need to configure your multiple PuppetDBs to use a single shared certificate.

The {{puppet_enterprise::profile::puppetdb}} class  including  included  with PE allows you to specify this alternate common cert to use instead of the PuppetDB node's agent cert.

However, if you later use {{puppetdb ssl-setup}}, which is *very* commonly used in troubleshooting scenarios, this will always be overwritten, due to the way the command determines what cert to use:

{code}

mycertname=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint  certname`

orig_public_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint  hostcert`
orig_private_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint hostprivkey`
orig_ca_file=`puppet master --confdir=$agent_confdir --vardir=$agent_vardir --configprint localcacert`
{code}


That's definitely going to make troubleshooting PuppetDB issues cumbersome for LEI customers.

One potential remediation could be to include a command line flag for specifying an arbitrary {{certname}}, something like: {{puppetdb ssl-setup --certname foobaz}}

Zachary Stern (JIRA)

unread,
Dec 29, 2014, 5:24:23 PM12/29/14
to puppe...@googlegroups.com

Kenneth Barber (JIRA)

unread,
Jan 8, 2015, 12:56:41 PM1/8/15
to puppe...@googlegroups.com

Zee Alexander (JIRA)

unread,
Jan 26, 2016, 6:03:03 PM1/26/16
to puppe...@googlegroups.com
Zee Alexander commented on New Feature PDB-1085
 
Re: `puppetdb ssl-setup` should allow arbitrary certnames

Kenneth Barber this is still valid. We still need to generate certificates that share common certnames for load balancing multiple PuppetDBs at this time.

This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Russell Mull (JIRA)

unread,
May 17, 2017, 2:22:04 PM5/17/17
to puppe...@googlegroups.com
Russell Mull commented on New Feature PDB-1085

Zee Alexander I'd expect dns-alt-names to be used for load balancing situations; would the ability to specify that in ssl-setup give you what you need?

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Russell Mull (JIRA)

unread,
May 17, 2017, 2:22:04 PM5/17/17
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:45:58 PM5/18/17
to puppe...@googlegroups.com

Nick Walker (JIRA)

unread,
May 22, 2017, 1:37:03 PM5/22/17
to puppe...@googlegroups.com
Nick Walker commented on New Feature PDB-1085
 
Re: `puppetdb ssl-setup` should allow arbitrary certnames

Russell Mull I believe you have to use the same cert due to puppetserver something or other.

See puppetdb-behind-a-load-balancer-causes-puppet-server-errors

and https://github.com/pizzaops/pizzaops-puppetdb_shared_cert

But this ticket may be dated as well. I'm not sure you can use puppetdb ssl-setup in PE without causing some issues.
See PE-16316

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:57:08 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
 
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages