Home Home Il Progetto The Project Il Team The Team Strumenti di Rete Tool Kit Chiave PGP PGP Key Chi sono About Servizi Services EN
List topics: List topics:

Consulente ICT ICT Consultant

> Bridging Technology, Risk Management & Business

Il Profilo
Con oltre 25 anni di esperienza in reti, sistemi e IT risk management, mi occupo di amministrazione On-Premise e Cloud. Aiuto organizzazioni e imprese a garantire la conformità normativa (GDPR, ISO 27001, NIS 1 e 2) e offro servizi avanzati di Digital Forensics. Il mio obiettivo è consolidare il mio ruolo di esperto in Cybersecurity e Intelligenza Artificiale Generativa, operando a livello internazionale in modalità remote-first.

Esperienza sul Campo
Dal 2005 sono Programmatore Sistemista e Privacy Manager per il Consorzio per la Bonifica della Capitanata, ruolo a cui affianco una continua attività di consulenza per realtà sanitarie e studi legali (Gruppo Salatto, Studio Torlontano, ecc.). Gestisco operativamente attività di DFIR (Digital Forensics and Incident Response), Business Continuity, Disaster Recovery e mitigazione dell'impatto dei rischi IT. In passato, ho coordinato team internazionali come IT Project Manager tra Amsterdam e Tallinn.

Visione Strategica e Competenze
Comprendere l'infrastruttura richiede anche una solida visione aziendale. Per questo ho integrato il mio background tecnico (Windows/Linux Server, reti TCP/IP, Firewall) con una Laurea Magistrale in Scienze Economiche conseguita con lode. Unisco l'approccio ingegneristico alle metodologie manageriali e Agile (ITIL v.3, Scrum, Six Sigma). Attualmente sto espandendo le mie competenze attraverso i percorsi ufficiali Google come Cybersecurity Expert e Generative AI Leader.

Oltre il codice
Lavoro correntemente in inglese (certificazione C2 Cambridge) e conosco altre tre lingue. Quando non sono alle prese con server o incident response, ricarico le energie a contatto con la natura, pilotando droni (UAS Open A1/A3), dedicandomi alla fotografia o sperimentando nuove tecniche ai fornelli.

Formazione in corso

  • Professional Cloud Architect (Google Cloud)

Formazione Accademica

  • Master in Gestione delle imprese e delle società MA659 (30/30)
  • Laurea Magistrale in Scienze Economiche LM-56 (110/110 e Lode)
  • Laurea Triennale in Scienze dell'Economia e della Gestione Aziendale L-18 (94/110)

Certificazioni
Di seguito l'elenco completo delle certificazioni conseguite, dei corsi di specializzazione e dei badge ottenuti, a testimonianza del continuo aggiornamento tecnico e professionale:

  • Cybersecurity Foundations Professional Certificate (ID: 51934206)
  • Microsoft Certified: Azure Fundamentals
  • Foundations of Operationalizing MITRE ATT&CK
  • Foundations of Purple Teaming
  • Autopsy Basics and Hands On – Digital Forensics (ID: YRXYSTQBK8)
  • GrassHopper Javascript – Coding Fundamentals, Coding Fundamentals II, Array Methods, Animations
  • Project Management Essentials Certified (ID: 55005870)
  • Scrum Foundation Certificate (SFPC) (ID: 43043593)
  • Six Sigma White Belt (ID: 55005099)
  • Six Sigma Yellow Belt (ID: 729673)
  • ITIL v.3 Foundation (ID: GR750562993FR)
  • Cybersecurity Essentials – Cisco Netacad
  • Introduction to Cybersecurity – Cisco Netacad
  • Introduction to Cisco Packet Tracer – Cisco Netacad
  • Introduction to Internet of Everything – Cisco Netacad
  • Google Analytics for Beginners
  • Google Digital Training (ID: R7ZXBVRRR)
  • The EU GDPR - An Introduction (ID: UC-0HROEMGN)
  • Eipass Progressive (ID: 8B77A028CB)

The Profile
With over 25 years of experience in networks, systems, and IT risk management, I specialize in On-Premise and Cloud administration. I help organizations ensure regulatory compliance (GDPR, ISO 27001, NIS 1 and 2) and provide advanced Digital Forensics services. My current goal is to consolidate my expertise in Cybersecurity and Generative AI, collaborating internationally in a remote-first work environment.

Field Experience
Since 2005, I have served as the System Programmer and Privacy Manager for the Consorzio per la Bonifica della Capitanata, alongside continuous consulting work for healthcare facilities and law firms. I operationally manage DFIR (Digital Forensics and Incident Response), Business Continuity, Disaster Recovery, and IT risk mitigation. Previously, I coordinated international teams as an IT Project Manager between Amsterdam and Tallinn.

Strategic Vision & Skills
Understanding IT infrastructure also requires a solid business vision. That is why I integrated my technical background (Windows/Linux Servers, TCP/IP networks, Firewalls) with a Master's Degree in Economics (Summa Cum Laude). I combine an engineering approach with managerial and Agile methodologies (ITIL v.3, Scrum, Six Sigma). I am currently expanding my skill set through the official Google Cybersecurity Expert and Generative AI Leader paths.

Beyond the code
I am fluent in English (Cambridge C2 certification) and have knowledge of three other languages. When I am not dealing with servers or incident response, I recharge my energy by immersing myself in nature, flying drones (UAS Open A1/A3), practicing photography, or experimenting with new cooking techniques.

Formazione in corso

  • Professional Cloud Architect (Google Cloud)

Academic Background

  • Postgraduate Master in Corporate and Business Management (MA659)
  • Master's Degree in Economics LM-56 (Summa Cum Laude)
  • Bachelor's Degree in Economics and Business Management L-18 (94/110)

Certifications
Below is the complete list of certifications, specialization courses, and badges achieved, demonstrating a continuous commitment to technical and professional development:

  • Cybersecurity Foundations Professional Certificate (ID: 51934206)
  • Microsoft Certified: Azure Fundamentals
  • Foundations of Operationalizing MITRE ATT&CK
  • Foundations of Purple Teaming
  • Autopsy Basics and Hands On – Digital Forensics (ID: YRXYSTQBK8)
  • GrassHopper Javascript – Coding Fundamentals, Coding Fundamentals II, Array Methods, Animations
  • Project Management Essentials Certified (ID: 55005870)
  • Scrum Foundation Certificate (SFPC) (ID: 43043593)
  • Six Sigma White Belt (ID: 55005099)
  • Six Sigma Yellow Belt (ID: 729673)
  • ITIL v.3 Foundation (ID: GR750562993FR)
  • Cybersecurity Essentials – Cisco Netacad
  • Introduction to Cybersecurity – Cisco Netacad
  • Introduction to Cisco Packet Tracer – Cisco Netacad
  • Introduction to Internet of Everything – Cisco Netacad
  • Google Analytics for Beginners
  • Google Digital Training (ID: R7ZXBVRRR)
  • The EU GDPR - An Introduction (ID: UC-0HROEMGN)
  • Eipass Progressive (ID: 8B77A028CB)
> author identified
Foto Francesco Russo

The Genesis of a Newsletter Ep.4: Advanced Brevo API Error Handling on Cloudflare Workers

The Problem: Opaque Failures in Edge-to-API Gateways

Antispam
Image generated with Gemini AI


When communicating with external marketing platforms like Brevo's API v3 through a serverless micro-proxy, relying solely on a binary response.ok check produces a significant architectural blind spot. Upstream endpoints issue distinct, structured HTTP status codes: 400 Bad Request for malformed addresses, 409 Conflict for duplicate contacts, and 429 Too Many Requests when rate quotas are hit.

The Solution: Granular Status Inspection and Structured Relaying

The Cloudflare Worker must act as a resilient gateway, safely inspecting the upstream response body, identifying specific machine-readable error codes, and returning actionable feedback payloads to the client-side JavaScript layer.

Resilient Gateway Implementation

export default {
  async fetch(request, env) {
    if (request.method === "OPTIONS") {
      return new Response(null, {
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Access-Control-Allow-Methods": "POST, OPTIONS",
          "Access-Control-Allow-Headers": "Content-Type"
        }
      });
    }

    if (request.method !== "POST") {
      return new Response(JSON.stringify({ error: "Method not allowed" }), { status: 405 });
    }

    try {
      const { email, lang, redirectUrl } = await request.json();

      const templateId = lang === "en" ? 12 : 11;
      const listId = lang === "en" ? 5 : 4;

      const brevoPayload = {
        email: email,
        includeListIds: [listId],
        templateId: templateId,
        redirectionUrl: redirectUrl
      };

      const brevoResponse = await fetch("https://api.brevo.com/v3/contacts/doubleOptinConfirmation", {
        method: "POST",
        headers: {
          "api-key": env.BREVO_API_KEY,
          "Content-Type": "application/json",
          "Accept": "application/json"
        },
        body: JSON.stringify(brevoPayload)
      });

      // Safe JSON parsing with fallback
      let data = {};
      const responseText = await brevoResponse.text();
      try {
        data = JSON.parse(responseText);
      } catch (e) {
        data = { message: responseText };
      }

      if (!brevoResponse.ok) {
        return new Response(JSON.stringify({
          success: false,
          status: brevoResponse.status,
          code: data.code || "UPSTREAM_ERROR",
          message: data.message || "Upstream provider error"
        }), {
          status: brevoResponse.status,
          headers: {
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json"
          }
        });
      }

      return new Response(JSON.stringify({ success: true }), {
        status: 200,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    } catch (err) {
      return new Response(JSON.stringify({ success: false, message: err.message }), {
        status: 500,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    }
  }
};

Index: The Genesis of a Newsletter

Your Reward: Brevo API Integration & Error Toolkit

Download our production-grade integration toolkit featuring granular status code mappers, structured retry patterns, and client-side error handlers. Enter your email to receive it.

Zero spam. Pure sysadmin architecture, operational code, and engineering field logs.

La Genesi di una Newsletter Ep.4: Gestione Avanzata Errori Brevo API su Cloudflare Workers

Il Problema: La gestione opaca degli errori nelle API esterne

Antispam
Immagine realizzata con Gemini AI


Quando si inoltrano richieste verso un provider esterno come l'API v3 di Brevo (Sendinblue), limitarsi a verificare se il booleano response.ok restituisce true o false costituisce un serio debito architetturale. L'endpoint di Brevo risponde con codici di stato ben precisi: un 400 Bad Request (sintassi non conforme), un 409 Duplicate/Conflict (contatto già iscritto) o un 429 Too Many Requests (rate limit superato).

La Soluzione: Parsing Granulare dello Stato HTTP nel Worker

Il micro-proxy su Cloudflare Worker non deve agire come un semplice passacarte cieco, ma come un gateway intelligente capace di intercettare il corpo JSON della risposta upstream e rimapparlo su messaggi chiari per il front-end.

Architettura del Flusso di Risposta

export default {
  async fetch(request, env) {
    if (request.method === "OPTIONS") {
      return new Response(null, {
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Access-Control-Allow-Methods": "POST, OPTIONS",
          "Access-Control-Allow-Headers": "Content-Type"
        }
      });
    }

    if (request.method !== "POST") {
      return new Response(JSON.stringify({ error: "Metodo non consentito" }), { status: 405 });
    }

    try {
      const { email, lang, redirectUrl } = await request.json();

      const templateId = lang === "en" ? 12 : 11;
      const listId = lang === "en" ? 5 : 4;

      const brevoPayload = {
        email: email,
        includeListIds: [listId],
        templateId: templateId,
        redirectionUrl: redirectUrl
      };

      const brevoResponse = await fetch("https://api.brevo.com/v3/contacts/doubleOptinConfirmation", {
        method: "POST",
        headers: {
          "api-key": env.BREVO_API_KEY,
          "Content-Type": "application/json",
          "Accept": "application/json"
        },
        body: JSON.stringify(brevoPayload)
      });

      // Parsing sicuro del corpo di risposta
      let data = {};
      const responseText = await brevoResponse.text();
      try {
        data = JSON.parse(responseText);
      } catch (e) {
        data = { message: responseText };
      }

      if (!brevoResponse.ok) {
        return new Response(JSON.stringify({
          success: false,
          status: brevoResponse.status,
          code: data.code || "UPSTREAM_ERROR",
          message: data.message || "Errore durante la comunicazione con Brevo"
        }), {
          status: brevoResponse.status,
          headers: {
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json"
          }
        });
      }

      return new Response(JSON.stringify({ success: true }), {
        status: 200,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    } catch (err) {
      return new Response(JSON.stringify({ success: false, message: err.message }), {
        status: 500,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    }
  }
};

Indice: La Genesi di una Newsletter

La tua Ricompensa: Brevo API Integration & Error Toolkit

Scarica la suite completa di moduli JavaScript con gestione unificata dei codici di stato HTTP e messaggi localizzati per ambienti di produzione. Inserisci la tua email per ottenerla.

Inviando la richiesta, accetti di iscriverti alla newsletter tecnica di IT Chronicle. Zero spam, pura operatività.

La Genesi di una Newsletter Ep.3: Cloudflare Workers, Protezione Anti-Spam e Rate Limiting per Form Statici

Il Problema: Gli abusi sui form pubblici in architetture statiche

Antispam
Immagine realizzata con Gemini AI


Nei capitoli precedenti abbiamo visto come disaccoppiare la logica di iscrizione tramite un proxy serverless su Cloudflare Workers, mettendo al sicuro le credenziali API di Brevo. Tuttavia, esporre un endpoint HTTP pubblico senza autenticazione introduce un rischio operativo immediato: bot automatizzati e crawler possono bersagliare l'endpoint con sottomissioni multiple in pochi secondi, prosciugando le quote mensili di email transazionali e inquinando il database dei contatti con indirizzi inesistenti.

La Soluzione: Protezione a Due Livelli con Honeypot e Validazione Edge

Invece di appesantire la pagina con captcha invasivi di terze parti che degradano l'esperienza utente, possiamo adottare un approccio a due livelli direttamente tra il front-end statico e il Cloudflare Worker:

  1. Campo Honeypot nel Form: Inseriamo un campo di testo nascosto agli utenti reali tramite CSS, ma visibile ai bot che compilano ciecamente il DOM. Se il campo contiene un valore, la richiesta viene abortita all'istante senza consumare risorse.
  2. Validazione Strutturale dei Payload a livello Edge: Il Worker analizza l'header Origin, convalida la sintassi RFC dell'indirizzo email ed evita qualsiasi inoltro a Brevo in caso di anomalie.

Codice del Cloudflare Worker con Controlli di Sicurezza

export default {
  async fetch(request, env) {
    // Gestione Preflight CORS
    if (request.method === "OPTIONS") {
      return new Response(null, {
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Access-Control-Allow-Methods": "POST, OPTIONS",
          "Access-Control-Allow-Headers": "Content-Type"
        }
      });
    }

    if (request.method !== "POST") {
      return new Response(JSON.stringify({ error: "Metodo non consentito" }), { 
        status: 405, 
        headers: { "Content-Type": "application/json" } 
      });
    }

    try {
      const payload = await request.json();
      const { email, lang, redirectUrl, hp_field } = payload;

      // 1. Controllo Anti-Bot Honeypot
      if (hp_field && hp_field.trim() !== "") {
        return new Response(JSON.stringify({ error: "Spam rilevato" }), {
          status: 400,
          headers: { 
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json" 
          }
        });
      }

      // 2. Validazione di base del formato email
      const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
      if (!email || !emailRegex.test(email)) {
        return new Response(JSON.stringify({ error: "Indirizzo email non valido" }), {
          status: 400,
          headers: { 
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json" 
          }
        });
      }

      const templateId = lang === "en" ? 12 : 11;
      const listId = lang === "en" ? 5 : 4;

      const brevoPayload = {
        email: email,
        includeListIds: [listId],
        templateId: templateId,
        redirectionUrl: redirectUrl
      };

      const response = await fetch("https://api.brevo.com/v3/contacts/doubleOptinConfirmation", {
        method: "POST",
        headers: {
          "api-key": env.BREVO_API_KEY,
          "Content-Type": "application/json",
          "Accept": "application/json"
        },
        body: JSON.stringify(brevoPayload)
      });

      return new Response(JSON.stringify({ success: response.ok }), {
        status: response.status,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    } catch (err) {
      return new Response(JSON.stringify({ error: err.message }), {
        status: 500,
        headers: { 
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json" 
        }
      });
    }
  }
};

Indice: La Genesi di una Newsletter

La tua Ricompensa: Cloudflare Worker Security Boilerplate

Scarica il boilerplate completo per Cloudflare Workers pronto all'uso con logiche di honeypot, validazione input e gestione CORS enterprise. Inserisci la tua email per sbloccarlo.

Inviando la richiesta, accetti di iscriverti alla newsletter tecnica di IT Chronicle. Zero spam, pura operatività.

The Genesis of a Newsletter Ep.3: Cloudflare Workers, Anti-Spam Protection & Rate Limiting for Static Forms

The Problem: Automated Abuse on Public Serverless Webhooks

Antispam
Image generated with Gemini AI


Deploying a serverless proxy on Cloudflare Workers successfully protects upstream API keys when integrating static blogs with email service providers like Brevo. However, exposing an unauthenticated HTTPS endpoint creates a critical attack vector: malicious automated bots and scraping scripts can flood the webhook, depleting transactional credits and polluting subscriber databases with junk records.

The Solution: Edge Defense via Honeypot and Payload Sanitization

Rather than degrading user experience with heavy third-party CAPTCHA widgets, we implement a lightweight, dual-stage security perimeter directly at the edge:

  1. Client-Side Honeypot Field: A hidden form field invisible to human users via CSS, but readily filled by automated crawlers traversing the DOM. If populated, the worker immediately drops the request.
  2. Edge-Level Structural Validation: The Cloudflare Worker validates origin headers, checks RFC email compliance, and filters malformed payloads before dispatching upstream requests to Brevo.

Hardened Cloudflare Worker Implementation

export default {
  async fetch(request, env) {
    // Handle CORS Preflight
    if (request.method === "OPTIONS") {
      return new Response(null, {
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Access-Control-Allow-Methods": "POST, OPTIONS",
          "Access-Control-Allow-Headers": "Content-Type"
        }
      });
    }

    if (request.method !== "POST") {
      return new Response(JSON.stringify({ error: "Method not allowed" }), { 
        status: 405, 
        headers: { "Content-Type": "application/json" } 
      });
    }

    try {
      const payload = await request.json();
      const { email, lang, redirectUrl, hp_field } = payload;

      // 1. Anti-Bot Honeypot Verification
      if (hp_field && hp_field.trim() !== "") {
        return new Response(JSON.stringify({ error: "Spam detected" }), {
          status: 400,
          headers: { 
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json" 
          }
        });
      }

      // 2. Strict Email Validation
      const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
      if (!email || !emailRegex.test(email)) {
        return new Response(JSON.stringify({ error: "Invalid email format" }), {
          status: 400,
          headers: { 
            "Access-Control-Allow-Origin": "https://itchronicle.com",
            "Content-Type": "application/json" 
          }
        });
      }

      const templateId = lang === "en" ? 12 : 11;
      const listId = lang === "en" ? 5 : 4;

      const brevoPayload = {
        email: email,
        includeListIds: [listId],
        templateId: templateId,
        redirectionUrl: redirectUrl
      };

      const response = await fetch("https://api.brevo.com/v3/contacts/doubleOptinConfirmation", {
        method: "POST",
        headers: {
          "api-key": env.BREVO_API_KEY,
          "Content-Type": "application/json",
          "Accept": "application/json"
        },
        body: JSON.stringify(brevoPayload)
      });

      return new Response(JSON.stringify({ success: response.ok }), {
        status: response.status,
        headers: {
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json"
        }
      });
    } catch (err) {
      return new Response(JSON.stringify({ error: err.message }), {
        status: 500,
        headers: { 
          "Access-Control-Allow-Origin": "https://itchronicle.com",
          "Content-Type": "application/json" 
        }
      });
    }
  }
};

Index: The Genesis of a Newsletter

Your Reward: Cloudflare Worker Security Boilerplate

Download our battle-tested Cloudflare Worker boilerplate equipped with honeypot filters, input sanitization, and enterprise CORS controls. Enter your email to receive it.

Zero spam. Pure sysadmin architecture, operational code, and engineering field logs.