Skip to content

Instantly share code, notes, and snippets.

@skpy
Created August 24, 2012 15:22
Show Gist options
  • Save skpy/3451942 to your computer and use it in GitHub Desktop.
Save skpy/3451942 to your computer and use it in GitHub Desktop.
# allow access to the master CA
path /certificate/ca
auth any
method find
allow *
path /certificate/
auth any
method find
allow *
path /certificate_request
auth any
method find, save
allow *
# allow hosts to manage their own certificates
# see: https://groups.google.com/group/puppet-users/msg/f58735e9e63f9028?hl=en
path ~ /certificate_status/([^/]+)$
auth no
allow $1
@skpy
Copy link
Author

skpy commented Aug 24, 2012

10.5.136.178 - - [24/Aug/2012:11:22:43 -0400] "PUT /production/certificate_status/oh305apl0306.domain.net HTTP/1.1" 403 - "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2"

@jglenn9k
Copy link

Add

path /certificate_status
auth any

a specific lack of method here, see http://docs.puppetlabs.com/guides/rest_auth_conf.html#method

allow *

@jglenn9k
Copy link

Add

path /certificate_status
auth any

a specific lack of method here, see http://docs.puppetlabs.com/guides/rest_auth_conf.html#method

allow *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment