Giter Site home page Giter Site logo

docket's Introduction

docket

A RESTful API frontend for Stenographer

Read the documentation

Limitations

Docket does not perform any authentication whatsoever. If you need to control access to your PCAP data, you should configure the forward-facing reverse proxy (such as nginx, apache, lighttpd, etc) to perform this function. These programs have robust and flexible methods of authentication available from .htpasswd files, to PAM, to Kerberos.

docket's People

Contributors

anlx-sw avatar bndabbs avatar dcode avatar jeffgeiger avatar jeffkwasha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docket's Issues

Current RPM issues (devel branch)

  • docket-celery-*.service files need to call docket.app instead of manage.app.
  • /etc/sysconfig/docket points to the config located at /etc/docket/docket.yaml, but that doesn't exist
  • /var/log/docket isn't created by the RPM spec file

x509 certifcate hostname mismatch throws uncaught exception

This was my error, b/c I configured docket to pull from the wrong IP endpoint, but ideally the process doesn't stand on it's head when this happens.

2018039T02:25:42[MainProcess:140099298334848] Starting new HTTPS connection (1): 127.0.0.1
2018039T02:25:42[MainProcess:140099298334848] Stats: 127.0.0.1:1234 Connection Error? hostname '127.0.0.1' doesn't match u'192.168.192.4'
2018039T02:25:42[MainProcess:140099298334848] Exception on /stats/ [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 477, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 587, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/rocknsm/docket/docket/resources/query.py", line 800, in get
    stats = get_stats(selected_sensors=selected)
  File "/opt/rocknsm/docket/docket/tasks.py", line 81, in get_stats
    raise ex
SSLError: hostname '127.0.0.1' doesn't match u'192.168.192.4'

Allow re-download of results

The results are kept on the system for a default period of 1 hour. Rather than the current blocking mode we use, we should perform a redirect to a result URI. This would allow us to re-use the existing PCAP vs. rerunning the query every time.

Needs more flushing out how this would best work.

nginx-example.conf file missing

The nginx-example.conf file does not seem to exist after installing docket & nginx.

I run the following while installing and get the error below.
sudo cp /usr/share/doc/docket-*/nginx-example.conf
/etc/nginx/conf.d/docket.con

Error:
cp: cannot stat '/usr/share/doc/docket-*/nginx-example.conf': No such file or directory

I navigate to the docket-1.0.3 directory and only find a docs directory that is empty.

Update:
I was able to just find the file under the contrib directory and copy it to where it needs to go. I'm just not sure why it seems to not be packaged with the rpm.

Add python packaging information

I'm not 100% sure the best way to handle this, but it feels like docket should use setuptools to create a proper python package. Not sure how that is typically managed for a flask app.

Need to package Python libs

Need the following packaged in RPM (one each):

asn1crypto==0.22.0
billiard==3.5.0.2
celery==4.0.2
certifi==2017.4.17
tonyg-rfc3339==0.1
vine==1.1.3
amqp==2.1.4
kombu==4.0.2
Jinja2==2.9.6
MarkupSafe==1.0
Werkzeug==0.12.2
click==6.7
flask==0.12.2
itsdangerous==0.24

Add ansible prereq checks

  • test for pyopenssl on hosts that generate keys
  • test for hosts in [stenographer] group
  • test for user group for stenographer and nginx

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.