2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubesec";
|
2021-09-23 15:35:13 +00:00
|
|
|
version = "2.11.4";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "controlplaneio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-23 15:35:13 +00:00
|
|
|
sha256 = "sha256-z1v+xm0ZWs8F5KtltBSDx9W+xNqRsfvAgQUKgrZa+28=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
vendorSha256 = "sha256-t2GZaLa/Pc/TCjqTNGuLnOFSepExmE2xA8pc9HkUtcs=";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# Tests wants to download the kubernetes schema for use with kubeval
|
2021-05-03 20:48:10 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Security risk analysis tool for Kubernetes resources";
|
|
|
|
homepage = "https://github.com/controlplaneio/kubesec";
|
2021-06-28 23:13:55 +00:00
|
|
|
changelog = "https://github.com/controlplaneio/kubesec/blob/v${version}/CHANGELOG.md";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|