# File lib/puppet/network/rest_authconfig.rb, line 61 61: def insert_default_acl 62: DEFAULT_ACL.each do |acl| 63: unless rights[acl[:acl]] 64: Puppet.info "Inserting default '#{acl[:acl]}'(#{acl[:authenticated] ? "auth" : "non-auth"}) acl because #{( !exists? ? "#{Puppet[:rest_authconfig]} doesn't exist" : "none where found in '#{@file}'")}" 65: mk_acl(acl) 66: end 67: end 68: # queue an empty (ie deny all) right for every other path 69: # actually this is not strictly necessary as the rights system 70: # denies not explicitely allowed paths 71: unless rights["/"] 72: rights.newright("/") 73: rights.restrict_authenticated("/", :any) 74: end 75: end