ironic/ironic/api/controllers/v1
Devananda van der Veen dc0dad9773 Mask instance secrets in API responses
This change adds a new policy setting, "show_instance_secrets", whose
behavior mirrors that of the existing "show_passwords" policy setting.

Whereas "show_passwords" has historically blocked all sensitive
information from the node's driver_info field, the new setting blocks
all sensitive information from the node's instance_info field, including
image_url.

The name of the old setting, "show_passwords", is not being changed at
this time because such a change is not backwards-compatible. Instead,
the documentation string for this setting has been changed to clarify
what it does. Note that the behavior has not actually changed.

Note that this change moves the policy.check("show_password") call from
the Pecan hook into the API's Nodes() class, where the
policy.check("show_instance_secrets") is also added. This makes the code
a little cleaner and more maintainable, especially if we want to add any
more checks like this in the future.

As a result of this cleanup, the ironic-specific
RequestContext.show_password property is removed.

Partial-bug: #1530972
Partial-bug: #1526752
Related-bug: #1613903

Change-Id: I48493c53971cdab3b9122897e51322e19ce2f600
2016-08-26 08:31:17 -07:00
..
__init__.py Promote agent vendor passthru to core API 2016-08-05 12:31:32 +02:00
chassis.py Merge "Document API max_limit configuration option" 2016-08-05 23:22:03 +00:00
collection.py Add config option to override url for links 2015-09-15 18:53:10 +01:00
driver.py Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
node.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
port.py Prevent URL collisions with sub-controllers: nodes/ports 2016-08-25 20:15:41 +00:00
ramdisk.py Promote agent vendor passthru to core API 2016-08-05 12:31:32 +02:00
state.py Use docstrings for attributes in api/controllers 2014-10-27 21:47:18 +00:00
types.py Merge "Promote agent vendor passthru to core API" 2016-08-06 00:04:23 +00:00
utils.py Clean imports in code 2016-08-18 10:02:30 +07:00
versions.py Update the webapi version history reference 2016-08-25 18:26:12 +03:00