mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 17:59:31 +00:00
DO NOT MERGE: policy debugging
This commit is contained in:
parent
66c7f74683
commit
b5cfd2afb1
@ -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;
|
||||
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user