# File lib/chef/encrypted_data_bag_item.rb, line 104
  def self.load_secret(path=nil)
    path = path || Chef::Config[:encrypted_data_bag_secret] || DEFAULT_SECRET_FILE
    if !File.exists?(path)
      raise Errno::ENOENT, "file not found '#{path}'"
    end
    secret = IO.read(path).strip
    if secret.size < 1
      raise ArgumentError, "invalid zero length secret in '#{path}'"
    end
    secret
  end