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

Support conditions by property value in policy #8

Closed
nati opened this issue Oct 31, 2015 · 0 comments
Closed

Support conditions by property value in policy #8

nati opened this issue Oct 31, 2015 · 0 comments
Assignees

Comments

@nati
Copy link
Contributor

nati commented Oct 31, 2015

Support conditions by property status value in policy

policy:
  - action: 'read'
    condition:
    - property:
        status:
        - ACTIVE
        - CREATE_IN_PROGRESS
        - UPDATE_IN_PROGRESS
        - DELETE_IN_PROGRESS
        - ERROR
    effect: allow
    id: member
    principal: Member
  - action: 'update'
    condition:
    - property:
        status:  
           ACTIVE: ERROR
    effect: allow
    id: member
    principal: Member
  - action: 'reboot'
    condition:
    - property:
        status: ACTIVE
    effect: allow
    id: member
    principal: Member
  - action: 'delete'
    condition:
    - property:
        status: 
        - ACTIVE
        - ERROR
    effect: allow
    id: member
    principal: Member
@nati nati self-assigned this Dec 2, 2015
This was referenced Dec 3, 2015
nati added a commit that referenced this issue Feb 8, 2016
We implement property based condition in this commit.
You can limit action based on current resource property value per each
Role.
see more doc update

Closes: #8
@nati nati closed this as completed in #53 Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant