Coder Social home page Coder Social logo

ta-edfs's Introduction

TA-EDFS

Based on my blogs post https://www.splunk.com/blog/2016/02/04/sso-without-an-active-directory-or-ldap-provider.html I came up with the idea to create this app, which enables/provides embedded dashboards for Splunk (EDFS).

Please note this app is provided as is, and you need to make sure that your environment is secured.

What this app does?

The app will provide new TCP port[s] that one can connect to, and automagically gets authenticated as the configured user in Splunk.

Please be aware this app sets 'trustedIP=127.0.0.1' in 'server.conf'. Please read http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf#General_Server_Configuration to understand this option. The configured options in 'web.conf' are explained in detail in the blog post linked at the top.

The configured EDFS dashboards are only accessible from the configured IP. The app blocks any HTTP POST requests other then searches, so the EDFS port cannot be used to change settings.

Install:

Install as usual in the Splunk web or copy into $SPLUNK_HOME/etc/apps and restart Splunk.

Configure:

Copy 'default/inputs.conf' to 'local/' and use the provided stanza as template. Configure the Splunk user with the least possible permissions (Make everything read-only ), make a separate app, add the dashboard you want to show as the default dashboard for the app.

Configure the EDFS inputs using the Splunk web in the inputs section. You need to configure the Splunk user that will be authenticated, the port Splunk will listen on, and the IP that is allowed to connect to the port.

Uncomment the options in web.conf, this had to be done to pass the Splunk Appinspect test.

Debug

Currently there is no debug option in the app, but the app logs all connections into 'index=_internal sourcetype=splunkd_edfs_access'

Known issues

  • the script some times continues to run, even when the input is disabled
  • to prevent issues around the cookies passed by Splunk, it is best to run private browser windows if you are testing on your computer.

Support

This is an open source project, no support provided, but you can ask questions on answers.splunk.com and I will most likely answer it. Github repository: https://github.com/M-u-S/TA-EDFS

I validate all my apps with appinspect and the log can be found in the README folder of each app.

Things to-do / Future ideas

  • Add SSL Support
  • Allow multiple IP's to connect
  • anything else ? ¯\_(ツ)_/¯

Version

29. October 2018 : 0.1.0 / Initial

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.