oslopolicy-policy-generator generates unparsable yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
New
|
Undecided
|
Unassigned |
Bug Description
The result of
oslopolicy-
creates yaml with unescaped quotation marks inside some values, causing the services designate-central and designate-producer to crash when using the result as /etc/designate/
Keys that need to be addressed are:
* create_recordset
* get_recordset
* get_zone
Output:
"admin": "role:admin or is_admin:True"
"owner": "project_
"admin_or_owner": "rule:admin or rule:owner"
"default": "(role:admin) or (role:member and project_
"create_blacklist": "role:admin"
"find_blacklists": "role:admin"
"get_blacklist": "role:admin"
"update_blacklist": "role:admin"
"delete_blacklist": "role:admin"
"use_blackliste
"all_tenants": "role:admin"
"edit_managed_
"use_low_ttl": "role:admin"
"use_sudo": "role:admin"
"hard_delete": "role:admin"
"create_pool": "role:admin"
"find_pools": "role:admin"
"find_pool": "role:admin"
"get_pool": "role:admin"
"update_pool": "role:admin"
"delete_pool": "role:admin"
"zone_create_
"get_quotas": "(role:admin) or (role:reader and project_
"set_quota": "role:admin"
"reset_quotas": "role:admin"
"find_records": "(role:admin) or (role:reader and project_
"count_records": "(role:admin) or (role:reader and project_
"create_recordset": "(role:member and project_
"get_recordsets": "(role:admin) or (role:reader and project_
"get_recordset": "(role:admin) or (role:reader and project_
"find_recordset": "(role:admin) or (role:reader and project_
"find_recordsets": "(role:admin) or (role:reader and project_
"update_recordset": "(role:member and project_
"delete_recordset": "(role:member and project_
"count_recordset": "(role:admin) or (role:reader and project_
"find_service_
"find_service_
"update_
"get_zone_share": "(role:admin) or (role:member and project_
"share_zone": "(role:admin) or (role:member and project_
"find_zone_shares": "@"
"find_project_
"unshare_zone": "(role:admin) or (role:member and project_
"find_tenants": "role:admin"
"get_tenant": "role:admin"
"count_tenants": "role:admin"
"create_tld": "role:admin"
"find_tlds": "role:admin"
"get_tld": "role:admin"
"update_tld": "role:admin"
"delete_tld": "role:admin"
"create_tsigkey": "role:admin"
"find_tsigkeys": "role:admin"
"get_tsigkey": "role:admin"
"update_tsigkey": "role:admin"
"delete_tsigkey": "role:admin"
"create_zone": "(role:admin) or (role:member and project_
"get_zones": "(role:admin) or (role:reader and project_
"get_zone": "(role:admin) or (role:reader and project_
"get_zone_servers": "(role:admin) or (role:reader and project_
"get_zone_
"find_zones": "(role:admin) or (role:reader and project_
"update_zone": "(role:admin) or (role:member and project_
"delete_zone": "(role:admin) or (role:member and project_
"xfr_zone": "(role:admin) or (role:member and project_
"abandon_zone": "role:admin"
"count_zones": "(role:admin) or (role:reader and project_
"count_
"purge_zones": "role:admin"
"pool_move_zone": "role:admin"
"zone_export": "(role:admin) or (role:member and project_
"create_
"find_zone_
"get_zone_export": "(role:admin) or (role:reader and project_
"update_
"delete_
"create_
"find_zone_
"get_zone_import": "(role:admin) or (role:reader and project_
"update_
"delete_
"create_
"get_zone_
"find_zone_
"create_
"get_zone_
"get_zone_
"find_zone_
"update_
"delete_