lib/krane/ejson_secret_provisioner.rb in tobsch-krane-1.0.0 vs lib/krane/ejson_secret_provisioner.rb in tobsch-krane-1.0.1

- old
+ new

@@ -134,11 +134,9 @@ def decrypt_ejson(key_dir) # ejson seems to dump both errors and output to STDOUT out_err, st = Open3.capture2e("EJSON_KEYDIR=#{key_dir} ejson decrypt #{@ejson_file}") raise EjsonSecretError, out_err unless st.success? JSON.parse(out_err) - rescue JSON::ParserError - raise EjsonSecretError, "Failed to parse decrypted ejson" end def fetch_private_key_from_secret encoded_private_key = @ejson_keys_secret["data"][public_key] unless encoded_private_key