Add source location to PrincipalConstraint
, ActionConstraint
and ResourceConstraint
#521
Labels
PrincipalConstraint
, ActionConstraint
and ResourceConstraint
#521
Category
Other
Describe the feature you'd like to request
We store source locations for
Expr
s, but not forTemplateBody
,PrincipalConstraint
,ActionConstraint
, orResourceConstraint
. Adding source locations to these structs would allow us to include source locations in errors occurring in the policy scope or effecting a whole policy without a more specific location.For example, the validator looks at scope constraints to for some specific errors. For example, we currently report this error:
This error should be able to point to the principal clause, but we don't currently store that source location anywhere.
Describe alternatives you've considered
.
Additional context
.
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: