Splunk Cloud Platform

How do I go about publishing a Splunk Technical Add-On?

Ali_Rewterz
Explorer

Hi I am trying to publish a technical add-one for Splunk Enterprise. Any help with this response would be much appreciated. 

 

This is feed back I have received from the Splunk Team:

Technical Add-On for Splunk did not qualify for Splunk Cloud compatibility for the following reasons:

  1. check_for_supported_tls
    • If you are using requests. post to talk to your own infra with non-public PKI, make sure you bundle your own CA certs as part of your app and pass the path into requests.post as an arg. File: bin/sirp.py Line Number: 241

 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The AppInspect tool detected "requests.post" in your Python code.  The call to requests.post must include the certificate argument and that certificate must be included in your app.

---
If this reply helps you, Karma would be appreciated.

Ali_Rewterz
Explorer

Cheer mate, a quick reply is much appreciated.

Can you tell me which format should the certificate adhere to and what directory should I put the certificate in?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The certificate must be in PEM format and should go in the app's default directory.

---
If this reply helps you, Karma would be appreciated.

mushknizam
Engager

I am also facing a similar problem while submitting my splunk addon app to splunk. In my case, I am making post request to my software using the code below:


response=requests.post(url=url,headers=headers,json=temp_container,verify=False, timeout=60)


After the review and feedback from the splunk team, I included a code in my html that will make users to enter the path to  their SSL certificate (optional field). After this, I made changes to my python script so that if the user has entered the path, the code below will be executed else the one above.

response=requests.post(url=url,headers=headers,json=temp_container, timeout=60,verify=certloc)

certloc is the path to the certificate.
However, I am getting the same response as above from the review team on the code where I have kept verify=False. If I remove this code from the python then it will make it mandatory for the users to enter the path to the SSL certificate? In that case, do users have to use their own certificate and place the certificate inside default folder of the package or do we generate the certificate, and place it inside the default folder and then package it before distributing it.  Can the same certificate be used by all app users when we distribute the package? In our case, every customer has their own instance of our product just like every user has their own Splunk instance.

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...