2020-10-13 14:50:55 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "starboard";
|
2021-04-14 17:43:19 +02:00
|
|
|
version = "0.10.0";
|
2020-10-13 14:50:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aquasecurity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-14 17:43:19 +02:00
|
|
|
sha256 = "sha256-hieenhe3HsMqg7dMhvOUcvVGzBedYXqJRxEUkw4DG6o=";
|
2020-10-13 14:50:55 +02:00
|
|
|
};
|
|
|
|
|
2021-04-14 17:43:19 +02:00
|
|
|
vendorSha256 = "sha256-Vj8t4v2o6x+tFLWy84W3tVaIf6WtFWXpvLQfeTbeGbM=";
|
2020-10-14 23:09:22 +02:00
|
|
|
|
|
|
|
subPackages = [ "cmd/starboard" ];
|
2020-10-13 14:50:55 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags="
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kubernetes-native security tool kit";
|
|
|
|
longDescription = ''
|
|
|
|
Starboard integrates security tools into the Kubernetes environment, so
|
|
|
|
that users can find and view the risks that relate to different resources
|
|
|
|
in a Kubernetes-native way. Starboard provides custom security resources
|
|
|
|
definitions and a Go module to work with a range of existing security
|
|
|
|
tools, as well as a kubectl-compatible command-line tool and an Octant
|
|
|
|
plug-in that make security reports available through familiar Kubernetes
|
|
|
|
tools.
|
|
|
|
'';
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jk ];
|
|
|
|
};
|
|
|
|
}
|