Skip to content

infernokodiak/lita-insight-vulnerabilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lita-insight

lita-insight is a handler plugin for Lita that lists CloudInsight vulnerabilities.

Installation

This project has not been packaged as a gem, but that doesn't mean you can't use it.

  • Start the lita development environment.
  • Clone the repository into your newly generated project. [email protected]:infernokodiak/lita-insight-vulnerabilities.git lita-insight
  • Bundle and Start lita bundle install bundle exec lita

Configuration

Required Attributes

username (string) - The username for your cloudinsight account password (string) - The password for your cloudinsight account

Example

add the following

Lita.configure do |config|
  config.handlers.insight.username = "[email protected]"
  config.handlers.insight.password = "your_password"
end

Usage

List All Vulnerabilites

Lita: vulnerabilities

Testing

Modify the config.yml file with your credentials. The specs use the config.username and config.password from that file within the Insight class.

bundle exec rspec spec

Troubleshooting and Known Issues

When creating a new handler using the generator, I ran into an issue. The resolution was that git needed to be installed.

sudo su -
apt-get install git
apt-get install vim

When starting the slackbot from the main project (not the lita-insight handler), make sure you add the lita-slack and lita-insight gems in the Gemfile

gem 'lita-slack'
gem "lita-insight", "0.1.0", :path => "/home/lita/workspace/lita-insight"

Depending the number of vulnerabilites you have, you may exceed the maximum safe payload defined by slack. In that case an error will arise: /home/lita/.gems/gems/lita-slack-1.5.0/lib/lita/adapters/slack/rtm_connection.rb:106:insafe_payload_for': Cannot send payload greater than 16000 bytes. (ArgumentError) ` Limit your output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages