Use the securitypolicy tool to generate security policies
mainThe securitypolicy tool (invoked via securitypolicytool) converts a TOML configuration file into various security policy formats, such as Base64 encoded JSON or Rego policies.
Note: This tool is primarily intended for developers working on security policy functionality within this repository. It is not intended for general end-users, though it can serve as a basis for such a tool.
Performance Warning: Running the tool can take a significant amount of time because it must download each layer for every container, convert them into an ext4 filesystem, and calculate the dm-verity root hash.
securitypolicytool -c <config.toml> -t <format> -r