Sha256: 856a68cd0b13583ed2757b795007229cd0e01976c5117408197079e0ec6c64be

Contents?: true

Size: 709 Bytes

Versions: 162

Compression:

Stored size: 709 Bytes

Contents

require 'puppet/indirector/code'
require 'puppet/ssl/certificate_request'

class Puppet::SSL::CertificateRequest::DisabledCa < Puppet::Indirector::Code
  desc "Manage SSL certificate requests on disk, but reject any remote access
to the SSL data store. Used when a master has an explicitly disabled CA to
prevent clients getting confusing 'success' behaviour."

  def initialize
    @file = Puppet::SSL::CertificateRequest.indirection.terminus(:file)
  end

  [:find, :head, :search, :save, :destroy].each do |name|
    define_method(name) do |request|
      if request.remote?
        raise Puppet::Error, _("this master is not a CA")
      else
        @file.send(name, request)
      end
    end
  end
end

Version data entries

162 entries across 162 versions & 2 rubygems

Version Path
puppet-5.5.17-x86-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.17 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.17-x64-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.17-universal-darwin lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.16 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.16-x86-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.16-x64-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.16-universal-darwin lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.14 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.14-x86-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.14-x64-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.14-universal-darwin lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.13 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.13-x86-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.13-x64-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.13-universal-darwin lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.12 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.12-x86-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.12-x64-mingw32 lib/puppet/indirector/certificate_request/disabled_ca.rb
puppet-5.5.12-universal-darwin lib/puppet/indirector/certificate_request/disabled_ca.rb