API implemetation is required to download Image policies
Problem Statement and use case :
In OpenStack Policy is taken care of in either two ways -
a. with policy.json file
b. with oslo.policy
Also projects have started migrating policy to oslo.policy.
In case, when one requires to run image RBAC tests (Patrole image tests ) remotely, for the time being it is not possible.
For this one have to copy respective policy.json manually, to the machine from where tests are being run.
Also in case when policy is being handled within the code (oslo.policy case), There is no suitable way to load policies on the machine from where tests are being run.
Also without policy files and/or remote loading of oslo.policy Patrole tests (RBAC tests) can't be run from remote machine.
Solution:
An API can be implemented in Glance (and for other projects too with different blueprint) for downloading the policy on remote machine. I should be restricted to admin only.
For example - (From remote machine one can run this command)
glance <os-auth-
If this API is implemented, Patrole framework can load policies(from code or from file) on run time remotely.
In this way all the Patrole tests can be run remotely.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Mh Raies
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Bug #1673417: Patrole framework will always fail when running from remote machine, if policy file are not explicitly on remote machine. | Confirmed |
Sprints
Whiteboard
Related Blueprint in Patrole - (----- Mh Raies)
https:/
https:/
https:/
https:/
https:/
https:/