
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
chef-command
Advanced tools
This generates both the correct Opscode chef command the corresponding json file to use.
Documentation on Chef-Solo options:
Documentation on Chef-Client options:
var ChefCommand = require('chef-command');
var chefCmd = new ChefCommand();
options:
executable: defaults to chef-solofile_cache_path:dna_json_path:role_path:environment_path:data_bag_path:config_rb_path:log_level:cookbook_path:run_list:extra_json: // extra json to merge in the dna.jsonvar ChefCommand = require('chef-command');
var chefCmd = new ChefCommand();
chefCmd.addCookbookPath('/tmp/cookbooks'); // add a cookbook
chefCmd.addCookbookPath('/tmp/site-cookbooks').logLevel('debug'); // example of chainable
addCookbookPath(path) : adds a CookbookPath + returns chainable selfremoveCookbookPath(path) : removes a CookbookPath + returns chainable selfaddRolePath(path) : adds a RolePath + returns chainable selfremoveRolePath(path) : removes a RolePath + returns chainable selfaddDataBagPath(path) : adds a DataBagPath + returns chainable selfremoveDataBagPath(path) : removes a DataBagPath + returns chainable selfsetExecutable(command) : sets the executable command to commandsetLogLevel(level) : sets the LogLevel + returns chainable selfaddRecipe(recipe) : adds recipe to the runlistaddRole(role) : adds role to the run runlistsetRunList(array of runlist) : sets the runlistsetExtraJson(json) : json to merge with dna.jsonremoveRole(role): removes the role from the runlistremoveRecipe(recipe): removes the recipe to the runlistvar ChefCommand = require('chef-command');
var chefCmd = new ChefCommand();
chefCmd.addCookbookPath('/tmp/cookbooks'); // add a cookbook
chefCmd.generate();
generate() : return hash containing
dna_json: string containing the dna.json to use
config_rb: string containing the config.rb
command: string containing the actual CLI invocation
FAQs
constructs the correct chef-client/chef-solo command and json file
We found that chef-command demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.