Sha256: 3fbfeee6b559fe50a6cd052b9f1a235af518c4df8f8e9aefa977b0258c3a335c

Contents?: true

Size: 728 Bytes

Versions: 286

Compression:

Stored size: 728 Bytes

Contents

require 'puppet/indirector/code'
require 'puppet/ssl/certificate_revocation_list'

class Puppet::SSL::CertificateRevocationList::DisabledCa < Puppet::Indirector::Code
  desc "Manage SSL certificate revocation lists, 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::CertificateRevocationList.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

286 entries across 286 versions & 4 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.12 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.12-x86-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.12-x64-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.12-universal-darwin lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.11 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.11-x86-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.11-x64-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.11-universal-darwin lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.10 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.10-x86-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.10-x64-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.10-universal-darwin lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.9 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.9-x86-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.9-x64-mingw32 lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb
puppet-4.10.9-universal-darwin lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb