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

Fix/avoid sending OIDC data to appsignal (#18032)

Jens Ulfertsd9664de39977
diff --git a/config/initializers/appsignal.rb b/config/initializers/appsignal.rb
index 7a7c9fee84e..558113cff23 100644
--- a/config/initializers/appsignal.rb
+++ b/config/initializers/appsignal.rb
@@ -9,20 +9,25 @@ if OpenProject::Appsignal.enabled?
name: ENV.fetch("APPSIGNAL_NAME"),
push_api_key: ENV.fetch("APPSIGNAL_KEY"),
revision: OpenProject::VERSION.to_s,
- ignore_actions: [
- "OkComputer::OkComputerController#show",
- "OkComputer::OkComputerController#index",
- "GET::API::V3::Notifications::NotificationsAPI",
- "GET::API::V3::Notifications::NotificationsAPI#/notifications/"
+ ignore_actions: %w[
+ OkComputer::OkComputerController#show
+ OkComputer::OkComputerController#index
+ GET::API::V3::Notifications::NotificationsAPI
+ GET::API::V3::Notifications::NotificationsAPI#/notifications/
],
- ignore_errors: [
- "Grape::Exceptions::MethodNotAllowed",
- "ActionController::UnknownFormat",
- "ActiveJob::DeserializationError",
- "Net::SMTPServerBusy"
+ ignore_errors: %w[
+ Grape::Exceptions::MethodNotAllowed
+ ActionController::UnknownFormat
+ ActiveJob::DeserializationError
+ Net::SMTPServerBusy
],
ignore_logs: [
"GET /health_check"
+ ],
+ filter_session_data: %w[
+ _csrf_token
+ omniauth.oidc_access_token
+ omniauth.oidc_sid
]
}