Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Last active October 20, 2022 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h0tw1r3/cdd207dfc1d1aab596bb8b0f9b7157ec to your computer and use it in GitHub Desktop.
Save h0tw1r3/cdd207dfc1d1aab596bb8b0f9b7157ec to your computer and use it in GitHub Desktop.
Allow PE puppet nodes API access to delete their own certificate
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