From 75a74cb870b37d7351e2873b0c7272de53cb2426 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 May 2023 15:27:06 +0200 Subject: [PATCH] kubestroyer: init at 0.2 --- pkgs/tools/security/kubestroyer/default.nix | 31 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/security/kubestroyer/default.nix diff --git a/pkgs/tools/security/kubestroyer/default.nix b/pkgs/tools/security/kubestroyer/default.nix new file mode 100644 index 000000000000..bbe0d9cad7a3 --- /dev/null +++ b/pkgs/tools/security/kubestroyer/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "kubestroyer"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "Rolix44"; + repo = "Kubestroyer"; + rev = "refs/tags/v${version}"; + hash = "sha256-M/abb2IT0mXwj8lAitr18VtIgC4NvapPywBwcUWr9i8="; + }; + + vendorHash = "sha256-x0lIi4QUuYn0kv0HV4h8k61kRu10LCyELudisqUdTAg="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Kubernetes exploitation tool"; + homepage = "https://github.com/Rolix44/Kubestroyer"; + changelog = "https://github.com/Rolix44/Kubestroyer/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b03392cf33e..c0601c555e84 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31817,6 +31817,8 @@ with pkgs; kubeseal = callPackage ../applications/networking/cluster/kubeseal { }; + kubestroyer = callPackage ../tools/security/kubestroyer { }; + kubernix = callPackage ../applications/networking/cluster/kubernix { }; kubeconform = callPackage ../applications/networking/cluster/kubeconform { };