voxpupuli / hiera-eyaml

A backend for Hiera that provides per-value asymmetric encryption of sensitive data
MIT License
527 stars 130 forks source link

critical error in hiera-eyaml edit #110

Open gtmtech opened 10 years ago

gtmtech commented 10 years ago

Under mysterious conditions, hiera-eyaml replaces the .eyaml editing file with nothing (0 bytes).

It may be related to a :wq on EDITOR=vi, needs to be investigated, its kind of unacceptable for an edit to obliterate the underlying file.

gtmtech commented 10 years ago

my commandlines were:

$ eyaml edit --pkcs7-private-key ../../../../vagrant/vagrantmulti-private_key.pkcs7.pem --pkcs7-public-key ../../../../vagrant/vagrantmulti-public_key.pkcs7.pem ./common.eyaml 

$ eyaml edit --pkcs7-private-key ../../../../vagrant/vagrantmulti-private_key.pkcs7.pem --pkcs7-public-key ../../../../vagrant/vagrantmulti-public_key.pkcs7.pem ./common.eyaml 
[hiera-eyaml-core] No changes detected, exiting

$  ls -l common.eyaml 
-rw-r--r--  1 ......  .....  1  7 Oct 16:57 common.eyaml

(formerly common.eyaml was several K big)

gtmtech commented 9 years ago

So far can't reproduce this..