Skip to content

Fails to decrypt sops-encrypted files encoded with UTF16 LE. #687

@mueslo

Description

@mueslo

Current Behavior

This was not an issue in prior versions of helm secrets (with helm v3), so a definite regression.

On Files encoded with UTF16 LE we now get

Error: failed to parse secrets.yaml: cannot unmarshal yaml document: error converting YAML to JSON: yaml: incomplete UTF-16 character
Error: plugin "secrets" exited with error

Expected Behavior

Decrypts UTF16LE encoded files.

Steps To Reproduce

Environment

  • Helm Version: 4.0.4
  • Helm Secrets Version:
  • OS:
  • Shell:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions