Skip to content

Commit 8f93bc7

Browse files
SecAI-Hubclaude
andcommitted
Extract tool-firewall to standalone repo (SecAI-Hub/agent-tool-firewall)
Build script now clones agent-tool-firewall from GitHub (same pattern as gguf-guard) instead of building from the monorepo services/ directory. Binary still installs to the same path so systemd units are unchanged. Removed tool-firewall from CI matrix since it has its own CI now. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 93d491f commit 8f93bc7

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
contents: read
2727
strategy:
2828
matrix:
29-
service: [registry, tool-firewall, airlock]
29+
service: [registry, airlock]
3030
steps:
3131
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

files/scripts/build-services.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ dnf install -y golang python3 python3-pip cmake gcc gcc-c++ 2>/dev/null || true
1515

1616
mkdir -p "$INSTALL_DIR" "$SRC_DIR"
1717

18-
# --- Go services ---
19-
for svc in registry tool-firewall airlock; do
18+
# --- Go services (built from monorepo) ---
19+
for svc in registry airlock; do
2020
echo "Building: $svc"
2121
cp -r /tmp/services/${svc} "${SRC_DIR}/${svc}"
2222
cd "${SRC_DIR}/${svc}"
@@ -30,6 +30,20 @@ cd "${SRC_DIR}/registry"
3030
CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/local/bin/securectl ./cmd/securectl/
3131
echo " -> /usr/local/bin/securectl"
3232

33+
# --- agent-tool-firewall (standalone: policy gateway for LLM tool calls) ---
34+
echo "Building: agent-tool-firewall"
35+
if [ -d "/tmp/agent-tool-firewall" ]; then
36+
cp -r /tmp/agent-tool-firewall "${SRC_DIR}/agent-tool-firewall"
37+
else
38+
git clone --depth 1 https://github.com/SecAI-Hub/agent-tool-firewall.git "${SRC_DIR}/agent-tool-firewall" 2>/dev/null || \
39+
echo "WARNING: agent-tool-firewall clone failed — tool firewall will not be available"
40+
fi
41+
if [ -d "${SRC_DIR}/agent-tool-firewall" ]; then
42+
cd "${SRC_DIR}/agent-tool-firewall"
43+
CGO_ENABLED=0 go build -ldflags="-s -w" -o "${INSTALL_DIR}/tool-firewall" .
44+
echo " -> ${INSTALL_DIR}/tool-firewall"
45+
fi
46+
3347
# --- gguf-guard (GGUF model integrity scanner) ---
3448
echo "Building: gguf-guard"
3549
if [ -d "/tmp/gguf-guard" ]; then

0 commit comments

Comments
 (0)