Sha256: 07e08c365061a1ad60231ee432855382259437065cb444903ad2a0fcbe05dc20

Contents?: true

Size: 699 Bytes

Versions: 11

Compression:

Stored size: 699 Bytes

Contents

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

require 'set'

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the
    # rule mode of a single protect rule in the Agent.
    class ProtectRuleConfiguration < BaseConfiguration
      KEYS = {
          enable: EMPTY_VALUE,
          mode: EMPTY_VALUE,
          disable_system_commands: EMPTY_VALUE,
          detect_custom_code_accessing_system_files: Contrast::Config::DefaultValue.new('true')
      }.cs__freeze

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.4.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.3.2 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.3.1 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.3.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.2.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.1.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-4.0.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.16.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.15.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.14.0 lib/contrast/config/protect_rule_configuration.rb