Installation

UserWarning: _get_all_passwords is deprecated, please use get_all_passwords_in_realm instead.

splunkfordummie
Engager

Ever since upgrading to version 2.1.4 of Cofense Triage Add-On, we get hundreds of these errors in our _internal logs:

01-30-2024 13:20:42.094 -0500 ERROR ScriptRunner [1503161 TcpChannelThread] - stderr from '/opt/splunk/bin/python3.7 /opt/splunk/bin/runScript.py execute': /opt/splunk/etc/apps/TA-cofense-triage-add-on-for-splunk/bin/ta_cofense_triage_add_on_for_splunk/aob_py3/solnlib/utils.py:153: UserWarning: _get_all_passwords is deprecated, please use get_all_passwords_in_realm instead.

 

It does not affect log ingestion, but would like help in figuring out how to suppress the errors.

Labels (1)
0 Karma

ohbuckeyeio
Communicator

Additional Info for @PickleRick's response:

This will be removed in a future version of the solnlib library. See function starting at line 237 in the CredentialManager class:

https://splunk.github.io/addonfactory-solutions-library-python/credentials/#solnlib.credentials.Cred...

Looking at the new code, a realm will be required to be passed to the definition.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

It is probably due to the add-on calling an obsolete method from the splunklib. You can't do anything about it yourself except for either updating the add-on (if possible) or asking the developer to fix it.

0 Karma

Snehalg176
Loves-to-Learn Everything

which is that obsolete function?

0 Karma

PickleRick
SplunkTrust
SplunkTrust
_get_all_passwords is deprecated, please use get_all_passwords_in_realm instead.
0 Karma

Snehalg176
Loves-to-Learn Everything

How can we fix this error ?

0 Karma

PickleRick
SplunkTrust
SplunkTrust

I already wrote this - You can't do anything about it yourself except for either updating the add-on (if possible) or asking the developer to fix it.

Unless you want to dig into the app's code.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...