While using Chef’s Databag, I created a databag on workstation with an openssl key for encryption.
Now when calling chef-client on a node to call the recipes and databag use on the node, I need the key to decrypt my databag item on the node.
How can i manage my openssl key so that node can also read that
What i tried was I kept the key in files and then using cookbook_file resource to call the key at runtime on node but the issue is that before the cookbook_file resource runs the Encrypted key_load function searches for the key on node and gives an error.
How to get rid of the problem