Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

By default, do not log arguments to background jobs

Oliver Günther0740070bca26
diff --git a/app/workers/application_job.rb b/app/workers/application_job.rb
index 0d135a53ae7..fe5dd9f09f6 100644
--- a/app/workers/application_job.rb
+++ b/app/workers/application_job.rb
@@ -31,6 +31,11 @@ require 'active_job'
class ApplicationJob < ::ActiveJob::Base
include ::JobStatus::ApplicationJobWithStatus
+ ##
+ # By default, do not log the arguments of a background job
+ # to avoid leaking sensitive information to logs
+ self.log_arguments = false
+
around_perform do |_job, block|
reload_mailer_configuration!
with_clean_request_store { block.call }