Patch and policy files intended for OpenStack cinder, nova, glance and horizon services to avoid user interaction in the same project/tenant.
We provide a custom wrapper to check autorizations between two users of the same project/tenant :
https://github.com/FranceGrilles/monitoring-cloud
Note that these tests are already set up for registered FG-Cloud sites via our monitoring service (ccnagboxfg).
For these tests to work, you must :
- update your
/etc/[cinder,nova,glance]/policy.json
to define which actions that can't be performed by another user (seepolicy
directory) - update
/etc/openstack-dashboard/[cinder,nova,glance]_policy.json
- patch original files if you are running kilo or a newer version to ensure that the policy rules defined will be enforced (see below)
- restart openstack-nova-api, openstack-cinder-api, openstack-glance-api and httpd services
You must apply each files of the patch
directory for your current branch
(kilo/liberty/mitaka) for every concerned service on every concerned server.
## Patches must be applied from the root directory '/' :
# cd /
# patch -p0 < nova-isolation-same-tenant.patch
# patch -p0 < cinder-isolation-same-tenant.patch
# patch -p0 < glance-isolation-same-tenant.patch
# patch -p0 < horizon-isolation-same-tenant.patch
You can add -b
to the patch command to make a backup
You can add --dry-run
to the patch command to make a simulation
NOTES :
- The patchs are organized in branches you may checkout the correct kilo/liberty/mitaka branch to see the patch and policy files
- Each
policy.json
has its suffixed equivalentpolicy.json.orig
to show the differences between the original and modified files - Updates to policy.json files are applied instantly
These patches have been tested on CentOS7 with a package installation.
The repository is updated with full patches, including bugfixes. For those who have already patched their installation, you must also apply :
patch -p0 < cinder-update_1.patch
patch -p0 < horizon-update_1.patch
If you have any issue, feel free to leave a comment here !