Last active
October 20, 2022 21:56
-
-
Save h0tw1r3/cdd207dfc1d1aab596bb8b0f9b7157ec to your computer and use it in GitHub Desktop.
Allow PE puppet nodes API access to delete their own certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pe_puppet_authorization::rule { 'allow-ca-client-delete-self': | |
match_request_path => '/puppet-ca/v1/certificate_status/([^/]+)$', | |
match_request_type => 'regex', | |
match_request_method => ['delete'], | |
allow => '$1', | |
sort_order => 500, | |
path => "/etc/puppetlabs/puppetserver/conf.d/auth.conf", | |
notify => Service['pe-puppetserver'], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment