Giter Club home page Giter Club logo

zpark's People

Contributors

knightjoel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

zpark's Issues

The trusted users list should accept regex

The primary use case is so that "*@domain.com" can be specified which would make it convenient to trust all users in an org or belonging to a specific domain. Intention is to allow any manner of regex to be specified, however.

Need a "hello" command

Should provide:

  • An introduction to what the bot is/does
  • Version information
  • Information about the owner/contact (?)
  • A list of supported commands (or should this be a separate command?)

Want consideration for issues that have been acknowledged

Zpark unconditionally shows issues that have not been acknowledged (withLastEventUnacknowledged=1 in the trigger filter). That's fine, but has some drawbacks.

  1. It's not clear from a user's perspective that that's what's happening
  2. If a user desired to query for issues that have been acknowledged, they can't
  3. If a user desired to be notified when an issue is ack'd, they cannot

Want to enhance Zpark to account for ack'd issues in these ways (and more?)

Improve logging in tasks.task_send_spark_message

  • When sending to a room, log room name instead of roomId
  • Should be logging the task id that it's being executed under in the case where it's not called with .async(). Needed to make tracing through the logs possible.

Upgrade to latest ciscosparkapi module

Need to account for:

  • Automatic rate limiting will cause tasks to block; the rate limit delay should cause the task to be requeued with a "start time" set appropriately
  • The SparkApiError constructor now only accepts a requests.Response object as an argument; can no longer simply pass an http status code. This breaks a number of unit tests.

Allow delimiters between bot name and command

Use case is in a group room, being able to type something like @bot, show issues. Right now, the syntax is very strict and must be @bot show issues.

Maybe it's just me, but my muscle memory is to type a comma after the @name of someone (thanks, IRC).

Need toggle for verification of Zabbix SSL certificate

The pyzabbix module uses the requests module to contact the Zabbix API. The requests module by default, has SSL certificate verification enabled. In the case where the Zabbix server has HTTPS enabled and has been issued with a self-signed or private CA issued certificate, the requests module will throw an exception because it won't be able to verify such a certificate.

This exception will be thrown during startup of the Celery worker processes resulting in the workers failing to start.

Thanks to @egnirra for bringing this to my attention.

Want logging when Zpark denies a command from an untrusted user

When first getting Zpark up and running, it would be very useful if Zpark would log a message when it drops a command from an untrusted user (ie, a user that isn't part of the SPARK_TRUSTED_USERS list) to aid in troubleshooting and just getting the bot up and running the first time.

Once troubleshooting is complete, want a way to ensure logs are not spammed by random users issuing commands to the bot.

Thanks to @egnirra for the suggestion!

Requests module: CVE-2018-18074

https://nvd.nist.gov/vuln/detail/CVE-2018-18074

Vulnerable versions: <= 2.19.1
Patched version: 2.20.0

The Requests package through 2.19.1 before 2018-09-14 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.

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.