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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
use SHA256 for ETags
ulferts9260ae5980ab
diff --git a/config/application.rb b/config/application.rbindex 96a9d57ae79..a3cf929b294 100644--- a/config/application.rb+++ b/config/application.rb@@ -209,7 +209,7 @@ module OpenProjectRails.application.config.active_support.use_authenticated_message_encryption = true# Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.- Rails.application.config.active_support.hash_digest_class = ::Digest::SHA1+ Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256# This option is not backwards compatible with earlier Rails versions.# It's best enabled when your entire app is migrated and stable on 6.0.diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rbindex 35cbed42488..bd28843b4e7 100644--- a/config/initializers/new_framework_defaults_7_0.rb+++ b/config/initializers/new_framework_defaults_7_0.rb@@ -32,15 +32,6 @@# Rails 7.0+ default is OpenSSL::Digest::SHA256.# Rails.application.config.active_support.key_generator_hash_digest_class = OpenSSL::Digest::SHA256-# https://guides.rubyonrails.org/configuring.html#config-active-support-hash-digest-class-# Change the digest class for ActiveSupport::Digest.-# Changing this default means that for example Etags change and-# various cache keys leading to cache invalidation.-# Rails 5.1 and before used OpenSSL::Digest::MD5.-# Rails 5.2 to 6.1 default is OpenSSL::Digest::SHA1.-# Rails 7.0+ default is OpenSSL::Digest::SHA256.-# Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256-# https://guides.rubyonrails.org/configuring.html#config-active-support-remove-deprecated-time-with-zone-name# Don't override ActiveSupport::TimeWithZone.name and use the default Ruby# implementation.