Skip to content

Instantly share code, notes, and snippets.

@james-nesbitt
Last active November 17, 2016 09:55
Show Gist options
  • Save james-nesbitt/8a5e59b93187c9bbda8ae00083cb64cd to your computer and use it in GitHub Desktop.
Save james-nesbitt/8a5e59b93187c9bbda8ae00083cb64cd to your computer and use it in GitHub Desktop.
kraut security proposal: sequential rules approach
- Operation: monitor.*
Property:
security.user.role:
- authenticated
- Operation: upcloud.destroy
Property:
security.user.name:
- jamesnesbitt
- jannekoponen
upcloud.server.uuid:
- AAAAAA-AAAAAAA-AAAAAAA
- Operation: upcloud.*
Property:
security.user.role:
- admin
# Demo to show more options
- Id: production.wkfi.demo_operation
Message: User {security.user.name} is not allowed to demo {demo.property.one}
Operation: demo.operation
Authorize: Deny # Default is Allow
Aggregate: OR # Default is AND
Property:
demo.property.one:
- value1
- value2
demo.property.two:
- value3
- value4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment