Repository navigation
Releases
Releases · bdurand/sidekiq-encrypted_args
v2.0.2
Changed
- An
ArgumentErroris now raised when a named encrypted argument cannot be matched to a parameter of the worker'sperformmethod or when the worker class name cannot be resolved to a class. Previously these arguments were silently left unencrypted.
Fixed
- Setting the secret to an empty value (e.g. an empty array or empty string) no longer silently disables encryption. An
InvalidSecretErroris now raised when encrypting or decrypting if no secret is available. - The client middleware no longer mutates the caller's arguments array in place when encrypting arguments.
- Lazily initializing the encryption keys from the
SIDEKIQ_ENCRYPTED_ARGS_SECRETenvironment variable is now thread safe.
v2.0.0
What's Changed
Changed
- A secret key is now required to be set. Previously the code would silently fail if no key was set. This change improves security by protecting against misconfiguration leaking data into Redis.
- Bumped minimum required Ruby version to 2.7 and Sidekiq to 6.3.
Full Changelog: v1.2.0...v2.0.0
v1.2.0
What's Changed
Removed
- Removed deprecated method of setting encrypted args with a hash with numeric keys. This method stopped working with Sidekiq 7.1.
- Removed deprecated method of setting encrypted args with an array of booleans.
- Removed deprecated method of setting encrypted args with a mix of symbols and integers.
Full Changelog: v1.1.1...v1.2.0
v1.1.1
Version 1.1.0
Change Log
1.1.0
- Use
to_jsonif it is defined when serializing encrypted args to JSON. - Add client middleware to the server default configuration. This ensures that arguments will be encrypted if a worker enqueues a job with encrypted arguments.
- Client middleware now reads sidekiq options from the job hash instead of from the worker class so that the list of encrypted arguments is always in sync on the job payload.
- Don't blow up if class name that is not defined is passed to client middleware.
- Added additional option to specify encrypted args with array of argument indexes.
- Deprecated setting encrypted args as hash or array of booleans.
- Client middleware is prepended while server middleware is appended.
Version 1.0.2
Change Log
1.0.2
- Remove overly noisy log warning when running without the secret set
Version 1.0.1
Change Log
1.0.1
- Now works with scheduled jobs
- Scheduled jobs dispatch by class name instead of
Class, requiring a constant lookup
- Scheduled jobs dispatch by class name instead of