Skip to content

Commit

Permalink
kata.genpolicy: replace rules with allow-all.rego
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Sep 9, 2024
1 parent c41b24f commit d740642
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/by-name/kata/genpolicy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ rustPlatform.buildRustPackage rec {
postFetch = "install -D $downloadedFile $out/genpolicy-settings.json";
};

# TODO(freax13): use real rules.
rules = fetchurl {
name = "${pname}-${version}-rules";
url = "https://raw.githubusercontent.com/kata-containers/kata-containers/${version}/src/tools/genpolicy/rules.rego";
hash = "sha256-8CcGFEeAMxTFvZmJh2v7NNIEQXg+g8cCA73/nmOhCns=";
url = "https://raw.githubusercontent.com/kata-containers/kata-containers/${version}/src/kata-opa/allow-all.rego";
hash = "sha256-ubjA2RqoNurJphlH4wUNvdOxxtkvLlsaYfWsGYb9NLA=";
downloadToTemp = true;
recursiveHash = true;
postFetch = "install -D $downloadedFile $out/genpolicy-rules.rego";
Expand Down

0 comments on commit d740642

Please sign in to comment.