Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error dumping file: Error marshaling to yaml: yaml: expected SCALAR, SEQUENCE-START, MAPPING-START, or ALIAS, but got document end #926

Open
Morriz opened this issue Aug 30, 2021 · 2 comments

Comments

@Morriz
Copy link

Morriz commented Aug 30, 2021

Hi, it seems that it is possible to encrypt an empty yaml file, but then not decrypt it. It then results in this error:

Error dumping file: Error marshaling to yaml: yaml: expected SCALAR, SEQUENCE-START, MAPPING-START, or ALIAS, but got document end

Example content of such a file (as you can see this is on azure):

sops:
    kms: []
    gcp_kms: []
    azure_kv:
        - vault_url: https://xxxxxxxxx.vault.azure.net
          name: otomi-key
          version: 0fb75d551be64ae3b9411014e50e925b
          created_at: "2021-08-30T20:12:20Z"
          enc: xFtl_cLwDaKEdfO3QYQbLmrjb3RY5EchBZiF8NlKJPbTD1xQY4PTkCnbUsaloVZgQD_vHLcW9DVuy1hoBpVDYWJzelX3fIGAQMOpa8Y5k2qWjPfyyGxEkLG3Z6wSGX2ryZMf2liZZK-VumhPzEnZS5lFyRZs62MEDnV23_dd2lpGQrazC3qebsxzZGHn2_HwlyJKVr6fNyL3s1qhJ1mdBKZLDKSimPjq4R16CPoRBgjCWEXwjtJVpxzixXS6NWiRC6Zt__JmVNAwN1MAq8z8myBm9MbBULmYi0AhH-QG4U2jJoqRjxdsUWLzUhianFxxOsAtON8MFIXpb8oYbx0s2g
    hc_vault: []
    age: []
    lastmodified: "2021-08-30T20:12:21Z"
    mac: ENC[AES256_GCM,data:/DJmH2x/s+FfLu0LcdQJntDilgqn3LXH09RvoKzjBZz+MY/q+OMefEqwNDt9jD4KHlx5HsyUWvZtrPzyvgEdM8eTW4ZSDukPJC5nYs/Fh72NE5vuWZYuMsEP6IdylMmttR/GDvRPz9awptewQKHfqbZOEj8sPXE+ktLiXunVdEg=,iv:iC8YAir5O/vEqFZMC93WHNFaMlpCtrrD6NbRdtn4ozY=,tag:C2RygMzUh403RvB9PtTcmA==,type:str]
    pgp: []
    unencrypted_suffix: _unencrypted
    version: 3.7.1
@felixfontein
Copy link
Contributor

Duplicate of #907, and will be fixed by #908.

@Morriz
Copy link
Author

Morriz commented Aug 31, 2021

Ah, so #908 will just skip empty yaml files? I can close this one here then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants