Splunk Cloud compatibility issue: check_idx_binary_compatibility warning in external_search_command.py
Summary
I'm receiving Splunk Cloud vetting failures due to check_idx_binary_compatibility warnings triggered by code in the bundled SDK's external_search_command.py file, even though my app doesn't use ExternalSearchCommand and contains no compiled binaries.
Problem Description
I maintain a Splunk app (CrowdSec on Splunkbase) that bundles the Splunk SDK for Python (version 2.1.0). For information, here is the repo: https://github.com/crowdsecurity/crowdsec-splunk-app
I recently received the following notification from Splunk:
We're writing to notify you that there is an issue that affects the compatibility of one or more releases of your app, "CrowdSec", with the Splunk Cloud Platform.
In approximately 90 days, Splunk will declare one or more releases of your app as incompatible with the Splunk Cloud Platform due to enhancements to the Splunk Cloud Vetting process.
Issue found:
check_idx_binary_compatibility
- Checks that binaries that are distributed to the IDX tier of a distributed Splunk platform deployment are compatible with aarch64.
AppInspect Details
The AppInspect tool reports:
{
"description": "Checks that binaries that are distributed to the IDX tier of a distributed Splunk platform deployment are compatible with aarch64.",
"name": "check_idx_binary_compatibility",
"tags": ["splunk_appinspect", "cloud", "private_app", "private_victoria", "migration_victoria", "private_classic"],
"result": "warning",
"messages": [
{
"result": "warning",
"message": "Code has been found that may have executed the binary file. File: /tmp/tmpnan4taxz/crowdsec-splunk-app/bin/splunklib/searchcommands/external_search_command.py Line Number: 133",
"message_filename": "/tmp/tmpnan4taxz/crowdsec-splunk-app/bin/splunklib/searchcommands/external_search_command.py",
"message_line": 133
}
]
}
Code Location
The warning is triggered by line 133 in external_search_command.py:
p = Popen(argv, executable=path, env=environ, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr)
This is part of the ExternalSearchCommand._execute() method that uses subprocess.Popen to execute external binaries.
Context
- My app does NOT use
ExternalSearchCommand- I only useStreamingCommand,dispatch,Configuration,Option, andvalidators - My app contains NO compiled binaries - only Python scripts
- The SDK is bundled following standard Splunk app packaging practices (apps must be self-contained)
- This affects cloud compatibility - Splunk will mark the app as incompatible if not resolved
Questions for SDK Team
- Is there a plan to address aarch64 compatibility concerns in
ExternalSearchCommand? - Are there recommended workarounds for app developers who need to pass cloud vetting?
- Should apps remove the unused
external_search_command.pyfile from their bundled SDK as a workaround?
Environment
- Splunk SDK for Python version: 2.1.0 (also tested with 2.1.1 - same issue)
- Python version: 3.9.19
- Target Splunk versions: 9.0+
- AppInspect version: Latest (via Splunk Cloud vetting)
Workaround Considerations
Currently considering removing external_search_command.py from the bundled SDK since it's not used by my app, but this seems like a band-aid solution that doesn't address the root cause for the broader ecosystem.
Request
Could the SDK team investigate and provide guidance on:
- Whether this is a known issue
- If there are plans to address it in future SDK releases
- The recommended approach for app developers facing this cloud vetting failure
Thank you for maintaining this valuable SDK!
We've received another email :
What's changing The check_idx_binary_compatibility check will no longer affect the Splunk Cloud Platform compatibility of your app.
What you should do No action is required at this time. You can ignore warnings related to the check_idx_binary_compatibility check in the context of Splunk Cloud Platform compatibility for your app.
That's why I suppose we can close this issue.
Thanks