I would like to decrypt a chef data bag item (named
passwords) and store all of its attributes in a temporary JSON file which is read (and then deleted) by a node.js app. Is there a way to iterate over attributes of a data bag ITEM and get their values?
plain_data = Chef::EncryptedDataBagItem.load("/home/me/data_bags/secrets/passwords.json", secret_key)
Since the EncryptedDataBagItem class does not have an
each method, is there any workaround? I don't want to store each password in a separate json file (data bag item).