Skip to content

Commit

Permalink
oauth2_proxy: add patch for CVE-2021-21291
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Apr 19, 2021
1 parent 7c23e16 commit d266f7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/servers/oauth2_proxy/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:

buildGoModule rec {
pname = "oauth2-proxy";
Expand All @@ -11,6 +11,14 @@ buildGoModule rec {
rev = "v${version}";
};

patches = [
(fetchpatch {
name = "CVE-2021-21291.patch";
url = "https://github.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725.patch";
sha256 = "066cr6ml69pinw3j9rspjy2h3dvqmf4bvmdxvalb1ws3z0xkn4ag";
})
];

vendorSha256 = "1hrk3h729kcc77fq44kiywmyzk5a78v7bm5d2yl76lfxxdcdric7";

# Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
Expand Down

0 comments on commit d266f7e

Please sign in to comment.