Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 9 additions & 3 deletions .github/workflows/slsa-provenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ concurrency:
group: slsa-${{ github.ref }}
cancel-in-progress: true

# GHCR/Docker exigen repositorios en lowercase; github.repository contiene
# mayúsculas (SabaTech-dev/Alfred-Mission-Control) y buildx rechaza el tag.
# Nombre canónico fijo del artefacto — usar SIEMPRE env.IMAGE_NAME.
env:
IMAGE_NAME: ghcr.io/sabatech-dev/alfred-mission-control

jobs:
provenance:
name: Build & Attest
Expand All @@ -48,14 +54,14 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
provenance: true
sbom: true

- name: Generate build provenance attestation
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c
with:
subject-name: ghcr.io/${{ github.repository }}
subject-name: ${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true

Expand All @@ -73,5 +79,5 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Verification command:**" >> $GITHUB_STEP_SUMMARY
echo '```bash' >> $GITHUB_STEP_SUMMARY
echo "docker buildx imagetools inspect ghcr.io/${{ github.repository }}:sha-${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo "docker buildx imagetools inspect ${{ env.IMAGE_NAME }}:${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion src/app/(dashboard)/admin/system-health/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const serviceCategories: Record<string, CategoryName> = {
"alfred-mc": "core",
"openclaw-gateway": "core",
"postgresql": "core",
"ollama": "llm",
"llama.cpp-rerank": "llm",
"llama.cpp-gpu": "llm",
"llama.cpp-embed": "llm",
"coolify": "dev",
Expand Down
4 changes: 3 additions & 1 deletion src/app/api/system/monitor/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const PROBE_TIMEOUT_MS = 5000;
const SYSTEM_SERVICES = [
"alfred-mission-control",
"docker",
"ollama",
"llama-main",
"llama-embeddings",
"llama-rerank",
"tailscaled",
"fail2ban",
"redis-server",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stack-health.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
const mockChecks = {
gateway: { name: "openclaw-gateway", status: "up" as const, details: "OK" },
postgresql: { name: "postgresql", status: "up" as const, details: "OK" },
ollama: { name: "ollama", status: "up" as const, details: "OK" },
llamaRerank: { name: "llama.cpp-rerank", status: "up" as const, details: "OK" },
coolify: { name: "coolify", status: "up" as const, details: "OK" },
browserless: { name: "browserless", status: "up" as const, details: "OK" },
langfuse: { name: "langfuse", status: "up" as const, details: "OK" },
Expand Down
8 changes: 5 additions & 3 deletions src/lib/stack-health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,17 @@ async function checkHttpService(name: string, url: string, port: number): Promis
export async function collectStackServiceChecks(): Promise<StackServiceCheck[]> {
const dockerContainers = parseDockerContainers();

const [gateway, postgresql, ollama, coolify, browserless, langfuse, qmd, llamaGpu, llamaEmbed, searxng, engram, prAgent] = await Promise.all([
const [gateway, postgresql, llamaRerank, coolify, browserless, langfuse, qmd, llamaGpu, llamaEmbed, llamaEmbedMem, searxng, engram, prAgent] = await Promise.all([
checkGatewayService(),
checkPostgresService(dockerContainers),
checkTcpService("ollama", 11434),
checkTcpService("llama.cpp-rerank", 8005),
checkTcpService("coolify", 8000),
checkHttpService("browserless", "http://127.0.0.1:3002/pressure", 3002),
checkHttpService("langfuse", "http://127.0.0.1:3001", 3001),
checkTcpService("qmd-mcp", 8181),
checkTcpService("llama.cpp-gpu", 8001),
checkTcpService("llama.cpp-embed", 8002),
checkTcpService("llama.cpp-embed-memory", 8006),
checkHttpService("searxng", "http://127.0.0.1:8081", 8081),
checkTcpService("engram", 7437),
checkTcpService("pr-agent", 3003),
Expand All @@ -255,13 +256,14 @@ export async function collectStackServiceChecks(): Promise<StackServiceCheck[]>
{ name: "alfred-mc", status: "up", details: "API route responding" },
gateway,
postgresql,
ollama,
llamaRerank,
coolify,
browserless,
langfuse,
qmd,
llamaGpu,
llamaEmbed,
llamaEmbedMem,
searxng,
engram,
prAgent,
Expand Down
Loading