ironic/ironic/tests/unit/drivers
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
..
modules Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
agent_pxe_config.template Add support for partition images in agent drivers 2016-03-21 16:12:08 +00:00
elilo_efi_pxe_config.template Prepare for functional testing 2015-09-28 21:27:01 +00:00
ipxe_config.template ipxe: retry on failure 2016-04-19 10:20:36 -04:00
ipxe_config_timeout.template ipxe: retry on failure 2016-04-19 10:20:36 -04:00
ipxe_uefi_config.template ipxe: retry on failure 2016-04-19 10:20:36 -04:00
pxe_config.template Prepare for functional testing 2015-09-28 21:27:01 +00:00
pxe_grub_config.template Prepare for functional testing 2015-09-28 21:27:01 +00:00
test_agent.py IPMITool: add IPMISocatConsole and IPMIConsole class 2016-07-25 16:42:31 +09:00
test_base.py Introduce new driver call and RPC for heartbeat 2016-06-27 15:26:10 +02:00
test_fake.py Fix fake.FakeBoot.prepare_ramdisk() signature 2016-07-15 16:36:37 +03:00
test_irmc.py Remove iterated form of side effects 2016-07-07 10:08:55 +09:00
test_pxe.py IPMITool: add IPMISocatConsole and IPMIConsole class 2016-07-25 16:42:31 +09:00
test_utils.py Pass swiftclient header values as strings 2016-08-19 10:10:01 -07:00
third_party_driver_mock_specs.py Add Dynamic Allocation feature for the OneView drivers 2016-08-04 13:10:02 -03:00
third_party_driver_mocks.py Add Dynamic Allocation feature for the OneView drivers 2016-08-04 13:10:02 -03:00