Sha256: e47c092a4faf6199b49c03b07f8a9ce34b8ce31155f57e183846e0d4574bba81

Contents?: true

Size: 710 Bytes

Versions: 7

Compression:

Stored size: 710 Bytes

Contents

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

cs__scoped_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

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-3.13.2 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.13.1 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.13.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.12.2 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.12.1 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.12.0 lib/contrast/config/protect_rule_configuration.rb
contrast-agent-3.11.0 lib/contrast/config/protect_rule_configuration.rb