简体   繁体   English

如何使用小刀上传加密的数据包

[英]How to upload a encrypted data bag using knife

Hi am trying to create a chef server copying all files from an existing chef server. 您好,我正在尝试创建一个厨师服务器,以复制现有厨师服务器中的所有文件。 So when copied everything and ran a recipe it's getting error as data bag is encrypted. 因此,当复制所有内容并运行配方时,由于数据包已加密,因此会出现错误。 So, I downloaded keytab from an encrypted data bag on old chef server. 因此,我从旧厨师服务器上的加密数据包中下载了keytab。 Knife vault download keys sri_keytab sri.keytab Now I want to upload the data bag to my new chef server. 刀库下载键sri_keytab sri.keytab现在,我要将数据包上传到新的厨师服务器。 I heard it's only possible in the case when we decrypt a data bag using vault and the keytab downloaded and then upload it as an encrypted one. 我听说只有在我们使用保管库解密数据包并下载密钥表然后将其作为加密的文件上传时,才有可能。 But I don't know how So could anyone help me please...... 但是我不知道该怎么办所以有人可以帮我......

You can do the following: 您可以执行以下操作:

  • Decrypt a data bag from the old server 从旧服务器解密数据包
  • create a json file with the decrypted data 用解密的数据创建一个json文件
  • create a vault from the new json file to the new server 从新的json文件到新服务器创建文件库

you can use this as reference chef-vault 您可以将其用作参考厨师库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM