ironic/ironic
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
..
api Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
cmd Follow up to keystoneauth patch 2016-08-04 12:16:18 +03:00
common Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
conductor Merge "Pass swiftclient header values as strings" 2016-08-25 23:23:42 +00:00
conf Merge "Fix iLO drivers inconsistent boot mode default value" 2016-08-26 01:37:41 +00:00
db Merge "Centralize Config Options - patch merge, cleanup" 2016-08-25 22:45:55 +00:00
dhcp Merge imports in code 2016-08-24 01:34:03 +00:00
drivers Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
locale Imported Translations from Zanata 2016-06-11 07:09:11 +00:00
nova Update resources only for specific node during deletion. 2016-04-29 19:16:12 +00:00
objects Add notification base classes and docs 2016-08-23 21:46:16 +00:00
tests Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
__init__.py Move eventlent monkeypatch out of cmd/ 2014-02-08 00:11:56 -08:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00