That’s correct. Knife will use your encryption key to de/encrypt
the data in an encrypted data bag.
If you’d like to see the raw content of a data bag item, you can
run this command:
knife exec -E "puts
JSON.pretty_generate(api.get('/data/data_bag/data_bag_item'))"
That will output the raw JSON, pretty-printed, from your Chef
Server.
To add to the confusion, if you have the `knife[:secret_file]`
setting in your .knife.rb set, using the `knife data bag show`
command will always display a decrypted data bag item, which can be
_very_ confusing.
On November 17, 2014 at 12:24:27 PM, Douglas
Garstang (
">
)
wrote:
I'm not following. The file is unencrypted
locally. Are you saying that the knife command will encrypt the
local file?