IMVEEDev Portal

Diagramm-Vergleich

Vergleich verschiedener Diagramm-Methoden: Mermaid (inline, interaktiv) vs. Python diagrams-Library (generierte PNGs).

:::info [Zwei Darstellungsarten] Mermaid wird direkt im Markdown gerendert und ist interaktiv. Die diagrams-Library (Python) erzeugt statische PNGs mit professionellem Layout. :::

Mermaid: SOCSuite Architecture

graph TB
    subgraph external["Extern"]
        browser["🌐 Browser"]
        satellite["📡 Satellite Agents"]
        keycloak["🔐 Keycloak<br/>auth.dev.imvee.de"]
    end

    subgraph k8s["Kubernetes Cluster"]
        traefik["⚡ Traefik 3.6.8<br/>Gateway API v1.4.0"]
        
        subgraph mono["SOCSuite Monorepo"]
            web["⚛️ apps/web<br/>React 18 + Vite 7<br/>:3000"]
            api["🔷 apps/api<br/>Go + Fiber v2<br/>:8080"]
            docs["📖 apps/docs<br/>MkDocs Material<br/>:8093"]
        end

        subgraph data["Datenschicht"]
            pg["🐘 PostgreSQL<br/>:5432"]
            redis["⚡ Redis<br/>:6379"]
            opensearch["🔍 OpenSearch<br/>:9200"]
        end
    end

    browser -->|HTTPS| traefik
    traefik --> web
    traefik --> api
    traefik --> docs
    web -->|REST| api
    api --> pg
    api --> redis
    api --> opensearch
    api -.->|OIDC| keycloak
    satellite -->|"Events (WSS)"| opensearch

    style external fill:#0f1923,stroke:#243750,color:#e5e7eb
    style k8s fill:#0c1929,stroke:#243750,color:#e5e7eb
    style mono fill:#162335,stroke:#0ea5e9,color:#e5e7eb
    style data fill:#162335,stroke:#f97316,color:#e5e7eb
    style browser fill:#1c2d42,stroke:#38bdf8,color:#e5e7eb
    style satellite fill:#1c2d42,stroke:#f97316,color:#e5e7eb
    style keycloak fill:#1c2d42,stroke:#f97316,color:#e5e7eb
    style traefik fill:#243750,stroke:#0ea5e9,color:#e5e7eb
    style web fill:#243750,stroke:#38bdf8,color:#e5e7eb
    style api fill:#243750,stroke:#38bdf8,color:#e5e7eb
    style docs fill:#243750,stroke:#38bdf8,color:#e5e7eb
    style pg fill:#243750,stroke:#f97316,color:#e5e7eb
    style redis fill:#243750,stroke:#f97316,color:#e5e7eb
    style opensearch fill:#243750,stroke:#f97316,color:#e5e7eb

Mermaid: Alert & Response Dataflow

graph TB
    satellite["📡 Satellite Agents<br/>+ k8s-collector"]
    
    subgraph detection["Detection Pipeline"]
        opensearch["🔍 OpenSearch<br/>Live-Regelauswertung"]
        alert["🚨 Alert Engine"]
        cases["📋 Case-Aggregation<br/>MITRE ATT&CK"]
    end

    subgraph response["Response"]
        playbook["⚙️ Playbook<br/>~90% automatisch"]
        analyst["👤 Analyst<br/>~10% manuell"]
    end

    satellite -->|Events| opensearch
    opensearch -->|Treffer| alert
    alert -->|Korrelation| cases
    cases -->|Automatisch| playbook
    cases -->|Eskalation| analyst

    style detection fill:#0c1929,stroke:#0ea5e9,color:#e5e7eb
    style response fill:#0c1929,stroke:#f97316,color:#e5e7eb
    style satellite fill:#1c2d42,stroke:#38bdf8,color:#e5e7eb
    style opensearch fill:#243750,stroke:#0ea5e9,color:#e5e7eb
    style alert fill:#243750,stroke:#ef4444,color:#e5e7eb
    style cases fill:#243750,stroke:#f97316,color:#e5e7eb
    style playbook fill:#243750,stroke:#22c55e,color:#e5e7eb
    style analyst fill:#243750,stroke:#f97316,color:#e5e7eb

Mermaid: Satellite Agent

graph LR
    subgraph endpoint["Managed Endpoint"]
        subgraph agent["Satellite Agent (Go)"]
            collectors["📊 Collectors<br/>CPU, RAM, Disk<br/>Docker, K8s<br/>Vuln, Inventory"]
            queue["💾 queue.jsonl<br/>/var/lib/imvee-satellite/"]
            breaker["🔌 Circuit Breaker<br/>sony/gobreaker"]
        end
    end

    subgraph platform["SOCSuite Platform"]
        api_reg["🔷 API<br/>/api/v1/ingest/register"]
        opensearch["🔍 OpenSearch<br/>:9200"]
        ws["🔗 WebSocket<br/>socsuite.dev.imvee.de"]
    end

    collectors -->|"ECS Events"| queue
    queue -->|"Batch 5s / 100 max"| breaker
    breaker -->|"Push Events"| opensearch
    collectors -.->|"WSS Missions/Status"| ws
    collectors -.->|"Register POST"| api_reg

    style endpoint fill:#0f1923,stroke:#243750,color:#e5e7eb
    style agent fill:#162335,stroke:#0ea5e9,color:#e5e7eb
    style platform fill:#0c1929,stroke:#f97316,color:#e5e7eb
    style collectors fill:#243750,stroke:#38bdf8,color:#e5e7eb
    style queue fill:#243750,stroke:#f97316,color:#e5e7eb
    style breaker fill:#243750,stroke:#f97316,color:#e5e7eb
    style api_reg fill:#243750,stroke:#38bdf8,color:#e5e7eb
    style opensearch fill:#243750,stroke:#0ea5e9,color:#e5e7eb
    style ws fill:#243750,stroke:#38bdf8,color:#e5e7eb

Zum Vergleich: diagrams-Library (Python)

Diese Diagramme wurden mit der Python diagrams-Library generiert und als SVG eingebettet. Sie werden durch die Mermaid-Versionen oben ersetzt.

Auf dieser Seite