Skip to content

Commit

Permalink
add all known hiera-eyaml methods
Browse files Browse the repository at this point in the history
I created the list by searching rubygems.org and looking at all
the Github repos that were still available.
  • Loading branch information
mxey committed Oct 10, 2023
1 parent 4b60695 commit 5d8c49a
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 5d8c49a

Please sign in to comment.