Skip to content

Commit fa0efad

Browse files
authored
fix(broker): allow term-llm-reviewer image tag in build policy (#35)
Add term-llm-reviewer: prefix to the allowed image tags list alongside term-compiler: and ghcr.io/ prefixes. This fixes the policy violation error when building LLM reviewer images for agent evaluation.
1 parent 168f138 commit fa0efad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/secure-container-runtime/src/broker.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,12 @@ impl ContainerBroker {
876876
use bollard::image::BuildImageOptions;
877877

878878
// Verify policy allows building this tag
879-
// For now, only allow term-compiler images or specific tags
879+
// Allow term-compiler, term-llm-reviewer, and ghcr.io images
880880
// This is a basic check, could be expanded in SecurityPolicy
881-
if !tag.starts_with("term-compiler:") && !tag.starts_with("ghcr.io/") {
881+
if !tag.starts_with("term-compiler:")
882+
&& !tag.starts_with("term-llm-reviewer:")
883+
&& !tag.starts_with("ghcr.io/")
884+
{
882885
let err = format!("Image tag not allowed: {}", tag);
883886
self.audit(
884887
AuditAction::ImageBuild,

0 commit comments

Comments
 (0)