You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing this policy and inspecting the Text attribute of the mask rule's Location, one would expect to see mask contains "foo", as any other type of rule would work. Multivalue rules with generated bodies however don't get the full Text, but only the name of the rule, like mask in this case.
Since there is no body, the location of the head is a better option
than simply using the fist scanned token for location.
Fixesopen-policy-agent#7128
Signed-off-by: Anders Eknert <anders@styra.com>
Since there is no body, the location of the head is a better option
than simply using the fist scanned token for location.
Fixes#7128
Signed-off-by: Anders Eknert <anders@styra.com>
Parsing this policy and inspecting the
Text
attribute of themask
rule'sLocation
, one would expect to seemask contains "foo"
, as any other type of rule would work. Multivalue rules with generated bodies however don't get the fullText
, but only the name of the rule, likemask
in this case.This leads to some issues in Regal wrt these rules, as reported by @drewcorlin1
(since the
contains
keyword is not part of the AST, Regal has to scan theText
attribute in order to know if it's used)The text was updated successfully, but these errors were encountered: