Last active
September 17, 2017 08:34
-
-
Save tamalsaha/47c5626a62da00e629dfd426c92f66fa to your computer and use it in GitHub Desktop.
HCL sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path "secret/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} | |
path "secret/super-secret" { | |
capabilities = ["deny"] | |
} | |
path "secret/restricted" { | |
capabilities = ["create"] | |
allowed_parameters = { | |
"foo" = [] | |
"bar" = ["zip", "zap"] | |
} | |
} | |
path "secret/foo" { | |
capabilities = ["create"] | |
allowed_parameters = { | |
"bar" = ["zip", "zap"] | |
"*" = [] | |
} | |
} | |
path "secret/foo" { | |
capabilities = ["create"] | |
denied_parameters = { | |
"bar" = [] | |
} | |
} | |
path "secret/foo" { | |
capabilities = ["create"] | |
denied_parameters = { | |
"bar" = ["zip", "zap"] | |
} | |
} | |
path "secret/foo" { | |
capabilities = ["create"] | |
denied_parameters = { | |
"*" = [] | |
} | |
} | |
path "secret/foo" { | |
capabilities = ["create"] | |
allowed_parameters = { | |
"*" = ["foo-*"] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"path": [ | |
{ | |
"secret/*": [ | |
{ | |
"capabilities": [ | |
"create", | |
"read", | |
"update", | |
"delete", | |
"list" | |
] | |
} | |
] | |
}, | |
{ | |
"secret/super-secret": [ | |
{ | |
"capabilities": [ | |
"deny" | |
] | |
} | |
] | |
}, | |
{ | |
"secret/restricted": [ | |
{ | |
"allowed_parameters": [ | |
{ | |
"bar": [ | |
"zip", | |
"zap" | |
], | |
"foo": [] | |
} | |
], | |
"capabilities": [ | |
"create" | |
] | |
} | |
] | |
}, | |
{ | |
"secret/foo": [ | |
{ | |
"allowed_parameters": [ | |
{ | |
"*": [], | |
"bar": [ | |
"zip", | |
"zap" | |
] | |
} | |
], | |
"capabilities": [ | |
"create" | |
] | |
} | |
] | |
}, | |
{ | |
"secret/foo": [ | |
{ | |
"capabilities": [ | |
"create" | |
], | |
"denied_parameters": [ | |
{ | |
"bar": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"secret/foo": [ | |
{ | |
"capabilities": [ | |
"create" | |
], | |
"denied_parameters": [ | |
{ | |
"bar": [ | |
"zip", | |
"zap" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"secret/foo": [ | |
{ | |
"capabilities": [ | |
"create" | |
], | |
"denied_parameters": [ | |
{ | |
"*": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"secret/foo": [ | |
{ | |
"allowed_parameters": [ | |
{ | |
"*": [ | |
"foo-*" | |
] | |
} | |
], | |
"capabilities": [ | |
"create" | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment