PaloAltoNetworks / Splunk-Apps

Palo Alto Networks App for Splunk leverages the data visibility provided by Palo Alto Networks next-generation firewalls and endpoint security with Splunk's extensive investigation and visualization capabilities to deliver an advanced security reporting and analysis tool.
https://pan.dev/splunk/docs/
ISC License
106 stars 48 forks source link

The splunk_ta_paloalto requests package is claiming a dependency on Older chardet and urllib3 versions, please update to new versions. #316

Closed jcudilla closed 11 months ago

jcudilla commented 11 months ago

The splunk_ta_paloalto requests package is claiming a dependency on Older chardet and urllib3 versions, please update to new versions.

Splunk_TA_paloalto/bin/splunk_ta_paloalto/aob_py3/solnlib/packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (3.0.4) doesn't match a supported version!

Expected behavior

Current behavior

Current error: Splunk_TA_paloalto/bin/splunk_ta_paloalto/aob_py3/solnlib/packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (3.0.4) doesn't match a supported version!

Possible solution

update to allow newer version of python modules

Steps to reproduce

for example in /opt/splunk/etc/apps/Splunk_TA_paloalto/bin/splunk_ta_paloalto/aob_py3/solnlib/packages/requests/init.py

    # Check urllib3 for compatibility.
    major, minor, patch = urllib3_version  # noqa: F811
    major, minor, patch = int(major), int(minor), int(patch)
    # urllib3 >= 1.21.1, <= 1.25
    assert major == 1
    assert minor >= 21
    assert minor <= 25

    # Check chardet for compatibility.
    major, minor, patch = chardet_version.split('.')[:3]
    major, minor, patch = int(major), int(minor), int(patch)
    # chardet >= 3.0.2, < 3.1.0
    assert major == 3
    assert minor < 1
    assert patch >= 2

you are searching for chardet >= 3.0.2, < 3.1.0 however, we're on python3-chardet-5.1.0+dfsg-2. Similarly on urllib3 >= 1.21.1, <= 1.25 but we're already on python3-urllib3-1.26.12-1

Your Environment

paulmnguyen commented 11 months ago

The aob_py3 directory is part of the Splunk Add-on Builder. We don't actually control what is in that directory. You may want to post this on the Splunk community to see if anyone from Splunk can respond to it. https://community.splunk.com/