On Thursday, August 30, 2012 at 2:35 PM, wrote:
hi. anyone know what's going on here? i was updating an encrypted data bagitem today. when i decrypted it in order to edit the json, i found entriesmissing in the decrypted form when using rvm 1.9.3.the entries missing were all "_cert" entries in the decrypted form. in thedecrypted form all the "_key" entries were intact. when displaying the databag item in encrypted form, all entires were intact. see below.anyone know what's going on?thanks,kallen[zahadum chef-repo]$ rvm use 1.9.3Using /home/kallen/.rvm/gems/ruby-1.9.3-p194Running /home/kallen/.rvm/hooks/after_use[zahadum chef-repo]$ knife data bag show secrets webproxy-vacaynow-x509 --secret-file ~/.chef/encrypted_data_bag_secret -Fj > decrypted.omfg.jsondecrypted.omfg.json looks like this, entries missing:{"wildcard_mysite_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCA\nxxxxSNIP_GOOD_DATA\n","wildcard_mysite_cert": "","wildcard_anothersite-admin_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIB\nxxxSNIP_GOOD_DATA\n","wildcard_anothersite_cert": "","id": "webproxy-vacaynow-x509"}if i don't decrypt, the "_cert" entries are intact:[zahadum chef-repo]$ knife data bag show secrets webproxy-vacaynow-x509 -Fj | grep _cert"wildcard_mysite_cert": "Vcd646sJ/Cy8xxxx we're cool","wildcard_anothersite_cert": "Bg8xjDjVLh2oIOz8h we're cool",if i use the system ruby, 1.8.7, this problem does not occur.[zahadum chef-repo]$ which ruby/usr/bin/ruby[zahadum chef-repo]$ ruby -vruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux][zahadum chef-repo]$ knife data bag show secrets webproxy-vacaynow-x509 --secret-file ~/.chef/encrypted_data_bag_secret -Fj > decrypted.good.json{"wildcard_mysite_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCA\nxxxxSNIP_GOOD_DATA\n","wildcard_mysite_cert": "MIIFhTCCBG2gAw\nxxxxSNIP_GOOD_DATA\n","wildcard_anothersite-admin_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIB\nxxxSNIP_GOOD_DATA\n","wildcard_mysite_cert": "MIIFYTCCBEmgAw\nxxxxSNIP_GOOD_DATA\n","id": "webproxy-vacaynow-x509"}[zahadum chef-repo]$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 11.04Release: 11.04Codename: natty
Archive powered by MHonArc 2.6.16.