oslopolicy-checker [-h] [--access ACCESS] [--config-dir DIR]
[--config-file PATH]
[--enforcer_config ENFORCER_CONFIG] [--is_admin]
[--nois_admin] [--policy POLICY] [--rule RULE]
[--target TARGET]
The oslopolicy-checker
command can be used to check policy against
the OpenStack Identity API access information. The access information is a
keystone token response from keystone’s authentication API.
Show help message and exit.
Path to a config directory to pull *.conf
files from. This file set is
sorted, so as to provide a predictable parse order if individual options
are overridden. The set is parsed after the file(s) specified via previous
--config-file
, arguments hence overridden options in the directory
take precedence.
This option must be set from the command-line.
Path to a config file to use. Multiple config files can be specified, with values in later files taking precedence. Defaults to None. This option must be set from the command-line.
Path to a file containing an OpenStack Identity API token response body in JSON format.
Configuration file for the oslopolicy-checker enforcer
Set is_admin=True
on the credentials used for the evaluation.
The inverse of --is_admin
Path to a policy file.
Rule to test.
Path to a file containing custom target info in JSON format. This will be used to evaluate the policy with.
Test all of Nova’s policy with an admin token:
oslopolicy-checker \
--policy /opt/stack/nova/etc/nova/policy.json
--access sample_data/auth_v3_token_admin.json
Test the compute_extension:flavorextraspecs:index
rule in Nova’s policy
with the admin member token and is_admin
set to True
:
oslopolicy-checker \
--policy /opt/stack/nova/etc/nova/policy.json \
--access sample_data/auth_v3_token_admin.json \
--is_admin=true --rule compute_extension:flavorextraspecs:index
Test the compute_extension:flavorextraspecs:index
rule in Nova’s policy
with the plain member token:
oslopolicy-checker \
--policy /opt/stack/nova/etc/nova/policy.json \
--access sample_data/auth_v3_token_member.json \
--rule compute_extension:flavorextraspecs:index
oslopolicy-sample-generator, oslopolicy-policy-generator, oslopolicy-list-redundant, oslopolicy-validator
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.