post: commit 1ff5c4b in bojemoi
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 15s

This commit is contained in:
2026-05-22 23:29:51 +02:00
committed by Betty
parent 4b22e8390b
commit dc14cc88a4

View File

@@ -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 <noreply@anthropic.com>
### Files Changed
```
M borodino/thearm_nuclei
```
### Diff Summary
```
borodino/thearm_nuclei | 8 ++++++++
1 file changed, 8 insertions(+)
```