Skip to content

Instantly share code, notes, and snippets.

@james-nesbitt
Last active November 15, 2016 15:57
Show Gist options
  • Save james-nesbitt/946819a891b4467083a9bf6549413b2f to your computer and use it in GitHub Desktop.
Save james-nesbitt/946819a891b4467083a9bf6549413b2f to your computer and use it in GitHub Desktop.
kraut security.yml proposal
# security.yml
#
# Kraut security limits for operations
#
# FORMAT:
# {operation} :
# {operation property 1}: [ "{valid value 1}", ... ]
# ...
#
# Default permission applied if no other permissions match?
security.default:
security.user.role:
- authenticated
# General orchestrate operations
orchestrate.*:
security.user:
- * # wildcard
# UpCloud : start a server
upcloud.server.start:
# security.user.role : property provided by the security wrapper
security.user.role:
- admin
# upcloud.server.label : one of the valid --{property} values for the operation
upcloud.server.label:
- this-project
# UpCloud : Destroy an UpCloud service
upcloud.server.stop:
# security.user : property provided by the security wrapper
security.user:
- jamesnesbitt
- aleksijohansson
- jannekoponen
# upcloud.server.label : one of the valid --{property} values for the operation
upcloud.server.uuid:
- AAAAAAA-AAAAAAA-AAAAA
- BBBBBBB-BBBBBBB-BBBBB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment