Skip to content

Commit

Permalink
Merge pull request #154 from babiel/eyaml-methods
Browse files Browse the repository at this point in the history
add all known hiera-eyaml methods
  • Loading branch information
bastelfreak authored Oct 10, 2023
2 parents 4b60695 + 5d8c49a commit 6378ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppet-syntax/hiera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def check_eyaml_blob(val)
method = 'PKCS7'
end

return "has unknown eyaml method #{method}" unless %w[PKCS7 GPG GKMS KMS].include? method
known_methods = %w[PKCS7 GPG GKMS KMS TWOFAC SecretBox VAULT GCPKMS RSA SSHAGENT VAULT_RS cli]
return "has unknown eyaml method #{method}" unless known_methods.include? method
return 'has unpadded or truncated base64 data' unless base64.length % 4 == 0

# Base64#decode64 will silently ignore characters outside the alphabet,
Expand Down

0 comments on commit 6378ebf

Please sign in to comment.