Callback: removing args from task_fields from Sumologic and Splunk plugin(#63527)
CVE-2019-14864 Ansible: Splunk and Sumologic callback plugins leak sensitive data in logs Fixes #63522 Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com> Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
56d5fd34e3
commit
c76e074e4c
3 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- '**security issue** - Ansible: Splunk and Sumologic callback plugins leak sensitive data in logs (CVE-2019-14864)'
|
|
@ -98,6 +98,9 @@ class SplunkHTTPCollectorSource(object):
|
||||||
else:
|
else:
|
||||||
ansible_role = None
|
ansible_role = None
|
||||||
|
|
||||||
|
if 'args' in result._task_fields:
|
||||||
|
del result._task_fields['args']
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
data['uuid'] = result._task._uuid
|
data['uuid'] = result._task._uuid
|
||||||
data['session'] = self.session
|
data['session'] = self.session
|
||||||
|
|
|
@ -89,6 +89,9 @@ class SumologicHTTPCollectorSource(object):
|
||||||
else:
|
else:
|
||||||
ansible_role = None
|
ansible_role = None
|
||||||
|
|
||||||
|
if 'args' in result._task_fields:
|
||||||
|
del result._task_fields['args']
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
data['uuid'] = result._task._uuid
|
data['uuid'] = result._task._uuid
|
||||||
data['session'] = self.session
|
data['session'] = self.session
|
||||||
|
|
Loading…
Reference in a new issue