Sha256: 6267feb838b42f2c86a1d7bf1ac5d688e032e8edea5d918a9119c745b7f432a8
Contents?: true
Size: 1.7 KB
Versions: 5
Compression:
Stored size: 1.7 KB
Contents
# Sidekiq::Encryptor [](http://travis-ci.org/wuputah/sidekiq-encryptor) [](https://gemnasium.com/wuputah/sidekiq-encryptor) Sidekiq::Encryptor is a middleware set for Sidekiq that encrypts your job data when enqueuing a job and decrypts that data when running a job. ## Compatibility Sidekiq::Encryptor is actively tested against MRI versions 2.0.0 and 1.9.3. ## Installation Add this line to your application's Gemfile: gem 'sidekiq-encryptor' And then execute: $ bundle Or install it yourself as: $ gem install sidekiq-encryptor ## Configuration In a Rails initializer or wherever you've configured Sidekiq, add the relevant Sidekiq::Encryptor middlewares as follows: ```ruby key = ENV['SIDEKIQ_ENCRYPTION_KEY'] Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Sidekiq::Encryptor::Server, key: key end config.client_middleware do |chain| chain.add Sidekiq::Encryptor::Client, key: key end end Sidekiq.configure_client do |config| config.client_middleware do |chain| chain.add Sidekiq::Encryptor::Client, key: key end end ``` You should also set `SIDEKIQ_ENCRYPTION_KEY` to something sufficiently random. The `openssl` tool is a good choice for this: ```sh echo SIDEKIQ_ENCRYPTION_KEY=$(openssl rand -base64 32) >>.env heroku config:set SIDEKIQ_ENCRYPTION_KEY=$(openssl rand -base64 32) ``` ## Contributing Pull requests gladly accepted. Please write tests for any code changes, though I'll admit my test coverage is completely awful right now. ## License MIT Licensed. See LICENSE.txt for details.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-encryptor-0.2.0 | README.md |
sidekiq-encryptor-0.1.3 | README.md |
sidekiq-encryptor-0.1.2 | README.md |
sidekiq-encryptor-0.1.1 | README.md |
sidekiq-encryptor-0.1.0 | README.md |