Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
R167 committed Jun 11, 2020
1 parent 42e17c5 commit 95f655a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sidekiq/encrypted_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class InvalidSecretError < StandardError
class << self
# Set the secret key used for encrypting arguments. If this is not set,
# the value will be loaded from the `SIDEKIQ_ENCRYPTED_ARGS_SECRET` environment
# variable. If that value is not set, arguments will not be encypted.
# variable. If that value is not set, arguments will not be encrypted.
#
# @param [String] value One or more secrets to use for encypting arguments.
# @param [String] value One or more secrets to use for encrypting arguments.
#
# @note You can set multiple secrets by passing an array if you need to roll your secrets.
# The left most value in the array will be used as the encryption secret, but
# all the values will be tried when decrypting. That way if you have scheduled
# jobs that were encypted with a different secret, you can still make it available
# jobs that were encrypted with a different secret, you can still make it available
# when decrypting the arguments when the job gets run. If you are using the
# envrionment variable, separate the keys with spaces.
# environment variable, separate the keys with spaces.
def secret=(value)
@encryptors = make_encryptors(value)
end
Expand Down

0 comments on commit 95f655a

Please sign in to comment.