Sha256: 95be6a00ffb905281fadc14dce6b72b53663b3ace915bea1f0e7a58ed2bde7d2

Contents?: true

Size: 1.3 KB

Versions: 17

Compression:

Stored size: 1.3 KB

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the
    # protect rule modes of the Agent.
    class ProtectRulesConfiguration < BaseConfiguration
      KEYS = {
          disabled_rules: EMPTY_VALUE,
          'bot-blocker' => Contrast::Config::ProtectRuleConfiguration,
          'cmd-injection' => Contrast::Config::ProtectRuleConfiguration,
          'sql-injection' => Contrast::Config::ProtectRuleConfiguration,
          'nosql-injection' => Contrast::Config::ProtectRuleConfiguration,
          'untrusted-deserialization' => Contrast::Config::ProtectRuleConfiguration,
          'method-tampering' => Contrast::Config::ProtectRuleConfiguration,
          xxe: Contrast::Config::ProtectRuleConfiguration,
          'path-traversal' => Contrast::Config::ProtectRuleConfiguration,
          'reflected-xss' => Contrast::Config::ProtectRuleConfiguration,
          'unsafe-file-upload' => Contrast::Config::ProtectRuleConfiguration,
          'Contrast::Agent::Protect::Rule::Base' => Contrast::Config::ProtectRuleConfiguration
      }.cs__freeze

      def initialize hsh
        super(hsh, KEYS)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.4.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.3.2 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.3.1 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.3.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.2.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.1.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-4.0.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.16.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.15.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.14.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.13.2 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.13.1 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.13.0 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.12.2 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.12.1 lib/contrast/config/protect_rules_configuration.rb
contrast-agent-3.12.0 lib/contrast/config/protect_rules_configuration.rb