X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0b9dce85589ac5f259c8bf6cc30b23d5f99e2b97..aee63d7cbb2f8e39b417baebc145889d6290315e:/apps/workbench/lib/tasks/config_check.rake diff --git a/apps/workbench/lib/tasks/config_check.rake b/apps/workbench/lib/tasks/config_check.rake index c9f12fc1a9..ec1ae7bdc4 100644 --- a/apps/workbench/lib/tasks/config_check.rake +++ b/apps/workbench/lib/tasks/config_check.rake @@ -2,7 +2,18 @@ namespace :config do desc 'Ensure site configuration has all required settings' task check: :environment do $application_config.sort.each do |k, v| - $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")] + if ENV.has_key?('QUIET') then + # Make sure we still check for the variable to exist + eval("Rails.configuration.#{k}") + else + if /(password|secret)/.match(k) then + # Make sure we still check for the variable to exist, but don't print the value + eval("Rails.configuration.#{k}") + $stderr.puts "%-32s %s" % [k, '*********'] + else + $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")] + end + end end end end