DO NOT MERGE: policy debugging

This commit is contained in:
stevenhorsman 2025-08-18 16:53:55 +01:00
parent 6514e161a9
commit dd180a7465
2 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ impl AgentPolicy {
/// Ask regorus if an API call should be allowed or not.
pub async fn allow_request(&mut self, ep: &str, ep_input: &str) -> Result<(bool, String)> {
info!(sl!(), "policy check: {ep}, request: {ep_input}");
debug!(sl!(), "policy check: {ep}");
self.log_eval_input(ep, ep_input).await;

View File

@ -93,7 +93,7 @@ mod tests {
};
let config = genpolicy::utils::Config {
base64_out: false,
base64_out: true,
config_files,
containerd_socket_path: None, // Some(String::from("/var/run/containerd/containerd.sock")),
insecure_registries: Vec::new(),