ironic/ironic/common
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
..
glance_service Centralize config options - [glance] 2016-07-07 09:27:39 -07:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
boot_devices.py get_supported_boot_devices() returns static device list 2015-08-12 14:53:00 +01:00
config.py Move oslo.config references to oslo_config 2015-02-02 06:51:22 -08:00
context.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
dhcp_factory.py Centralize config options - [dhcp] 2016-06-16 17:11:14 -07:00
driver_factory.py Merge imports in code 2016-08-24 01:34:03 +00:00
exception.py Merge "Merge imports in code" 2016-08-25 18:36:00 +00:00
fsm.py Fix docstring warnings 2016-07-12 15:44:10 -07:00
grub_conf.template Fix for automated boot iso issue with IPA ramdisk 2015-04-10 09:09:53 -07:00
hash_ring.py Centralize config options - [DEFAULT] 2016-07-15 14:05:09 -07:00
i18n.py Remove unneeded usage of '# noqa' 2015-05-06 14:17:28 -07:00
image_service.py Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
images.py Merge imports in code 2016-08-24 01:34:03 +00:00
isolinux_config.template Add support for creating vfat and iso images 2014-08-26 21:18:11 +05:30
keystone.py Merge "Fix fall back to newer keystonemiddleware options" 2016-08-25 19:59:27 +00:00
network.py Add 'neutron' network interface 2016-07-13 13:38:56 +03:00
neutron.py Merge imports in code 2016-08-24 01:34:03 +00:00
paths.py Centralize config options - [DEFAULT] 2016-07-15 14:05:09 -07:00
policy.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
pxe_utils.py Adding InfiniBand Support 2016-08-14 09:14:34 +03:00
raid.py Add support for inband raid configuration agent ramdisk 2015-09-14 15:52:31 +00:00
rpc.py Add notification base classes and docs 2016-08-23 21:46:16 +00:00
safe_utils.py Enable hacking rule E265 2014-11-13 10:48:34 +08:00
service.py Merge imports in code 2016-08-24 01:34:03 +00:00
states.py Active Node Creation via adopt state 2016-06-07 09:13:22 -04:00
swift.py Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
utils.py Merge imports in code 2016-08-24 01:34:03 +00:00