API implemetation is required to download Image policies

Registered by Mh Raies

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-details-and-auth-uri-comes here> policy-downlaod --json --output-file glance-policy.json

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
(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.