debian-mirror-gitlab/lib/tasks/gitlab/doctor/secrets.rake

15 lines
409 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2020-06-23 00:09:42 +05:30
namespace :gitlab do
namespace :doctor do
desc "GitLab | Check if the database encrypted values can be decrypted using current secrets"
task secrets: :gitlab_environment do
2021-09-04 01:27:46 +05:30
logger = Logger.new($stdout)
2020-06-23 00:09:42 +05:30
logger.level = Gitlab::Utils.to_boolean(ENV['VERBOSE']) ? Logger::DEBUG : Logger::INFO
Gitlab::Doctor::Secrets.new(logger).run!
end
end
end