From 7fc822896c660a7286eb4994da0fd347d629e5f3 Mon Sep 17 00:00:00 2001 From: Matthew Arnold Date: Mon, 25 Sep 2023 14:20:38 +0100 Subject: [PATCH] policy: fix setting the policy path from agent config Fix setting the image service policy path when there is a policy path in the agent config. Fixes #8049 Signed-off-by: Matthew Arnold --- src/agent/src/image_rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/image_rpc.rs b/src/agent/src/image_rpc.rs index 94d45cb2fd..a3d7664874 100644 --- a/src/agent/src/image_rpc.rs +++ b/src/agent/src/image_rpc.rs @@ -53,7 +53,7 @@ impl ImageService { let mut image_client = ImageClient::default(); if !AGENT_CONFIG.image_policy_file.is_empty() { - image_client.config.file_paths.sigstore_config = AGENT_CONFIG.image_policy_file.clone(); + image_client.config.file_paths.policy_path = AGENT_CONFIG.image_policy_file.clone(); } if !AGENT_CONFIG.simple_signing_sigstore_config.is_empty() { image_client.config.file_paths.sigstore_config =