hubot-signal-service
A Hubot adapter for the Signal messaging service.
Last updated a year ago by jheretic .
AGPL-3.0-or-later · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-signal-service 
SYNC missed versions from official npm registry.

hubot-signal-service

This is a third-party effort, and is NOT a part of the official Signal project or any other project of Open Whisper Systems.

WARNING: This adapter is currently undergoing a security audit. It should not be regarded as secure, use at your own risk. I am not a cryptographer, I just encrypt a lot.

A Hubot adapter that allows Hubot to utilize the Signal messaging service.

Requirements

Hubot-signal-service is only compatible with Hubot v3.0 and above. Unlike many other adapters, hubot-signal-service also requires a Hubot Brain with persistent storage so that it can store keys and other state information. Make sure that your Hubot instance has a functioning Redis instance or other backend storage before attempting to connect it to Signal. Your Signal keys are only as secure as your storage, so make sure your storage is secure and that you don't install unnecessary scripts on your Hubot instance that may provide a way to get access to your keys.

Usage

To use this in your Hubot project, run the following from your project directory:

npm install --save hubot-signal-service

And then add hubot-signal-service to the external-scripts.json file. Hubot-signal-service uses the following environment variables for configuration:

  • HUBOT_SIGNAL_NUMBER: This is the phone number that this Hubot instance will listen on in E.164 format, i.e. a US phone number would look like +15555555555. It's not currently recommended to use this with a number that you already use Signal on except for testing, as in production you will screw up your existing keys. You only need to be able to receive an SMS message on this number in order to finalize the authentication process, so you can use any number on which you can receive SMS (you can get a phone number via Google Voice or Twilio. Technically after you authenticate the bot you no longer need the number, but you may want to retain it so that someone else can't start using it.

  • HUBOT_SIGNAL_PASSWORD: This is an arbitrary password string, but it must be the same between initializations.

When you first start the bot with the above parameters, it will have the Signal server send you a numeric code via SMS at the number you specified, and then exit. On the next startup, in addition to the above parameters:

  • HUBOT_SIGNAL_CODE: This is the code you receive via SMS at the number above (without the dash/hyphen). When you start up the bot for the second time with this code, it will authenticate that you have control over the number and Hubot will respond to Signal messages sent to the number above. The HUBOT_SIGNAL_CODE parameter will be ignored on subsequent startups and can be ommitted thereafter.

Todo

  • [ ] More inline documentation.
  • [ ] Figure out a way to effectively unit test.
  • [ ] Threaded conversation support.
  • [ ] Better attachment handling (Hubot provides no built-in attachment handling method).

License

AGPLv3

Hubot-signal-service is a free software project licensed under the GNU General Public License v3.0 (GPLv3) by Throneless Tech.

Current Tags

  • 0.3.0                                ...           latest (a year ago)

11 Versions

  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |