Security

SPLUNK URL Authentication issue

danura
New Member

Hi,

I have a requirement to add a link to SPLUNK dashboard to call a CGI script. But I need to have some authentication mechanism to protect outsiders access from that URL.

eg: I am calling this CGI url from my SPLUNK dash board.
http://localhost/myscript.cgi?username=xxxxxx&pass=yyyyyyy

here username and passwords are encrypted values. But I need to stop this CGI script if someone copy and paste this URL in a browser. Can you suggest a better way to implement this requirement ?

Thanks.

Tags (3)
0 Karma

Ayn
Legend

Depending on how exactly you are using this, you could build it into a custom search command. Let's say you create the command "fetchcgidata", and this command points to a Python script that exists on the indexer. You could put the CGI credentials into that script and then call it from your dashboard. The script will run on the indexer, fetch data from the CGI and return it in some way you prefer. Because the client only sees the custom search command being called, the credentials are hidden from the client.

0 Karma
Get Updates on the Splunk Community!

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...

Reminder! Splunk Love Promo: $25 Visa Gift Card for Your Honest SOAR Review With ...

We recently launched our first Splunk Love Special, and it's gone phenomenally well, so we're doing it again, ...