Sha256: 5690fc2fc5f0f672969ef3c2a3fdb4bdcb99bd7943b040ed180f679738fb8a68

Contents?: true

Size: 929 Bytes

Versions: 53

Compression:

Stored size: 929 Bytes

Contents

module Fluent
  module KafkaPluginUtil
    module SSLSettings
      def self.included(klass)
        klass.instance_eval {
          # https://github.com/zendesk/ruby-kafka#encryption-and-authentication-using-ssl
          config_param :ssl_ca_cert, :string, :default => nil,
                       :desc => "a PEM encoded CA cert to use with and SSL connection."
          config_param :ssl_client_cert, :string, :default => nil,
                       :desc => "a PEM encoded client cert to use with and SSL connection. Must be used in combination with ssl_client_cert_key."
          config_param :ssl_client_cert_key, :string, :default => nil,
                       :desc => "a PEM encoded client cert key to use with and SSL connection. Must be used in combination with ssl_client_cert."
        }
      end

      def read_ssl_file(path)
        return nil if path.nil?
        File.read(path)
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
fluent-plugin-kafka-enchanced-0.5.18 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.17 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.16 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.15 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.14 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.13 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.12 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.11 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.10 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.9 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.8 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.7 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.6 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.5 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.4 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.3 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-0.5.3 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-0.5.2 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.2 lib/fluent/plugin/kafka_plugin_util.rb
fluent-plugin-kafka-enchanced-0.5.1 lib/fluent/plugin/kafka_plugin_util.rb