Record request headers and bodies and show them per catch
Build and deploy / build (push) Successful in 1m29s
Release / image (push) Successful in 1m53s
Build and deploy / deploy (push) Successful in 30s
Release / release (push) Successful in 6s

Headers and the first 8 KB of the body are stored unmasked for 30 days,
read alongside the response so the trap answers as before. MCP get_request
and the expanded catch row show them. Changelog prepared for 0.10.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-26 21:47:28 +01:00
1 parent a46727bab3
commit b559f83550
35 files changed
+1012 -18

No files matched your search

@@ -11,6 +11,8 @@ public sealed class FlypaperDbContext(DbContextOptions<FlypaperDbContext> option
public DbSet<TrapEventEntity> TrapEvents => Set<TrapEventEntity>();
public DbSet<TrapRequestEntity> TrapRequests => Set<TrapRequestEntity>();
public DbSet<SettingEntity> Settings => Set<SettingEntity>();
public DbSet<McpTokenEntity> McpTokens => Set<McpTokenEntity>();
@@ -37,6 +39,10 @@ public sealed class FlypaperDbContext(DbContextOptions<FlypaperDbContext> option
trapEvent.HasIndex(e => e.RemoteIp);
trapEvent.HasIndex(e => e.CountryCode);
trapEvent.HasIndex(e => e.Asn);
trapEvent.HasOne(e => e.Request)
.WithOne()
.HasForeignKey<TrapRequestEntity>(e => e.TrapEventId)
.OnDelete(DeleteBehavior.Cascade);
var setting = modelBuilder.Entity<SettingEntity>();
setting.HasKey(e => e.Key);