## Résumé
Ajoute le type MIME `text/x-python` au middleware statique Central. Sans cette association, ASP.NET Core renvoie 404 pour le superviseur Linux `.py` même si le fichier figure dans le publish.
## Validation
- Recette Compose jetable source : `/healthz` sain; `install-agent.sh` et `agent-supervisor.py` répondent 200 et sont identiques aux sources.
- Teardown vérifié : 0 conteneur, volume, réseau; tag unique supprimé et absent.
- `git diff --check` passé.
La vérification de l’instance publique reste requise après publication de l’image et redémarrage de Central.
Reviewed-on: #140
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
feat(broker): add RabbitMQ + MassTransit job broker for cross-site analysis
Mutualise les ressources IA/GPU entre sites via un broker de jobs durable.
RabbitMQ + MassTransit avec connexion AMQP sortante (pas de port entrant).
- Heimdall.Contracts: contrats de messages partagés
- RabbitMQ: conteneur docker + credentials via env vars
- MassTransit Central: publication de jobs d'analyse
- MassTransit Agent: consommateur avec backpressure GPU
Fixes#72
- Drawer : Breakpoint.Sm + mini-variant (64px) — responsive mobile/desktop.
- Nav restructurée : Événements et Snapshots SORTIS de la section
Administration (bug d'accès : masqués aux non-admin alors que les pages
sont autorisées) — section Navigation pour tous les connectés.
- Badge notifications temps réel : NotificationsHubClient (SignalR,
access_token JWT, reconnexion auto, fallback silencieux) +
NotificationBadge dans l'AppBar (compteur non lues, clic → /events).
- Toggle clair/sombre dans l'AppBar (IsDarkMode du MudThemeProvider).
- PageTestBase : enregistre NotificationsHubClient pour les tests bUnit.
172 tests Web verts.
MudBlazor 9.x ignore silencieusement l'attribut inconnu 'Checked'
(CaptureUnmatchedValues) : les checkboxes de rôles et les switches de
configuration ne se liaient jamais. Passage à l'API Value/ValueChanged
+ mise à jour MudBlazor 9.1.0 → 9.8.0 (Web + tests). Vérifié en réel :
la case Admin est cochée à l'ouverture du dialog utilisateur.
- Upgrade Sentry.AspNetCore v6.7.0 → v6.8.0
- Ajout Sentry base package à Infrastructure (pour SentryErrorReporter)
- Configuration SDK enrichie dans Web et Agent:
- AutoSessionTracking=false (GlitchTip ne supporte pas)
- EnableLogs=true (logs structurés)
- CaptureBlockingCalls=true (détection .Result/.Wait())
- CaptureFailedRequests=true (capture 4xx/5xx HttpClient)
- IncludeActivityData=true (DiagnosticSource)
- SetBeforeSend pour nettoyage PII (password, token, secret)
- SetBeforeBreadcrumb pour filtrage breadcrumbs
- SampleRate, AttachStacktrace, MaxBreadcrumbs configurés
- Release depuis la config, Environment auto
- StackTraceMode.Enhanced
- double.Parse avec CultureInfo.InvariantCulture
- UseSentry avec type explicite SentryAspNetCoreOptions
- Abstraction IErrorReporter dans Application (0 dép. Sentry)
- Implémentation SentryErrorReporter dans Infrastructure
- Enregistrement DI dans Infrastructure
- DSN de développement dans appsettings.Development.json
- .env.example avec Sentry__Dsn et Sentry__TracesSampleRate
- Add InternalsVisibleTo for Heimdall.Api.Tests and
Heimdall.IntegrationTests in Web.csproj
- Add partial class Program for WebApplicationFactory<Program>
- Pass builder.Environment.EnvironmentName instead of env var
so AddInfrastructure correctly detects Testing environment
- Skip DATABASE_URL check, Hangfire setup, migrations, and
recurring jobs when environment is Testing
- Update test project references from Heimdall.Api to Heimdall.Web
Heimdall.Api controllers/hubs/filters were exact duplicates of
files already in Heimdall.Web (same namespace, same content).
The Api project was a leftover from before the single-image merge.
Changes:
- Add missing registrations to Web/Program.cs (JWT Bearer auth,
rate limiting, controllers with ExceptionFilter, FluentValidation,
SignalR + broadcast services, OpenAPI/Scalar, CORS, hub mappings)
- Add FluentValidation.AspNetCore, Scalar.AspNetCore,
Microsoft.AspNetCore.OpenApi NuGet packages to Web.csproj
- Remove Heimdall.Api from solution and delete the project
- All routes continue working at their existing paths
Combine Heimdall.Web and Heimdall.Workers into one process/image.
Hangfire background jobs now run inside the web process.
- Move job classes to Infrastructure/Jobs/ (no Worker SDK dependency)
- Add Hangfire server + recurring jobs to Web/Program.cs
- Add missing AddInfrastructure/AddApplication DI registrations to Web
- Rename image: heimdall (was heimdall-web / heimdall-workers)
- Remove src/Heimdall.Workers project entirely
- Remove tests/Heimdall.Workers.Tests (placeholder)
- Simplify Dockerfile: single build target, no workers publish
- Update docker-compose files: one service heimdall, no workers
- Update Makefile, .env.example
Add Sentry.AspNetCore v6.7.0 with hardcoded DSN constant
(not overridable by env) pointing to GlitchTip instance at
https://glitchtip.tordais.cc/6.
Same DSN configured across all three entry-point projects:
- Heimdall.Api
- Heimdall.Agent
- Heimdall.Web
Reverts per-project scoping from previous commit — Alpine build env
needs this globally because even Debug mode tries to create a native
host. The 4 Docker-published projects also inherit it from the global
Directory.Build.props.
Proper long-term fix: build CI on non-Alpine image, or set
UseAppHost=false only in Dockerfile publish args via /p flag.
The Alpine workaround was applied globally via Directory.Build.props,
preventing native host generation even for local dev builds. Moved to
only the 4 Docker-published projects (Api, Web, Workers, Agent) with
Condition='==Release'. Dev builds still get native
executables.