[ARVADOS] updated: 1d3810b3150d653314437471d7858cdbf76b62c7
git at public.curoverse.com
git at public.curoverse.com
Mon Mar 24 15:55:45 EDT 2014
Summary of changes:
apps/workbench/lib/tasks/config_check.rake | 6 +++++-
services/api/lib/tasks/config_check.rake | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
via 1d3810b3150d653314437471d7858cdbf76b62c7 (commit)
from 8dd84d8f667aa40b9c8ce91d1a9248e1a7218039 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 1d3810b3150d653314437471d7858cdbf76b62c7
Author: Ward Vandewege <ward at curoverse.com>
Date: Mon Mar 24 15:55:29 2014 -0400
Do not print secrets in the config:check rake task.
diff --git a/apps/workbench/lib/tasks/config_check.rake b/apps/workbench/lib/tasks/config_check.rake
index c9f12fc..b74e03d 100644
--- a/apps/workbench/lib/tasks/config_check.rake
+++ b/apps/workbench/lib/tasks/config_check.rake
@@ -2,7 +2,11 @@ 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 /(password|secret)/.match(k) then
+ $stderr.puts "%-32s %s" % [k, '*********']
+ else
+ $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
+ end
end
end
end
diff --git a/services/api/lib/tasks/config_check.rake b/services/api/lib/tasks/config_check.rake
index c9f12fc..b74e03d 100644
--- a/services/api/lib/tasks/config_check.rake
+++ b/services/api/lib/tasks/config_check.rake
@@ -2,7 +2,11 @@ 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 /(password|secret)/.match(k) then
+ $stderr.puts "%-32s %s" % [k, '*********']
+ else
+ $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
+ end
end
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list