Refine your search:

You can add ?showsource=1 (or ?showsource=true) to the end of any address in your browser and see the underlying Splunk modules and XML source. Nice.

But if I am developing an app that I want to sell, I might not want to give away the "source code."

Can I disable showsource?

asked 09 Dec '10, 21:03

lguinn's gravatar image

lguinn ♦
3.2k216
accept rate: 24%


3 Answers:

This is not possible. When you're giving your app to someone, he can just unpack it and take a look at the view files directly. There's no way to protect or encrypt this yet.

link

answered 09 Dec '10, 21:25

ziegfried's gravatar image

ziegfried ♦
7.2k1315
accept rate: 53%

Excellent point. Why protect it dynamically if any person who downloads it can just look at the static files...

(10 Dec '10, 16:47) lguinn ♦

Because you may want to hide something from users rather than admins.

(30 Dec '11, 13:39) BobM

In addition to the other answers, I wouldn't worry too much about this today. The view XML is currently so limited that I find it hard to imagine it's even possible to create something worth hiding. It may be maddeningly difficult to read or write, but it's about as complex and interesting as the navigation menu structure. (And I mean "complex" in the sense of "able to express complex forms" not simply "complicated". It is indeed the latter.)

link

answered 10 Dec '10, 07:30

gkanapathy's gravatar image

gkanapathy ♦
26.5k1622
accept rate: 42%

You made me laugh.

(10 Dec '10, 16:46) lguinn ♦

I'm not aware of a way, but perhaps one exists.

Even if you were able to disable that particular method, however, there are plenty of other ways to see the source XML.

Once an app is installed, users with admin privileges will be able to view and edit the source in the Manager. Also, the raw XML files will be visible in the app's default/data/ui/views directory, and the SplunkBase archive format is just .tar.gz format renamed to .spl, making it trivial to extract the information there.

Splunk admins may also need to be able to modify the view definition to adjust for differences in their data, especially if there are search strings embedded in the XML.

Trying to restrict access to an app's XML from end users is one thing; trying to hide it from the Splunk admin is quite another.

link

answered 09 Dec '10, 21:26

southeringtonp's gravatar image

southeringtonp ♦
4.5k1215
accept rate: 35%

I see the distinction. At some point, I might want to do both... Thanks for the answer.

(10 Dec '10, 16:46) lguinn ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×161

Asked: 09 Dec '10, 21:03

Seen: 755 times

Last updated: 30 Dec '11, 13:39

Copyright © 2005-2012 Splunk, Inc. All rights reserved.