You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Overview of the Issue
Storing a numeric value in a plaintext secret in AWS secrets manager crashes packer.
This was found during an upgrade of an old json template which worked fine on packer 1.4.x.
Error returned:
Error: Datasource.Execute failed: error to get secret value: "json: cannot unmarshal number into Go value of type map[string]interface {}"
on template.pkr.hcl line 123:
(source code not available)
Fix in #10421 does not seem to cover this scenario. json.Valid returns true, but can't unmarshal?
If I try add quotes to my secret value so it stores "1234", I instead get this error:
Error: Datasource.Execute failed: error to get secret value: "json: cannot unmarshal string into Go value of type map[string]interface {}"
(cannot unmarshal string)
Reproduction Steps
Create a plaintext secret named numeric_plaintext stored with value 1234
Community Note
Overview of the Issue
Storing a numeric value in a plaintext secret in AWS secrets manager crashes packer.
This was found during an upgrade of an old json template which worked fine on packer 1.4.x.
Error returned:
Fix in #10421 does not seem to cover this scenario. json.Valid returns true, but can't unmarshal?
If I try add quotes to my secret value so it stores
"1234"
, I instead get this error:(cannot unmarshal string)
Reproduction Steps
numeric_plaintext
stored with value1234
Packer version
Packer v1.10.0
Simplified Packer Template
Operating system and Environment details
macOS
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: