Skip to content

Architecture fileTOPOLOGY.SYS

System architecture

Exploration of technical topology: from user interaction to continuous deployment pipeline.

  • 19nodes across 2 flowsUser: 10 • CI/CD: 9
  • 6pipeline stagesFrom Git tag to verified switchover
  • 6security measuresIntegrity, isolation, resilience

[01]Overview

Select a node on the interactive diagram to analyze its protocols, security boundaries, and data links.

[02]User flow

Lifecycle of a web request: from client browser through Cloudflare and Nginx down to Nuxt 4.

  1. CLIENT_RUNTIME

    1. Vue 3 client and HTML5 audio player

    The application runs in the visitor's browser: Vue 3 hydrates the page rendered by the server. The HTML5 audio player plays tracks served in byte ranges (HTTP 206). Artwork and listening links come from /api/track-metadata, which queries iTunes, Deezer and YouTube on the server.

    VUE 3 // HTML5 AUDIO // HTTP 206[ CLIENT_BOUND ]

  2. REVERSE_PROXY_CACHE

    2. Cloudflare Reverse Proxy & Edge CDN Cache

    Cloudflare sits as a reverse proxy between the visitor and the host. It receives all public traffic and serves static files from its global cache; the host only accepts connections from Cloudflare.

    ANYCAST PROXY // CDN CACHE[ PROXIED ]

  3. L3/L4/L7_FILTERING

    3. Cloudflare WAF and anti-DDoS filtering

    Cloudflare absorbs denial-of-service attacks at the edge (DDoS protection included) and applies 5 custom anti-bot WAF rules (scanners, tool user agents, non-public routes, reserved webhook) plus a rate limit on the contact form and the Overseer. Nginx then limits each IP to 10 requests per second.

    DDOS PROTECTION // CUSTOM WAF RULES[ PROTECTED ]

  4. FULL_STRICT_TLS

    4. SSL/TLS Termination & Edge CDN

    The TLS handshake completes on the point of presence closest to the visitor (TLS 1.2 minimum, HSTS). Static files, icons and local fonts are served from this cache; Cloudflare then reaches the host in Full (strict) SSL mode. Measured latency: about 25 ms.

    EDGE CACHE // FULL STRICT // AOP[ ENCRYPTED ]

  5. PORT_443_ONLY

    5. Host Nginx Gateway & Origin Isolation

    On the Linux host, Nginx listens on port 443 only (TLS 1.2 and 1.3, HSTS) and accepts only Cloudflare thanks to Authenticated Origin Pulls. It restores the visitor's real IP (CF-Connecting-IP), limits each IP to 10 requests per second and spreads requests between 127.0.0.1:3001 and 127.0.0.1:3002.

    PORT 443 -> LOCAL 3001/3002 // LINUX SERVER[ ISOLATED ]

  6. SSR_&_APIS

    6. Nuxt 4 Nitro SSR Engine & Secure Relays

    The Nitro engine renders HTML on the server and runs the API routes. Sensitive operations (Breach Protocol anti-spam challenge, DNS MX check of e-mail addresses, NVIDIA NIM inference, Telegram messages) run on the server: API keys stay in its configuration and are never sent to the browser.

    NVIDIA NIM // TELEGRAM API // SWR[ OPERATIONAL ]

[03]CI/CD pipeline

Pipeline started by a version tag: quality gate, cosign-signed image, HMAC-signed webhook and blue/green switchover.

  1. SEMVER_TAG

    1. Version tag

    A v*.*.* version tag pushed to GitHub triggers the production deployment.

    GIT OVER SSH // TAG v*.*.*

    Read the detail

    The developer pushes a v*.*.* version tag to GitHub over SSH. Every push already runs the CI on main, develop and feature branches; the production deployment only starts from the tag.

  2. QUALITY_GATE

    2. Quality gate and Docker image

    The full CI must pass, then GitHub Actions builds a multi-stage Alpine image for amd64 and arm64.

    NODE 24 ALPINE // AMD64 + ARM64

    Read the detail

    Before any publication, the workflow requires the full CI: ESLint, npm audit (production dependencies, high level), typecheck, Vitest, Nuxt build, Playwright E2E tests (Firefox) and a Trivy scan of the image (CRITICAL and HIGH). If it fails, no image is published. Otherwise Buildx builds the multi-stage Alpine image without npm.

  3. SIGNED_BY_DIGEST

    3. Publish to GHCR and sign

    The image is published to GHCR (version, latest, short sha) then signed with cosign, by digest.

    ghcr.io/ardou0/website:X.Y.Z // COSIGN

    Read the detail

    Once the gate has passed, the image is pushed to GitHub Container Registry with the workflow GITHUB_TOKEN, under three tags: the version (for example 1.4.0), latest and sha- followed by the short commit. It is then signed with cosign in keyless mode (GitHub Actions OIDC identity, no stored key), by digest.

  4. CONSTANT_TIME_CHECK

    4. Signed webhook

    The server checks the HMAC-SHA256 signature, the timestamp and the digest of the webhook, the signature in constant time.

    HMAC-SHA256 // crypto.timingSafeEqual // 5 MIN WINDOW

    Read the detail

    GitHub Actions sends a POST to /api/deploy-webhook, HMAC-SHA256 signed with a shared secret (X-Hub-Signature-256 header); the body carries the tag, the image digest and a timestamp. The server compares the signature with crypto.timingSafeEqual, rejects a timestamp more than 5 minutes from its own clock or a signature it has already received (anti-replay) and requires a valid digest. The HMAC authenticates the request without encrypting it; transport is HTTPS.

  5. FILE_SIGNAL

    5. Drop a flag file

    The web container, with no Docker access, only drops a pending.flag file.

    /deploy-flags/pending.flag // NON-ROOT

    Read the detail

    The web container runs without root and without the Docker socket, and executes no command. Once the request is verified, it writes a JSON pending.flag file (tag and digest) to a shared volume and sends "DEPLOYMENT TRIGGERED" to Telegram: a web request can ask for a deployment, not run a command on the host.

  6. BLUE_GREEN

    6. Blue/green deployment and rollback

    The deployer verifies the signature, starts the free colour, waits for healthy, then switches; on failure, the old version never stopped serving.

    SOCKET PROXY // COSIGN // HEALTHY

    Read the detail

    The website_deployer container reads the signal file every 5 s, verifies the cosign signature of the digest, pulls the image by digest and starts the free colour (app-blue on 3001, app-green on 3002). It waits for the Docker state healthy (90 s at most), keeps both colours together for 10 s, then stops the old one. On failure, the new colour is removed: the old one never stopped serving.

[04]Security

Defensive measures applied to the containers, the deployment and the monitoring, each with the threat it addresses.

Security measures matrix
Threat addressedMeasureProof or state
Threat addressedTampering with the container after an intrusionMeasureRead-only non-root containerThe application runs as the node user, with no Linux capability (cap_drop ALL, no-new-privileges) and a read-only file system: it only writes to its volumes and to /tmp (tmpfs).Proof or stateNODE:NODE // CAP_DROP ALL // RO FSENFORCED
Threat addressedRemote code execution (RCE) from the webMeasureIsolated IPC barrier and Docker socket proxyThe web container has no Docker access: the update goes through a signal file in a shared volume. The deployer reaches Docker only through a socket proxy (EXEC, BUILD, COMMIT and SYSTEM disabled).Proof or stateFILE SIGNAL // DOCKER SOCKET PROXYISOLATED
Threat addressedTiming attack or replay of the deployment signaturesMeasureConstant-Time Signature Check & Anti-ReplayDeployment HMAC signatures are compared in constant time, and a request whose timestamp is more than 5 minutes from the server clock is refused, as is a signature already accepted within that window. Every failure is written to the security log.Proof or stateCRYPTO.TIMINGSAFEEQUAL // SHA256SECURED
Threat addressedA faulty version put online by a deploymentMeasureHealth Probe & Real RollbackThe new version is kept only if Docker reports it healthy; otherwise it is removed and the old one, which never stopped serving, stays online. The cosign signature is verified before any download.Proof or stateHEALTHY ONLY // BLUE/GREENACTIVE
Threat addressedAn incident going unnoticed: failed deployment, AI API down, tampered or untimestamped logMeasureTelemetry & Alert RelaysTelegram receives contact messages, deployment steps and outcomes, HTTP errors from the NVIDIA API and alerts from the log chain (violation, late timestamps, clock mismatch, lock takeover). Host health is not measured.Proof or stateTELEGRAM BOT // DEPLOY + LOG ALERTSMONITORED
Threat addressedKnown vulnerabilities (CVE) in the images and dependenciesMeasureCVE Detection & Proposed UpdatesDependencies and image are checked on every push: npm audit, Trivy scan (CRITICAL and HIGH) and Semgrep (also every Sunday). Dependabot proposes npm, Docker and GitHub Actions updates every Monday, going through the same quality gate.Proof or stateAUDIT // TRIVY // SEMGREP // DEPENDABOTSCANNED

Let's talk

A question about this work, or want to see more? Write to me.

Contact me

Contents