Skip to content

Commit

Permalink
Merge pull request #325082 from LeSuisse/opentelemetry-collector-CVE-…
Browse files Browse the repository at this point in the history
…2024-36129

[24.05] opentelemetry-collector: apply patch for CVE-2024-36129
  • Loading branch information
risicle authored Jul 12, 2024
2 parents c171878 + 10659bf commit f12ee5f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pkgs/tools/misc/opentelemetry-collector/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
, installShellFiles
, testers
, opentelemetry-collector
Expand All @@ -17,8 +18,21 @@ buildGoModule rec {
hash = "sha256-BRZxeTFw4v4LLXPPzIzcjtR/RTckpolGGcB6jyq+ZOA=";
};
# there is a nested go.mod
sourceRoot = "${src.name}/cmd/otelcorecol";
vendorHash = "sha256-dO0j26AlpibsmbOqozz9+xMAJS/ZZHT6Z857AblYFHA=";
modRoot = "cmd/otelcorecol";
vendorHash = "sha256-Bay8D+jEj5iXedsbWQPFY+n1/li75bWGEtanllS/APQ=";

patches = [
(fetchpatch {
name = "CVE-2024-36129_1.patch";
url = "https://github.com/open-telemetry/opentelemetry-collector/commit/7dbaebb48f33cf707a069c67eed5b2b614e9913b.patch";
hash = "sha256-0rzdxwl7ieS3QU+PBlmPV82aWoUE5ulpEnqvK/h070E=";
})
(fetchpatch {
name = "CVE-2024-36129_2.patch";
url = "https://github.com/open-telemetry/opentelemetry-collector/commit/760f773df042305bd2d92e908cedc17957f6c542.patch";
hash = "sha256-xFMPwFXJyD0JiRBzoz31DElhkW0VjtQa4whuDiefOM8=";
})
];

nativeBuildInputs = [ installShellFiles ];

Expand Down

0 comments on commit f12ee5f

Please sign in to comment.