Commit Graph

8 Commits

Author SHA1 Message Date
Ghanshyam Mann af49d0b30a Change default policy file from JSON to YAML
As Cyborg is switching to new policy, this is required
to avoid breaking the existing deployment using policy
file in json format and relying on default value of
'CONF.oslo_policy.policy_file'.

Default value of 'CONF.oslo_policy.policy_file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.

An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.

Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.

Related Blueprint: https://blueprints.launchpad.net/oslo.policy/+spec/policy-json-to-yaml

Change-Id: I865227e516dc7505c463ac279309169d95ea6a22
2020-09-18 14:16:31 +00:00
chenke afa4a2ab24 Modify api-paste.ini v1 to v2
Since Cyborg v1 api has been deprecated. We should change
the pipeline to v2.

Story: 2007041
Task: 37853
Change-Id: Ieca9776cec8fe2e65e7ec9a6d4e96a6b0a6affaa
2019-12-20 09:41:29 +00:00
Yumeng Bao 477b4f9a55 remove rootwrap in cyborg
On one hand, as discussed in this patch[0], rootwap was intented
to be replaced by privsep, especially for new project.
On the other hand, we need remove rootwrap to fix the following
cyborg-tempest job failure in patch [0]:
cannot stat '/opt/stack/cyborg/etc/cyborg/rootwrap.d/*.filters':
No such file or directory

[0]:https://review.opendev.org/#/c/673957/

Change-Id: I1aaf38da3a68c656616c7d701b8f815e17ed0152
2019-09-24 00:30:25 -07:00
wangzh21 cc9da9a944 Load cyborg-api app with paste_deploy
Change-Id: I3976d05f737e09ceb88c40f65b445bad0b096516
Story: 2002121
Task: 19800
2018-06-07 21:42:52 +08:00
Nguyen Van Trung d12958123f Remove etc/cyborg/cyborg.conf.sample from project
Remove empty file and create config sample via "tox -egenconfig"

Change-Id: I87f7de45e8ded293316113f1df466f8a5321d2ac
2018-03-15 23:13:37 +07:00
zhuli a1e4b44797 Auto generate cyborg.conf with oslo-config-generator
Change-Id: If7cbf3701bb7b5ef0e0536339f8c1df9557f0688
2017-12-08 10:58:25 +08:00
Rushil Chugh 173a80718f Fix issues with devstack script
Change-Id: I3ebaacb54f0efde33c41c7f9ce53d72ceac0db32
2017-09-25 23:15:40 -04:00
zhuli c6c5ca042f add policy support
Add policy support to determine which user can access which objects
in which way

Change-Id: If959089366ec252d4a7904d0e78733a2bf52fff5
2017-09-03 21:04:20 +08:00