File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
templates/server/puppetserver/conf.d Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ authorization: {
7272 match-request: {
7373 path: "/puppet-ca/v1/certificate_status"
7474 type: path
75- method: [get, put, delete ]
75+ method: [get, put]
7676 }
7777<%- if @server_ca_auth_required == false -%>
7878 allow-unauthenticated: true
@@ -115,17 +115,21 @@ authorization: {
115115 sort-order: 500
116116 name: "puppetlabs cert statuses"
117117 },
118- <%- if @server_ca_client_self_delete -%>
119118 {
120- name: "Allow nodes to delete their own certificates ",
119+ name: "Allow deletion of certificates and requests ",
121120 match-request: {
122121 path: "^/puppet-ca/v1/certificate(_status|_request)?/([^/]+)$"
123122 type: regex
124123 method: [delete]
125124 },
125+ <%- if @server_ca_auth_required == false -%>
126+ allow-unauthenticated: true
127+ <%- else -%>
126128 allow: [
129+ <%- if @server_ca_client_self_delete -%>
127130 "$2",
128- <%- @server_admin_api_whitelist.each do |client| -%>
131+ <%- end -%>
132+ <%- @server_ca_client_whitelist.each do |client| -%>
129133 "<%= client %> ",
130134<%- end -%>
131135 {
@@ -134,9 +138,9 @@ authorization: {
134138 }
135139 }
136140 ]
141+ <%- end -%>
137142 sort-order: 500
138143 },
139- <%- end -%>
140144<%- end -%>
141145 {
142146 # Allow unauthenticated access to the status service endpoint
You can’t perform that action at this time.
0 commit comments