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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...