How muhammadaliasgher/dotnet-reactor-deobfuscator-for-sentry works
This is a .NET ingest proxy that accepts Sentry envelopes from obfuscated client apps, resolves tenant-specific .nrmap symbols, and forwards the envelopes to the real Sentry project. The workflow authenticates and transforms the envelope, resolves the event’s product/release, retrieves a cached mapping or loads one from disk, deobfuscates frames, then forwards the result. README documents additional health, cache-occupancy, and Prometheus endpoints. Edges reflect shown calls or explicit README documentation; unsampled controller and host wiring is not expanded beyond supported relationships.
Main entry points: TenantMappingCache.cs Tenant mapping cache · SentryDeobfuscationController.cs Envelope API · SentryDeobfuscationService.cs Frame resolver · SymbolResolverMetrics.cs Symbol metrics
Components 13
Ingest and forwarding
- Envelope API
Sentry Crashes Deobfuscator/Controllers/SentryDeobfuscationController.cs - Frame resolver
Sentry Crashes Deobfuscator/Services/SentryDeobfuscationService.cs - Application host
Sentry Crashes Deobfuscator/Program.cs
Tenant resolution
- Tenant key resolver
Sentry Crashes Deobfuscator/Repositories/TenantKeyResolver.cs - Tenant mapping cache
Sentry Crashes Deobfuscator/Repositories/TenantMappingCache.cs - Cache contract
Sentry Crashes Deobfuscator/Repositories/ITenantMappingCache.cs
Mapping storage
- Mapping contract
Sentry Crashes Deobfuscator/Repositories/IMappingRepository.cs - NRMap parser
Sentry Crashes Deobfuscator/Repositories/NRMapRepository.cs - Blob-store contract
Sentry Crashes Deobfuscator/Repositories/INrmapBlobStore.cs - Local disk store
Sentry Crashes Deobfuscator/Repositories/LocalDiskNrmapBlobStore.cs
Observability
- Symbol metrics
Sentry Crashes Deobfuscator/Observability/SymbolResolverMetrics.cs
Other components
- Sentry client
- Real Sentry
Connections 16
- Sentry client → Envelope API: posts envelope
README.md - Envelope API → Frame resolver: resolves frames
README.md - Frame resolver → Tenant key resolver: resolves tenant
Sentry Crashes Deobfuscator/Services/SentryDeobfuscationService.cs - Frame resolver → Tenant mapping cache: gets mapping
Sentry Crashes Deobfuscator/Services/SentryDeobfuscationService.cs - Tenant mapping cache → Local disk store: resolves file
Sentry Crashes Deobfuscator/Repositories/TenantMappingCache.cs - Local disk store → Tenant key resolver: checks segments
Sentry Crashes Deobfuscator/Repositories/LocalDiskNrmapBlobStore.cs - Tenant mapping cache → NRMap parser: loads map
Sentry Crashes Deobfuscator/Repositories/TenantMappingCache.cs - NRMap parser → Mapping contract: implements lookups
Sentry Crashes Deobfuscator/Repositories/NRMapRepository.cs - Tenant mapping cache → Symbol metrics: records cache stats
Sentry Crashes Deobfuscator/Repositories/TenantMappingCache.cs - Frame resolver → Symbol metrics: records frame stats
Sentry Crashes Deobfuscator/Services/SentryDeobfuscationService.cs - Envelope API → Tenant mapping cache: reports occupancy
Sentry Crashes Deobfuscator/Controllers/SentryDeobfuscationController.cs - Envelope API → Real Sentry: forwards envelope
README.md - Application host → Envelope API: maps controllers
Sentry Crashes Deobfuscator/Program.cs - Application host → Tenant mapping cache: registers cache
Sentry Crashes Deobfuscator/Program.cs - Application host → Symbol metrics: exposes metrics
Sentry Crashes Deobfuscator/Program.cs - Symbol metrics → Sentry client: exports counters
README.md