Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MANAGEMENT. POLICIES]. Absence checks #1644

Open
AndreyNenashev opened this issue Feb 27, 2024 · 0 comments
Open

[MANAGEMENT. POLICIES]. Absence checks #1644

AndreyNenashev opened this issue Feb 27, 2024 · 0 comments
Assignees
Labels
kind: feature New feature request

Comments

@AndreyNenashev
Copy link
Contributor

Current policies implementation doesn't consider absence checks. For example:
Create a policy which allows to create terms, manage terms where a user is an owner and manage all terms where no owner assigned.

{
    "statements": [
        {
      "resource": {
        "type": "TERM",
        "conditions": {
          "any": [
            {
              "is": "term:owner"
            },
            {
              "eq": {
                "term:owner": null
              }
            }
          ]
        }
      },
      "permissions": [
        "ALL"
      ]
        },
        {
            "resource": {
                "type": "MANAGEMENT"
            },
            "permissions": [
                "TERM_CREATE"
            ]
        }
    ]
}
@AndreyNenashev AndreyNenashev added the kind: feature New feature request label Feb 27, 2024
@AndreyNenashev AndreyNenashev self-assigned this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant