From cb502f9b100ea3cb4f9439f0531fc5a58ad1627c Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:46:23 +0200 Subject: [PATCH 01/10] discourse: 2.7.7 -> 2.7.8 (cherry picked from commit 73e8eb91c122699e5ede88980f7c7ef727b29896) --- pkgs/servers/web-apps/discourse/default.nix | 4 ++-- pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/default.nix b/pkgs/servers/web-apps/discourse/default.nix index 59e3d4b18e9..17f79f75054 100644 --- a/pkgs/servers/web-apps/discourse/default.nix +++ b/pkgs/servers/web-apps/discourse/default.nix @@ -9,13 +9,13 @@ }@args: let - version = "2.7.7"; + version = "2.7.8"; src = fetchFromGitHub { owner = "discourse"; repo = "discourse"; rev = "v${version}"; - sha256 = "sha256-rhcTQyirgPX0ITjgotJAYLLSU957GanxAYYhy9j123U="; + sha256 = "sha256-p4eViEvzIU6W89FZRtMBXsT7bvf2H12bTPZ/h3iD8rA="; }; runtimeDeps = [ diff --git a/pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock b/pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock index 1f7a3641caa..f7fca7dae77 100644 --- a/pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock +++ b/pkgs/servers/web-apps/discourse/rubyEnv/Gemfile.lock @@ -590,4 +590,4 @@ DEPENDENCIES yaml-lint BUNDLED WITH - 2.2.20 + 2.2.24 From 1d1a2bbf2b0096488d93701d57e2c03f9b7410c2 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:47:43 +0200 Subject: [PATCH 02/10] discourse.plugins.discourse-calendar: Update (cherry picked from commit d62ea8705b22c8163fcbc6dcb7c70a42e7e745fe) --- .../discourse/plugins/discourse-calendar/Gemfile.lock | 4 ++-- .../web-apps/discourse/plugins/discourse-calendar/default.nix | 4 ++-- .../web-apps/discourse/plugins/discourse-calendar/gemset.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/Gemfile.lock b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/Gemfile.lock index d5622c0ac37..d31b4afe519 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/Gemfile.lock +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (6.1.4) + activesupport (6.1.4.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -24,4 +24,4 @@ DEPENDENCIES rrule (= 0.4.2) BUNDLED WITH - 2.2.20 + 2.2.24 diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/default.nix index b610a5c21a1..a437f293fa6 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/default.nix @@ -6,8 +6,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-calendar"; - rev = "519cf403ae3003291de20145aca243e2ffbcb4a2"; - sha256 = "0398cf7k03i7j7v5w1mysjzk2npbkvr7icj5sjwa8i8xzg34gck4"; + rev = "2f76cdd3064735d484be1df77f43100aca21aea6"; + sha256 = "1skpc8p5br1jkii1rksha1q95ias6xxyvi5bnli3q41w7fz1h5j2"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-calendar"; diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/gemset.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/gemset.nix index 26db0e6fd10..4f1e4c100c0 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/gemset.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-calendar/gemset.nix @@ -5,10 +5,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0kqgywy4cj3h5142dh7pl0xx5nybp25jn0ykk0znziivzks68xdk"; + sha256 = "19gx1jcq46x9d1pi1w8xq0bgvvfw239y4lalr8asm291gj3q3ds4"; type = "gem"; }; - version = "6.1.4"; + version = "6.1.4.1"; }; concurrent-ruby = { groups = ["default"]; From 394d86a424a15f155ae3aa72cc10c93373cdf3e2 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:49:48 +0200 Subject: [PATCH 03/10] discourse.plugins.discourse-canned-replies: Update (cherry picked from commit 1e62b64b9036a3e9332b60c838f658ee35fa0a5a) --- .../discourse/plugins/discourse-canned-replies/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-canned-replies/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-canned-replies/default.nix index f90fabc0574..7ec87636d1c 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-canned-replies/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-canned-replies/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-canned-replies"; - rev = "672a96a8160d3767cf5fd6647309c7b5dcf8a55d"; - sha256 = "105zgpc7j3xmlkaz3cgxw1rfgy5d3dzln58ix569jmzifbsijml7"; + rev = "1bb77ebbe0577f257bc16783dc8b7bbf2d915092"; + sha256 = "0qvx8k9jsxjllqsqpf4k0j4niv1k2sggy6ak067wigs8ha3dkcr0"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-canned-replies"; From 125bceeb25d21e52a5fe13c16ffc8f83a8187b66 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:50:11 +0200 Subject: [PATCH 04/10] discourse.plugins.discourse-checklist: Update (cherry picked from commit d583001723e9ad4588c5b54c9f27c111758fe105) --- .../discourse/plugins/discourse-checklist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nix index 89edb3f71d7..2bcf88da150 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-checklist/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-checklist"; - rev = "6e7b9c5040c55795c7fd4db9569b3e93dad092c2"; - sha256 = "sha256-2KAVBrfAvhLZC9idi+ijbVqOCq9rSXbDVEOZS+mWJ10="; + rev = "48855d81b7c3a3274f7f78a64312125c344d92d1"; + sha256 = "0139v5wpyglfzvd07ka6gic1ssfysisgfiq09dsbjy519gnc9kjw"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-checklist"; From 9c26876e2b39758e2c7318aeb15a643de94d6400 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:51:06 +0200 Subject: [PATCH 05/10] discourse.plugins.discourse-github: Update (cherry picked from commit 97034cfa1c3b455f1114fea8d302925014dd4bd8) --- .../web-apps/discourse/plugins/discourse-github/Gemfile.lock | 4 ++-- .../web-apps/discourse/plugins/discourse-github/default.nix | 4 ++-- .../web-apps/discourse/plugins/discourse-github/gemset.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-github/Gemfile.lock b/pkgs/servers/web-apps/discourse/plugins/discourse-github/Gemfile.lock index b6ebd834a53..3404b8a22a1 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-github/Gemfile.lock +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-github/Gemfile.lock @@ -3,7 +3,7 @@ GEM specs: addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) - faraday (1.7.0) + faraday (1.8.0) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -40,4 +40,4 @@ DEPENDENCIES sawyer (= 0.8.2) BUNDLED WITH - 2.2.20 + 2.2.24 diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-github/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-github/default.nix index 63488de18ff..0ea57071ebe 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-github/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-github/default.nix @@ -6,8 +6,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-github"; - rev = "b6ad8e39a13e2ad5c6943ea697ca23f2c5f9fec1"; - sha256 = "0vxwp4kbf44clcqilb8ni0ykk4jrgiv4rbd05pgfvndcp3izm2i6"; + rev = "9aaf4350968fb758f9bff3588f78e3ad24ddb4b0"; + sha256 = "0nmpkh1rr0jv68a655f5610v2mn09xriiqv049a0gklap2lgv7p8"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-github"; diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-github/gemset.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-github/gemset.nix index 90009a3beb8..5b9b4e09853 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-github/gemset.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-github/gemset.nix @@ -16,10 +16,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0r6ik2yvsbx6jj30vck32da2bbvj4m0gf4jhp09vr75i1d6jzfvb"; + sha256 = "0afhlqgby2cizcwgh7h2sq5f77q01axjbdl25bsvfwsry9n7gyyi"; type = "gem"; }; - version = "1.7.0"; + version = "1.8.0"; }; faraday-em_http = { groups = ["default"]; From cb35abb6c183dc481dfcbfc1b70db6c9c5f34c2f Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:51:29 +0200 Subject: [PATCH 06/10] discourse.plugins.discourse-math: Update (cherry picked from commit b1aa7efd36d1e8c9df8f97602038b98533f84cf9) --- .../web-apps/discourse/plugins/discourse-math/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-math/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-math/default.nix index 0e751c1dc54..812ea88d040 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-math/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-math/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-math"; - rev = "aed0c83cee568d5239143bcf1df59c5fbe86b276"; - sha256 = "1k6kpnhf8s2l0w9zr5pn3wvn8w0n3gwkv7qkv0mkhkzy246ag20z"; + rev = "d7d0180352dd5a7dcb76c0817bfbb08c2a0f08c7"; + sha256 = "0y72impvnq965ibbfc9877hr78fxkrwav1xmgyy3r9w87952vcwa"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-math"; From 61fab89e087d0a5cc327d9d2780ffee17f09c8ae Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:51:42 +0200 Subject: [PATCH 07/10] discourse.plugins.discourse-solved: Update (cherry picked from commit fd084acb95f3e80a80405924e44002e2e4f6dd0e) --- .../web-apps/discourse/plugins/discourse-solved/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-solved/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-solved/default.nix index c92c5a1016a..b66aa1a7fab 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-solved/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-solved/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-solved"; - rev = "8bf54370200fe9d94541f69339430a7dc1019d62"; - sha256 = "1sk91h4dilkxm1wpv8zw59wgw860ywwlcgiw2kd23ybdk9n7b3lh"; + rev = "55cb184f7ef2954326561cc44fc8134798b8a9e0"; + sha256 = "0pv5i216zn0v8xfwlndvhvr06vkmxaynj8xjfnc5amy1sp6k76w7"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-solved"; From df8becc53fe841743adcf079b17f1f985748af5a Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:51:57 +0200 Subject: [PATCH 08/10] discourse.plugins.discourse-spoiler-alert: Update (cherry picked from commit 957eaf8237a44f6849716739d35057b7ceaba84c) --- .../discourse/plugins/discourse-spoiler-alert/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-spoiler-alert/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-spoiler-alert/default.nix index da47dbf182c..5b745cbd603 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-spoiler-alert/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-spoiler-alert/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-spoiler-alert"; - rev = "ec14a2316da0a4fc055cfc21c68a60040188a2b4"; - sha256 = "11n977gp8va7jkqa6i3ja279k4nmkhk5l4hg9xhs229450m1rnfp"; + rev = "0b93227ea8e2c72afe72029382081ebff89c3638"; + sha256 = "0x0dxb41ss15sv5ph7z7q55ayf8a7r22bgkmr17924mny5440b5a"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-spoiler-alert"; From e93c033a3bff59e6bb2b7c794009a91eccf9d50a Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 18:52:15 +0200 Subject: [PATCH 09/10] discourse.plugins.discourse-yearly-review: Update (cherry picked from commit e4ed6b5929d56328e79ad8792568790f6c077251) --- .../discourse/plugins/discourse-yearly-review/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/discourse/plugins/discourse-yearly-review/default.nix b/pkgs/servers/web-apps/discourse/plugins/discourse-yearly-review/default.nix index b20e16118c7..ea48d9997bb 100644 --- a/pkgs/servers/web-apps/discourse/plugins/discourse-yearly-review/default.nix +++ b/pkgs/servers/web-apps/discourse/plugins/discourse-yearly-review/default.nix @@ -5,8 +5,8 @@ mkDiscoursePlugin { src = fetchFromGitHub { owner = "discourse"; repo = "discourse-yearly-review"; - rev = "95149df2282d62eebeb265b4895df15a2b259d03"; - sha256 = "02n27al8n8cxz3dx4awlnd4qhv8a0fmjac57yyblmpviapja1wj7"; + rev = "cb040562f6af3163d70e8932867b530c6640ab9a"; + sha256 = "07h6nq4bafs27ly2f5chkn5vb1wdy909qffwkgp5k1fanhbqvhvs"; }; meta = with lib; { homepage = "https://github.com/discourse/discourse-yearly-review"; From ec588badc473f33a442913d68b0d2c5387bcf6b5 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 23 Sep 2021 20:52:28 +0200 Subject: [PATCH 10/10] discourse: Enable jhead, which is no longer marked vulnerable (cherry picked from commit ed8c4e01d985d115f8821106318afc65fc7eaf5f) --- pkgs/servers/web-apps/discourse/default.nix | 9 ++++----- pkgs/servers/web-apps/discourse/disable_jhead.patch | 12 ------------ 2 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 pkgs/servers/web-apps/discourse/disable_jhead.patch diff --git a/pkgs/servers/web-apps/discourse/default.nix b/pkgs/servers/web-apps/discourse/default.nix index 17f79f75054..07bab2c9aa2 100644 --- a/pkgs/servers/web-apps/discourse/default.nix +++ b/pkgs/servers/web-apps/discourse/default.nix @@ -2,8 +2,9 @@ , fetchFromGitHub, bundlerEnv, callPackage , ruby, replace, gzip, gnutar, git, cacert, util-linux, gawk -, imagemagick, optipng, pngquant, libjpeg, jpegoptim, gifsicle, libpsl -, redis, postgresql, which, brotli, procps, rsync, nodePackages, v8 +, imagemagick, optipng, pngquant, libjpeg, jpegoptim, gifsicle, jhead +, libpsl, redis, postgresql, which, brotli, procps, rsync +, nodePackages, v8 , plugins ? [] }@args: @@ -41,6 +42,7 @@ let jpegoptim gifsicle nodePackages.svgo + jhead ]; runtimeEnv = { @@ -241,9 +243,6 @@ let # Add a noninteractive admin creation task ./admin_create.patch - # Disable jhead, which is currently marked as vulnerable - ./disable_jhead.patch - # Add the path to the CA cert bundle to make TLS work ./action_mailer_ca_cert.patch diff --git a/pkgs/servers/web-apps/discourse/disable_jhead.patch b/pkgs/servers/web-apps/discourse/disable_jhead.patch deleted file mode 100644 index a7ee56ff185..00000000000 --- a/pkgs/servers/web-apps/discourse/disable_jhead.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/lib/file_helper.rb b/lib/file_helper.rb -index d87da5a85e..f5323292d7 100644 ---- a/lib/file_helper.rb -+++ b/lib/file_helper.rb -@@ -127,6 +127,7 @@ class FileHelper - jpegrecompress: false, - # Skip looking for gifsicle, svgo binaries - gifsicle: false, -+ jhead: false, - svgo: false - ) - end