Debian Codegraph @

doc/source/configuration/sample-policy.rst

raw
1 ====================
2 Cyborg Sample Policy
3 ====================
4
5 .. warning::
6
7 JSON formatted policy file is deprecated since Cyborg 5.0.0(Victoria).
8 Use YAML formatted file. Use `oslopolicy-convert-json-to-yaml`__ tool
9 to convert the existing JSON to YAML formatted policy file in backward
10 compatible way.
11
12 .. __: https://docs.openstack.org/oslo.policy/latest/cli/oslopolicy-convert-json-to-yaml.html
13
14 The following is a sample cyborg policy file that has been auto-generated
15 from default policy values in code. If you're using the default policies, then
16 the maintenance of this file is not necessary, and it should not be copied into
17 a deployment. Doing so will result in duplicate policy definitions. It is here
18 to help explain which policy operations protect specific cyborg APIs, but it
19 is not suggested to copy and paste into a deployment unless you're planning on
20 providing a different policy for an operation that is not the default.
21
22 If you wish build a policy file, you can also use ``tox -e genpolicy`` to
23 generate it.
24
25 The sample policy file can also be downloaded in `file form </_static/cyborg.policy.yaml.sample>`_.
26
27 .. literalinclude:: /_static/cyborg.policy.yaml.sample