From dc14cc88a4bb3c8c039066ff83b0297edddbf219 Mon Sep 17 00:00:00 2001 From: Betty Date: Fri, 22 May 2026 23:29:51 +0200 Subject: [PATCH] post: commit 1ff5c4b in bojemoi --- .../commits/2026-05-22-commit-1ff5c4b.md | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 content/posts/commits/2026-05-22-commit-1ff5c4b.md diff --git a/content/posts/commits/2026-05-22-commit-1ff5c4b.md b/content/posts/commits/2026-05-22-commit-1ff5c4b.md new file mode 100644 index 0000000..bd288d8 --- /dev/null +++ b/content/posts/commits/2026-05-22-commit-1ff5c4b.md @@ -0,0 +1,44 @@ +--- +title: "[bojemoi] fix(nuclei): ignorer les host_ids absents de la DB (stale après reset)" +date: 2026-05-22T23:29:51+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 1ff5c4b par Betty dans bojemoi" +author: "Betty" +--- + +## Commit `1ff5c4b` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `1ff5c4b00477a495a3ccd5f32bf93a1c3e728a21` | + + +### Description + +La DB MSF a été réinitialisée le 2026-05-19. La queue Valkey +contenait ~75k anciens host_ids (IDs > 278k) provoquant des +violations de FK sur nuclei_scan_log_host_id_fkey. + +Ajout d'un check SELECT 1 FROM hosts WHERE id = %s avant tout +traitement : si le host n'existe plus, l'item est ignoré avec +un WARNING plutôt qu'une erreur FK. + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M borodino/thearm_nuclei +``` + +### Diff Summary + +``` + borodino/thearm_nuclei | 8 ++++++++ + 1 file changed, 8 insertions(+) +```