Do not print secrets in the config:check rake task.
[arvados.git] / services / api / lib / tasks / config_check.rake
1 namespace :config do
2   desc 'Ensure site configuration has all required settings'
3   task check: :environment do
4     $application_config.sort.each do |k, v|
5       if /(password|secret)/.match(k) then
6         $stderr.puts "%-32s %s" % [k, '*********']
7       else
8         $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
9       end
10     end
11   end
12 end