Files
murano/setup.cfg
Ghanshyam Mann 1c87ebf9a8 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

CONF object needs to be initialized before policy enforcer(). That
need to remove cfg.CONF.unregister_opts from TestAuthUtils cleanup
as this is taken care by cfg.clear() with proper workflow otherwise
it end up with error
"oslo_config.cfg.ArgsAlreadyParsedError: arguments
already parsed: reset before unregistering options"

- https://b132754ee7062a9ab187-9add4719a9922a9385555a8552fc2366.ssl.cf5.rackcdn.com/768520/5/check/openstack-tox-py38/7964354/testr_results.html

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I1b6c6485bc651fd0b87244a68204036dd4aa37f4
2021-03-07 17:50:48 -06:00

83 lines
3.0 KiB
INI

# Copyright (c) 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
[metadata]
name = murano
summary = Murano API
description-file =
README.rst
license = Apache License, Version 2.0
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://www.openstack.org/software/releases/mitaka/components/murano
python-requires = >=3.6
classifier =
Development Status :: 5 - Production/Stable
Environment :: OpenStack
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
[files]
packages =
murano
data_files =
etc/murano =
etc/murano/murano-cfapi-paste.ini
etc/murano/murano-paste.ini
[entry_points]
console_scripts =
murano-api = murano.cmd.api:main
murano-engine = murano.cmd.engine:main
murano-manage = murano.cmd.manage:main
murano-db-manage = murano.cmd.db_manage:main
murano-cfapi-db-manage = murano.cmd.cfapi_db_manage:main
murano-test-runner = murano.cmd.test_runner:main
murano-cfapi = murano.cmd.cfapi:main
murano-status = murano.cmd.status:main
wsgi_scripts =
murano-wsgi-api = murano.httpd.murano_api:init_application
oslo.config.opts =
murano = murano.opts:list_opts
keystone_authtoken = keystonemiddleware.opts:list_auth_token_opts
murano.cfapi = murano.opts:list_cfapi_opts
castellan.config = castellan.options:list_opts
oslo.config.opts.defaults =
murano = murano.common.config:set_lib_defaults
oslo.policy.policies =
# With the move of default policy in code list_rules returns a list of
# the default defined polices.
murano = murano.common.policies:list_rules
murano_policy_modify_actions =
remove-object = murano.policy.modify.actions.default_actions:RemoveObjectAction
add-object = murano.policy.modify.actions.default_actions:AddObjectAction
set-property = murano.policy.modify.actions.default_actions:SetPropertyAction
remove-relation = murano.policy.modify.actions.default_actions:RemoveRelationAction
add-relation = murano.policy.modify.actions.default_actions:AddRelationAction