Skip to content

Commit

Permalink
Host#verify_credentials_task payload string keys
Browse files Browse the repository at this point in the history
Now that we've dropped the legacy host verify credentials path from the
data hash has string keys like a typical JSON API payload.
  • Loading branch information
agrare committed Oct 2, 2024
1 parent ff7d2c9 commit 7f67f94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1447,9 +1447,7 @@ def verbose_supports?(feature, description = nil)
# Ensure that any passwords are encrypted before putting them onto the queue for any
# DDF fields which are a password type
def encrypt_verify_credential_params!(options)
# NOTE the API always symbolizes the username/password keys so it is safe
# to assume the keys will be symbols until we move to passing the DDF payload in
encrypted_columns = Authentication.encrypted_columns.map(&:to_sym)
encrypted_columns = Authentication.encrypted_columns

traverse_hash(options) do |value, key_path|
value.slice(*encrypted_columns).each do |key, val|
Expand Down

0 comments on commit 7f67f94

Please sign in to comment.