Skip to content

Level validation does not check hasTag or getTag #1503

@john-h-kastner-aws

Description

@john-h-kastner-aws

Before opening, please confirm:

Bug Category

Schemas and Validation

Describe the bug

This policy validates at level 0, but it required dereferencing principal, so it should only validate at a level greater than or equal to 1

permit(principal, action, resource) when { principal.hasTag("foo") };

Expected behavior

.

Reproduction steps

.

Code Snippet

// Put your code below this line.

Log output

// Put your output below this line

Additional configuration

No response

Operating System

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. This is as high priority issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions