Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crates/secure-container-runtime/src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,12 @@ impl ContainerBroker {
use bollard::image::BuildImageOptions;

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