diff --git a/Changes.md b/Changes.md index a2a8c90a..9c485532 100644 --- a/Changes.md +++ b/Changes.md @@ -19,6 +19,8 @@ Sidekiq::Middleware::Server::Logging -> Sidekiq::JobLogging - The Web UI is now BiDi and can render RTL languages like Arabic, Farsi and Hebrew. - Rails 3.2 and Ruby 2.0 and 2.1 are no longer supported. - The `SomeWorker.set(options)` API was re-written to avoid thread-local state. [#2152] +- Sidekiq Enterprise's encrypted jobs now display "[encrypted data]" in the Web UI instead + of random hex bytes. - Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail. 4.2.10 diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index 171b999e..569afcf4 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -344,6 +344,10 @@ module Sidekiq job_args end else + if self['encrypt'.freeze] + # no point in showing 150+ bytes of random garbage + args[-1] = '[encrypted data]'.freeze + end args end end