puppet-openstacklib/spec
Tobias Urdin 16ce2f30de Prevent --password from leaking in failed command output
There is cases when a command times out or when it fails
that we and Puppet [1] will output the raw command that
was executed.

For a user create command that output contains the
--password argument passed down to openstack CLI which
causes sensitive passwords to be leaked into log files
of the system executing Puppet, these can then be shipped
of from the system into a remote syslog and still be in
plain text.

This tries to use Ruby gsub with a regular expression
matching the two cases and instead output [redacted secret]
the same way we do with config provider.

[1] https://github.com/puppetlabs/puppet/blob/main/lib/puppet/util/execution.rb#L286

Change-Id: I4cad8f88fc7b67bb7aa4330832fc47bac41ae9df
2021-09-23 17:03:59 +00:00
..
acceptance Fix support for policy.yaml 2021-01-07 16:37:30 +09:00
classes Fix unit tests incompatible with puppetlab-stdlib 8.0.0 2021-09-23 17:03:52 +00:00
defines Re-implement openstacklib::policy 2021-08-10 10:25:12 +09:00
functions inet6_prefix() - add test with prefix in input 2019-05-24 16:43:06 +02:00
unit Prevent --password from leaking in failed command output 2021-09-23 17:03:59 +00:00
shared_examples.rb spec: updates for rspec-puppet 2.x and rspec 3.x 2015-03-31 12:13:33 +02:00
spec_helper.rb Set fixture paths for unit tests 2021-06-02 14:12:26 +09:00
spec_helper_acceptance.rb Add Puppet Litmus 2020-09-14 23:40:34 +02:00