1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Document lack of YAML stream support (#351)

Fixes #350
This commit is contained in:
Adrian Utrilla
2018-05-17 18:22:48 +02:00
committed by GitHub
parent 5430b63879
commit e9550cdcbd

View File

@@ -699,6 +699,23 @@ dynamic paths generated by anchors break the authentication step.
JSON and TEXT file types do not support anchors and thus have no such limitation.
YAML Streams
~~~~~~~~~~~~
`YAML` supports having more than one document in a single file. `sops` does not. For this
reason, the following file won't work in `sops`:
.. code:: yaml
---
data: foo
---
data: bar
If you try to encrypt this file with `sops`, it will ignore all documents except the first,
effectively deleting them. `sops` does not support multi-document files, and until our YAML
parser does, it is unlikely it will.
Top-level arrays
~~~~~~~~~~~~~~~~
`YAML` and `JSON` top-level arrays are not supported, because `sops` needs a top-level