From 454ee297e23c96a4ceb220531b47093266d60ac9 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:39:23 -0500 Subject: [PATCH] feat: log every incoming webhook request before validation Saves a raw entry to webhook_logs immediately on any POST to the webhook, before HMAC check or JSON parsing. Shows HMAC status (ok/invalida/sin-firma). Live feed now shows all traffic including rejected and malformed payloads. Co-Authored-By: Claude Sonnet 4.6 --- admin/DashboardController.php | 3 ++- admin/v1/WpWebhook.php | 49 ++++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/admin/DashboardController.php b/admin/DashboardController.php index bd4e3e1..2271d92 100644 --- a/admin/DashboardController.php +++ b/admin/DashboardController.php @@ -83,6 +83,7 @@ class DashboardController .b-interactive{background:#ede7f6;color:#4527a0} .b-button{background:#e3f2fd;color:#0d47a1} .b-status{background:#f3f4f6;color:#6b7280} + .b-raw{background:#fef9c3;color:#854d0e} .b-other{background:#f5f5f5;color:#555}
@@ -104,7 +105,7 @@ class DashboardController