Splunk Cloud Platform

Splunk Cloud App Vetting Failure -Possible resolutions for check_hotlinking_splunk_web_libraries?

arielpconsolaci
Path Finder

Hi Fellow Splunkers,

Good day. I am currently migrating some applications from On-Prem to Splunk Cloud. From app vetting, would anyone be able to suggest of possible fixes/resolutions for this  check_hotlinking_splunk_web_libraries check?

The errors points to JS files that works well in On-Prem and are in their correct location in packaging an application (appserver/static)

 

Name: check_hotlinking_splunk_web_libraries
Description: Check that the app files are not importing files directly from the search head.
DetailsEmbed all your app's front-end JS dependencies in the /appserver directory. If you import files from Splunk Web, your app might fail when Splunk Web updates in the future. Bad imports: ['vizapi/SplunkVisualizationBase', 'vizapi/SplunkVisualizationUtils'] File: /tmp/tmp4bxeox7h/splunk_app/appserver/static/visualizations/VUmeter/src/visualization_source.js

 

Appreciate any help/advise. Thank you.

Labels (2)
0 Karma

epescio_splunk
Splunk Employee
Splunk Employee

Hi @arielpconsolaci ,

I think you just need to replace ['vizapi/SplunkVisualizationBase', 'vizapi/SplunkVisualizationUtils'] with ['api/SplunkVisualizationBase', 'api/SplunkVisualizationUtils'] in both visualization_src.js and webpack.config.js

0 Karma

jaxjohnny2000
Builder

I even opened a support case with splunk.  They told me to read the development guide.  apparently this error is a mystery to anyone who sees it. 

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...