Jira (PUP-8965) Change dns-alt-names option to subject-alt-names

2 views
Skip to first unread message

Maggie Dreyer (JIRA)

unread,
Jun 26, 2018, 5:00:02 PM6/26/18
to puppe...@googlegroups.com
Maggie Dreyer created an issue
 
Puppet / Improvement PUP-8965
Change dns-alt-names option to subject-alt-names
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2018/06/26 1:59 PM
Priority: Normal Normal
Reporter: Maggie Dreyer

As part of adding support for IP subject alt names when generating certificates, we investigated changing the name of the option that controls this to subject-alt-names instead of the current dns-alt-names, since we no longer support only DNS. This prove to be rather complicated due to the following:

  • The flag is not confined to the cert command, but also exists as a setting and as an option on some of the certificate-related faces.
  • Since faces are not allowed to have options with the same name as existing settings, the face versions of the flag have dash separators, while the setting has underscores, and there is complicated logic to handle this conflict correctly. (See https://github.com/puppetlabs/puppet/blob/master/lib/puppet/face/certificate.rb#L64-L74)
  • There is the related --allow-dns-alt-names flag, which is somewhat simpler because it doesn't have a corresponding setting, but still needs to updated in a similar way.

The face issue is the most tangled, and could be dealt with by:
1) removing the dns_alt_names setting and adding a flag explicitly for all the subcommands that need it. This would require deprecation in the 5.x series, and we'd need to make sure that there aren't important workflows that rely on the setting that can't be replaced with the flag.
2) removing the certificate-related faces with the conflict in favor of a more robust agent-side CLI that can use the setting the way the cert command can. This is something we were hoping to do for Puppet 6 anyway, but may run out of time to do.

For the time being, the IP subject alt names are supported, just under the dns-alt-names setting/flag. This is misleading and should be fixed one we have come to a decision on the above.

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

Garrett Guillotte (JIRA)

unread,
Jun 27, 2018, 4:20:03 PM6/27/18
to puppe...@googlegroups.com

Maggie Dreyer (JIRA)

unread,
Sep 26, 2019, 11:47:04 AM9/26/19
to puppe...@googlegroups.com
Maggie Dreyer commented on Improvement PUP-8965
 
Re: Change dns-alt-names option to subject-alt-names

We removed puppet cert and the certificate-related faces in Puppet 6. We should look into this, maybe if/when we ever decide to proceed on SERVER-2222.

Reply all
Reply to author
Forward
0 new messages