add escalator frame
[escalator.git] / api / etc / property-protections-policies.conf.sample
1 # property-protections-policies.conf.sample
2 #
3 # This file is an example config file for when
4 # property_protection_rule_format=policies is enabled.
5 #
6 # Specify regular expression for which properties will be protected in []
7 # For each section, specify CRUD permissions. You may refer to policies defined
8 # in policy.json.
9 # The property rules will be applied in the order specified. Once
10 # a match is found the remaining property rules will not be applied.
11 #
12 # WARNING:
13 # * If the reg ex specified below does not compile, then
14 # the escalator-api service fails to start. (Guide for reg ex python compiler
15 # used:
16 # http://docs.python.org/2/library/re.html#regular-expression-syntax)
17 # * If an operation(create, read, update, delete) is not specified or misspelt
18 # then the escalator-api service fails to start.
19 # So, remember, with GREAT POWER comes GREAT RESPONSIBILITY!
20 #
21 # NOTE: Only one policy can be specified per action. If multiple policies are
22 # specified, then the escalator-api service fails to start.
23
24 [^x_.*]
25 create = default
26 read = default
27 update = default
28 delete = default
29
30 [.*]
31 create = context_is_admin
32 read = context_is_admin
33 update = context_is_admin
34 delete = context_is_admin