lib/sidekiq/encrypted_args/server_middleware.rb
def call(worker, job, queue)
        encrypted_args = job["encrypted_args"]
        if encrypted_args
          encrypted_args = backward_compatible_encrypted_args(encrypted_args, worker.class, job)
          job_args = job["args"]
          encrypted_args.each do |position|
            value = job_args[position]
            job_args[position] = EncryptedArgs.decrypt(value)
          end
        end

        yield
      end
# Wrap the server process to decrypt incoming arguments
Wrap the server process to decrypt incoming arguments
Wrap the server process to decrypt incoming arguments
def call(worker, job, queue)
        encrypted_args = job["encrypted_args"]
        if encrypted_args
          encrypted_args = backward_compatible_encrypted_args(encrypted_args, worker.class, job)
          job_args = job["args"]
          encrypted_args.each do |position|
            value = job_args[position]
            job_args[position] = EncryptedArgs.decrypt(value)
          end
        end
        yield
      end
def call ( worker , job , queue ) encrypted_args = job [ "encrypted_args" ] if encrypted_args encrypted_args = backward_compatible_encrypted_args ( encrypted_args , worker . class , job ) job_args = job [ "args" ] encrypted_args . each do | position | value = job_args [ position ] job_args [ position ] = EncryptedArgs . decrypt ( value ) end end yield end
Wrap the server process to decrypt incoming arguments
Wrap the server process to decrypt incoming arguments
worker
job
queue