We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChefVault::Exceptions::KeysNotFound
nexus_ssl_files/bkwi_ka_test_keys could not be found
Cookbook Trace:
/var/chef/cache/cookbooks/nexus/libraries/chef_nexus.rb:218:in `encrypted_data_bag_item' /var/chef/cache/cookbooks/nexus/libraries/chef_nexus.rb:203:in `encrypted_data_bag_for' /var/chef/cache/cookbooks/nexus/libraries/chef_nexus.rb:67:in `get_ssl_files_data_bag' /var/chef/cache/cookbooks/nexus/recipes/app_server_proxy.rb:47:in `from_file' /var/chef/cache/cookbooks/nexus/recipes/default.rb:28:in `from_file' /var/chef/cache/cookbooks/bkwi_build-server/recipes/nexus.rb:1:in `from_file' /var/chef/cache/cookbooks/bkwi_build-server/recipes/default.rb:41:in `from_file'
Relevant File Content:
/var/chef/cache/cookbooks/nexus/libraries/chef_nexus.rb:
211: raise Nexus::EncryptedDataBagNotFound.new(data_bag) 212: end 213: 214: def encrypted_data_bag_item(node, data_bag, data_bag_item) 215: if node[:nexus][:use_chef_vault] 216: p data_bag 217: p data_bag_item 218>> item = ChefVault::Item.load(data_bag, data_bag_item) 219: else 220: item = Chef::EncryptedDataBagItem.load(data_bag, data_bag_item) 221: end 222: Mash.from_hash(item.to_hash) 223: rescue Net::HTTPServerException => e 224: nil 225: end 226: end 227: end
i used the following manual to setup the vault. https://blog.chef.io/2016/01/21/chef-vault-what-is-it-and-what-can-it-do-for-you/ and combined this with the data-bags in the nexus-cookbook.
the values passed in row 218 are : "nexus_ssl_files" and "test_build" (test_build being an Environment)
i have no idea wat is going wrong, i've disabled all ssl attributes and i still get ssl references? weird.
anyone any idea why this doesn't work? regards, Jaap-Jan
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i get the following message when using a vault while running the nexus-cookbook:
Recipe Compile Error in /var/chef/cache/cookbooks/bkwi_build-server/recipes/default.rb
ChefVault::Exceptions::KeysNotFound
nexus_ssl_files/bkwi_ka_test_keys could not be found
Cookbook Trace:
Relevant File Content:
/var/chef/cache/cookbooks/nexus/libraries/chef_nexus.rb:
211: raise Nexus::EncryptedDataBagNotFound.new(data_bag)
212: end
213:
214: def encrypted_data_bag_item(node, data_bag, data_bag_item)
215: if node[:nexus][:use_chef_vault]
216: p data_bag
217: p data_bag_item
218>> item = ChefVault::Item.load(data_bag, data_bag_item)
219: else
220: item = Chef::EncryptedDataBagItem.load(data_bag, data_bag_item)
221: end
222: Mash.from_hash(item.to_hash)
223: rescue Net::HTTPServerException => e
224: nil
225: end
226: end
227: end
i used the following manual to setup the vault.
https://blog.chef.io/2016/01/21/chef-vault-what-is-it-and-what-can-it-do-for-you/
and combined this with the data-bags in the nexus-cookbook.
the values passed in row 218 are : "nexus_ssl_files" and "test_build" (test_build being an Environment)
i have no idea wat is going wrong, i've disabled all ssl attributes and i still get ssl references? weird.
anyone any idea why this doesn't work?
regards, Jaap-Jan
The text was updated successfully, but these errors were encountered: