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
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Bug Category
Cedar Parser
Describe the bug
The following policy is accepted by the JSON policy parse, but it defines an annotation containing a space, which is not possible in the Cedar policy syntax. The JSON policy parser should instead return an error.
Fixes#994
Signed-off-by: John Kastner <jkastner@amazon.com>
john-h-kastner-aws
changed the title
Policy JSON format does not error for spaces in annoations
Policy JSON format does not error for spaces in annotations
Jun 18, 2024
Before opening, please confirm:
Bug Category
Cedar Parser
Describe the bug
The following policy is accepted by the JSON policy parse, but it defines an annotation containing a space, which is not possible in the Cedar policy syntax. The JSON policy parser should instead return an error.
The most straightforward fix is to check for spaces in annotations in
try_into_ast_template
.The text was updated successfully, but these errors were encountered: