mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Don’t display the secret bag when showing Sidekiq Enterprise’s encrypted jobs, since it is just random data.
This commit is contained in:
parent
8e98c75c08
commit
1459ff3f5d
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
- 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.
|
- 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]
|
- 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.
|
- Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail.
|
||||||
|
|
||||||
4.2.10
|
4.2.10
|
||||||
|
|
|
@ -344,6 +344,10 @@ module Sidekiq
|
||||||
job_args
|
job_args
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if self['encrypt'.freeze]
|
||||||
|
# no point in showing 150+ bytes of random garbage
|
||||||
|
args[-1] = '[encrypted data]'.freeze
|
||||||
|
end
|
||||||
args
|
args
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue