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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...