lib/contrast/agent/assess/policy/propagation_node.rb in contrast-agent-6.6.5 vs lib/contrast/agent/assess/policy/propagation_node.rb in contrast-agent-6.7.0

- old
+ new

@@ -1,10 +1,10 @@ # Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/agent/assess/policy/policy_node' -require 'contrast/api/decorators/trace_taint_range_tags' +require 'contrast/agent/reporting/reporting_events/finding_event_taint_range_tags' require 'contrast/components/logger' module Contrast module Agent module Assess @@ -20,12 +20,12 @@ JSON_ACTION = 'action' JSON_UNTAGS = 'untags' JSON_PATCH_CLASS = 'patch_class' JSON_PATCH_METHOD = 'patch_method' - attr_reader :untags, :patch_method - attr_accessor :action, :patch_class + attr_reader :action, :untags, :patch_method + attr_accessor :patch_class TAGGER = 'Tagger' PROPAGATOR = 'Propagator' # Most things here carry over from PolicyNode. # A couple things are new / have new rules @@ -88,10 +88,10 @@ # @raise[ArgumentError] raises if any of the tags is invalid def validate_untags return unless untags untags.each do |tag| - unless Contrast::Api::Decorators::TraceTaintRangeTags::VALID_TAGS.include?(tag) + unless Contrast::Agent::Reporting::FindingEventTaintRangeTags::VALID_TAGS.include?(tag) raise(ArgumentError, "#{ node_type } #{ id } did not have a valid untag. #{ tag } is not a known value.") end if tags&.include?(tag) raise(ArgumentError, "#{ node_type } #{ id } had the same tag and untag, #{ tag }.")