about summary refs log tree commit diff
path: root/pkgs/tools/security/kubesec
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-26 12:20:51 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-26 12:20:51 +0200
commit38568801d39cb2382b07a49434f2cc6b78624654 (patch)
tree78497537625e9c746e6cc3b6847798d86495dc3e /pkgs/tools/security/kubesec
parent441f8ef8e4fc5542ad2a6d90d1dbadc0797b2341 (diff)
kubesec: init at 2.11.0
Diffstat (limited to 'pkgs/tools/security/kubesec')
-rw-r--r--pkgs/tools/security/kubesec/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/kubesec/default.nix b/pkgs/tools/security/kubesec/default.nix
new file mode 100644
index 0000000000000..3059ba9af9f5f
--- /dev/null
+++ b/pkgs/tools/security/kubesec/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "kubesec";
+  version = "2.11.0";
+
+  src = fetchFromGitHub {
+    owner = "controlplaneio";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0rv5qywh8107rqdly1x7wkb6dljalyn9abrkm12bxa7cqscp9b4z";
+  };
+
+  vendorSha256 = "0xngnx67giwp0g7c19xhb6kmc9m3bjlwk2wwp9bn9vwkmss3ysyp";
+
+  # Tests wants to download additional files
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Security risk analysis tool for Kubernetes resources";
+    homepage = "https://github.com/controlplaneio/kubesec";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}