sidekiq-status icon indicating copy to clipboard operation
sidekiq-status copied to clipboard

Sidekiq::Status doesn't play well with Sidekiq Enterprise's encryption feature

Open alecgorge opened this issue 5 years ago • 1 comments

When I call perform_async on an encrypted worker it hits the branch in api.rb (379 is a print line I added) that anonymizes things:

image

This caused the value [encrypted data] to be encrypted and stored in redis. When the job is run, it appropriately decrypts the data and passes that literal string "[encrypted data]" to the method.

This plugin calls display_args which then calls down into the base implementation of display_args.

Making my jobs that need encryption bypass calling include Sidekiq::Status::Worker has fixed the issue for me.

I don't know the middleware stack well enough to know if there is a fix for this or the "solution" is simply not using status workers but I thought I should file something to help others out.

alecgorge avatar Oct 05 '19 00:10 alecgorge

Have you tried adjusting the order of the middleware? It's not guaranteed, but by flipping the order, they might be able to play nicely with each other.

kenaniah avatar Oct 09 '19 01:10 kenaniah