Commit Graph
334 Commits
Author SHA1 Message Date
Arnaud Dartois 2f3b3dd666 fix(sites): token d'inscription généré à la création + CI anti-flaky
- CreateSiteHandler retourne désormais SiteWithTokenResponse avec le token
  d'inscription généré à la création (via RegistrationTokenGenerator partagé)
  — corrige l'écran 'Token non disponible' après création de site
- GenerateSiteTokenHandler réutilise le helper commun (DRY)
- Test CreateSiteHandler vérifie le token non vide + expiration future
- PageTestBase : DefaultWaitTimeout 10s (bUnit défaut 1s trop court sur le
  runner CI → 3 tests Web flaky : Snapshots/Dashboard/Events)
2026-08-10 15:06:20 +02:00
Arnaud Dartois 79d6ec0495 fix(ui): lightbox snapshots cliquable + recherche FilterBar à la frappe
Découverts par les tests bUnit des pages :
- SnapshotsPage : OnClick était passé à MudPaper, qui n'a pas ce paramètre
  dans MudBlazor 9.7 → le clic sur une carte était silencieusement ignoré,
  la lightbox n'ouvrait jamais. Remplacé par un div cliquable (role=button,
  tabindex) autour du contenu.
- FilterBar : SearchChanged/CategoryChanged déclarés mais jamais invoqués →
  la recherche ne se déclenchait que via le submit du form. ValueChanged
  câblé pour invoquer les EventCallback à la frappe/sélection.

Tests mis à jour pour le comportement corrigé : clic carte → dialog,
recherche à la frappe → rechargement sans submit.
2026-08-10 13:17:27 +02:00
Arnaud Dartois 93757dfe8b test(web): couvre les pages IHM restantes (Users, Profile, Settings, Events, Snapshots, Audit, Agents, AllAgents) — 158 tests Web verts
Ajout des tests bUnit : UsersPageTests (11), ProfileTests, SettingsPageTests,
EventsPageTests, SnapshotsPageTests, AuditLogsPageTests, AgentsPageTests,
AllAgentsPageTests.

Découvertes de bugs réels par les tests :
- SnapshotsPage : OnClick passé à MudPaper est ignoré (pas de paramètre
  OnClick dans MudBlazor 9.7) → lightbox jamais ouvrable au clic
- FilterBar : SearchChanged déclaré mais jamais invoqué → la recherche ne
  recharge que via le submit du form
2026-08-10 13:10:37 +02:00
Arnaud Dartois 34a3dd4232 test(web): tests bUnit des pages IHM + infrastructure de test MudBlazor
Pages couvertes : Login, Register, Dashboard, SitesPage, SiteDetail,
CamerasPage (+ AuthState, HeimdallAuthStateProvider) — 105 tests Web verts.

Infrastructure nécessaire pour rendre les pages testables avec bUnit :
- MudTestBase : JSInterop en mode Loose + wrapper générique
  IAsyncDisposable→IDisposable (Castle DynamicProxy) pour les services
  MudBlazor (PopoverService, PointerEventsNoneService...) qui cassent le
  Dispose synchrone de bUnit
- HostWithProviders.razor : fournit MudPopoverProvider + MudDialogProvider
  — sans eux les MudDialog inline des pages ne sont jamais rendus
- PageTestBase.RenderPage<T> : rend les pages dans ce host
- bunit 2.7.2 → 2.9.0, AngleSharp → 1.7.0, SDK Razor pour les .razor locaux

Correctifs de tests : ShouldContain avec prédicat (sous-chaîne au lieu
d'égalité stricte sur les messages snackbar), .Input()/.Change() selon
Immediate des champs, format P0 (87% sans espace), index des boutons
d'action (copier vs supprimer).
2026-08-10 12:46:15 +02:00
Arnaud Dartois 370cfc8486 feat(ops): script de provisionnement site + token agent
heima-manager/provision-site.sh : crée un site via l'API et génère son
token d'inscription (24h, usage unique), à injecter dans
HEIMDALL_SITE_TOKEN de l'agent. Validé contre l'instance locale.
2026-08-10 11:26:22 +02:00
Arnaud Dartois dab62456b0 docs: corrige le readme (projets fusionnés, comptage tests réel ~930, fichiers docker) 2026-08-10 11:15:25 +02:00
Arnaud Dartois 3ff20ddf98 fix(agent): settings distants réellement appliqués (heartbeat live)
ConfigReceiverService.ApplySetting ne faisait que logger. Le setting
heartbeat.interval.seconds est désormais appliqué à chaud : écrit dans
AgentState.HeartbeatIntervalSeconds (snapshot thread-safe) et relu par
AgentRegistrationService à chaque cycle — plus besoin de redémarrer
l'agent pour changer l'intervalle. Validation 5-300s, valeurs invalides
ignorées sans muter l'état.

Tests : +2 (application live vérifiée, invalides ne mutent pas l'état).
2026-08-10 11:02:37 +02:00
Arnaud Dartois b6d4164652 test(web): adapte GetStatsAsync au format enveloppe {data, timestamp} 2026-08-10 10:56:09 +02:00
Arnaud Dartois 2d836525c2 fix(ui): affiche le nom du site et corrige les compteurs du dashboard
- AgentResponse porte désormais SiteName (GetAgent/GetAllAgents/GetBySite
  projettent a.Site.Name via Include) → la page Agents affiche 'Site
  Principal' au lieu du GUID
- GetStatsAsync désérialise l'enveloppe { data, timestamp } → les KPIs
  du dashboard (Agents en ligne, total) affichaient 0 malgré des agents
  Online ; le wrapper StatsEnvelope corrige la lecture
2026-08-10 10:53:48 +02:00
Arnaud Dartois 462a748d5f fix(api): sérialise les enums en string dans les réponses MVC
Le JsonStringEnumConverter n'était configuré que sur Http.Json.JsonOptions
(liaison de requêtes), pas sur AddControllers → les réponses API
renvoyaient les enums en nombre (ex. "status": 1 pour Agent.Status).
Le client Blazor (AgentItem.Status est un string) échouait en
désérialisation → la page Agents affichait une erreur JSON et le
dashboard comptait 0 agent en ligne.

AddJsonOptions sur AddControllers corrige toutes les réponses
(agents, caméras, sites...).
2026-08-10 10:40:17 +02:00
Arnaud Dartois bfe9dc6e56 fix(auth): API key acceptée en Bearer sur les hubs SignalR
Le client SignalR .NET envoie le token d'accès en header Authorization:
Bearer sur le POST negotiate HTTP (les WebSockets ne peuvent pas poser
de header custom) ; le navigateur l'envoie en query string access_token.
ConfigHub étant [Authorize(AuthenticationSchemes="ApiKey")], le handler
ApiKey doit lire les deux sur /hubs. Le fallback reste scoped aux hubs :
sur les endpoints API, un Bearer non-JWT renvoie toujours 401.

Tests : +2 intégration (Bearer sur ConfigHub OK, Bearer hors /hubs 401).
2026-08-10 10:35:15 +02:00
Arnaud Dartois 1e3322cd1a fix(agent): heartbeat X-API-Key complet + métriques temps réel + hub config
- ApiKeyAuthenticationHandler accepte l'API key via query string access_token
  sur les chemins /hubs (WebSocket SignalR ne peut pas poser de header custom)
  → le ConfigReceiverService de l'agent peut se connecter au ConfigHub
- ConfigReceiverService.FetchFullConfigAsync : X-API-Key au lieu de Bearer
- Métriques heartbeat : CpuUsagePercent/MemoryUsageBytes/DiskUsagePercent/
  UptimeSeconds + IsOffline désormais transportées jusqu'à l'entité Agent
  (migration AddAgentLiveMetrics) ; IsOffline marque l'agent Offline
  immédiatement au lieu d'attendre le timeout 90s du HeartbeatMonitorJob
- docker-compose.local.yml : override aussi l'image agent (heimdall-agent:local)

Tests : +2 unit AgentRegistrationService (X-API-Key), +2 HeartbeatHandler
(métriques, offline), +3 intégration SignalR (ConfigHub query string) — verts.
2026-08-10 10:26:31 +02:00
Arnaud Dartois 4516761a3a fix(agent): authentifie le heartbeat via X-API-Key au lieu de Bearer
Le central (ApiKeyAuthenticationHandler) ne lit que le header X-API-Key.
L'agent posait Authorization: Bearer <apiKey> sur le client 'Central'
→ tout heartbeat et le heartbeat final de StopAsync renvoyait 401.
Corrige les deux chemins (identité existante + post-registration) et
verrouille le comportement avec deux tests (nouvelle identité, identité
réutilisée).
2026-08-10 10:09:27 +02:00
Arnaud Dartois 42a441a7ab fix(prod): déploiement docker fonctionnel — API_BASE_URL + wildcard loopback
- SameOriginHttpMessageHandler: quand Kestrel écoute sur une wildcard
  (0.0.0.0 / [::] — ASPNETCORE_URLS=http://+:8080 en conteneur), résoudre
  l'origine interne vers http://localhost:<port> au lieu de l'adresse
  anycast que le HttpClient ne peut pas joindre
- docker-compose.prod.yml: API_BASE_URL explicite (http://localhost:8080)
  pour que les appels internes du circuit Blazor ciblent le listener du
  conteneur et non le port hôte vu par le navigateur
- docker-compose.local.yml: override pour déployer l'image locale tant
  que les fixes ne sont pas publiés sur Docker Hub par la CI
- .gitignore: exclut les .env (secrets JWT/mots de passe)

Vérifié par smoke test Playwright contre la prod (127.0.0.1:5010) :
login UI → dashboard, page users, création d'utilisateur, logout : 5/5
2026-08-10 00:09:22 +02:00
Arnaud Dartois 53b6240a3e fix(auth): répare l'authentification de bout en bout (cookie + JWT + rendu Blazor)
Anomalies corrigées :
- MudPopoverProvider manquant dans les layouts → circuit Blazor mourait sur
  l'ouverture de menus/popovers (dashboard jamais rendu après login)
- AddIdentity redéfinissait le schéma par défaut sur Identity.Application
  alors que /_auth/signin signait avec Cookies → cookie posé mais jamais
  validé, tout rechargement de page redirigeait vers /login. Forçage du
  schéma par défaut sur Cookies + schémas JwtBearer explicites sur les
  endpoints API d'AuthController et SettingsController
- Policy 'AdminUsers' utilisée par register-admin mais jamais enregistrée
  → 500 à l'appel. Ajoutée (RequireRole Admin)
- HeimdallAuthStateProvider ne lisait que le sessionStorage navigateur :
  pendant le prerender SSR, HttpContext.User (cookie) n'était pas utilisé
  → pages protégées redirigées vers /login. Fallback cookie ajouté
- SameOriginHttpMessageHandler : résolution de l'origine via
  IServerAddressesFeature quand IHttpContextAccessor est null (circuit
  Blazor post-hydratation) au lieu de heimdall.local → DNS cassé
- UpdateUserValidator rejetait le thème 'Auto' (défaut de l'UI) → 400
  à l'édition. Accepte désormais auto (case-insensitive)

Tests :
- E2E Playwright complets (login/logout/register/user management) : 33/33
- Integration (Testcontainers PostgreSQL) : 120/120 (valeur 'bool' du
  valueType, bootstrap admin via /register auto-admin, header X-API-Key,
  /proc/meminfo optionnel pour les LXC restreints)
- Exécution E2E séquentielle (xunit.runner.json) pour éliminer le flakiness
2026-08-09 23:43:11 +02:00
Arnaud Dartois 895fdc3422 chore: remove opencode config and references
OpenCode is replaced by Hermes skills and profiles. Removes opencode.json, .opencode-vars.md, .opencode-local/ (Heimdall), research-improve.yml (Heimdall) and cleans .gitignore/.dockerignore/CI paths-ignore references.
2026-08-09 19:31:48 +02:00
Arnaud Dartois 8e14d72a9a chore: remove .opencode submodule, now using global opencode-infra plugin
All shared agents, skills, commands, rules are now provided by the
opencode-infra plugin installed globally at ~/.config/opencode/plugins/.
No per-project configuration needed.
2026-08-01 07:58:35 +00:00
Arnaud Dartois 094567234f fix: disable demo seeding by default and skip in tests
- Change Seed:DemoOnStartup default from true to false (safe upgrade)
- Add Seed:DemoOnStartup=false in appsettings.Testing.json
  (prevents 120 integration test failures due to missing admin password)
- Update diagnostic log message accordingly
2026-07-29 14:48:08 +00:00
Arnaud Dartois afc1b2e032 fix: resolve demo admin seeding, Sentry DSN pass-through, and add startup diagnostics
- Replace IsDevelopment() guard with Seed:DemoOnStartup config flag
  (default: true, disable via SEED__DEMO_ON_STARTUP=false)
- Add Seed:AdminLogin (env SEED__ADMIN_LOGIN) to customize demo admin email
- Add Seed:AdminDisplayName (env SEED__ADMIN_DISPLAYNAME) to customize display name
- Add Sentry__Dsn env var to docker-compose files (matches .env convention)
- Increase Heimdall log level to Debug for startup diagnostics
- Add [DIAG] startup logs for Sentry DSN, Data Protection keys, environment
- Add Data Protection key directory diagnostic in DependencyInjection
2026-07-29 14:21:16 +00:00
Arnaud Dartois 100e230af5 chore: update opencode submodule — auto-pipeline 2026-07-29 04:04:43 +00:00
Arnaud Dartois 64753b9ba6 fix(ci): reparation tests integration + infrastructure
- TestHelpers.CreateAdminClientAsync: bootstrap via register normal
  (first user = admin) + active les flags public-registration et
  admin-registration.enabled
- JwtService.GetUserIdFromExpiredToken: utilise GetJwtRefreshKey()
  (methode appelee avec refresh tokens, signes avec Jwt:RefreshKey)
- AuthDataServiceTests.RevokeRefreshTokenAsync_StoresToken:
  utilise SHA256 hash (nouveau comportement ExtractJti fallback)
2026-07-28 15:14:54 +00:00
Arnaud Dartois 663b872dc2 feat(auth): confirmation email + forgot/reset password
#37: Email confirmation flow:
- Nouveaux endpoints: POST /api/auth/confirm-email
- Register envoie email de confirmation si SMTP configure + flag active
- Login verifie EmailConfirmed si email.confirmation.required = true
- Premier admin auto-confirme (evite chicken-and-egg)
- Setting DB: email.confirmation.required (boolean)

#38: Forgot/Reset password flow:
- Nouveaux endpoints: POST /api/auth/forgot-password, POST /api/auth/reset-password
- ForgotPassword genere token et envoie email via IEmailService
- ResetPassword valide token et change le mot de passe
- Pas de divulgation si l email n'existe pas

Infrastructure email existante (IEmailService + SmtpClient) reutilisee.
2026-07-28 15:03:18 +00:00
Arnaud Dartois ba985ed3c2 fix(auth): RegisterAdmin — [Authorize] + feature flag auth.admin-registration.enabled
#14: Remplacé le guard environment (Testing/Development) par:
- [Authorize(Policy = "AdminUsers")] sur l'endpoint
- Feature flag auth.admin-registration.enabled en DB (default: absent = disabled)
- Suppression de la dependance IWebHostEnvironment du controller
- Test mis a jour: bootstrap via register normal, puis flag, puis RegisterAdmin
2026-07-28 14:57:28 +00:00
Arnaud Dartois 450e019617 feat(infra): intégration Sentry/GlitchTip complète
- 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
2026-07-28 14:52:52 +00:00
Arnaud Dartois 63d610c303 chore: update opencode submodule — auto-pipeline 2026-07-28 14:52:29 +00:00
Arnaud Dartois 1b5395b86b fix(test): update LoginHandlerTests to inject IUserRepository
Breaking: LoginHandler constructor now requires IUserRepository pour
l'audit logging des echecs de login. Test mis a jour.
2026-07-28 14:40:55 +00:00
Arnaud Dartois 234c158a69 fix(auth): audit de securite complet - 12 correctifs
# Fix #28: ProtectedLocalStorage -> ProtectedSessionStorage
#   (donnees token jamais exposees au JS client en Blazor Server)
# Fix #3: GetUserIdFromExpiredToken valide maintenant la signature
#   (plus de ReadJwtToken sans validation)
# Fix #5: API Key handler X-API-Key uniquement (plus de Bearer ambiguité)
# Fix #7: MarkUsed() persiste via SaveChangesAsync()
# Fix #8: Hardcoded permissions (documenté — nécessite migration DB)
# Fix #12: Race condition registration — try/catch DbUpdateException
# Fix #13: Public registration DESACTIVEE par defaut (pas de setting = disabled)
# Fix #15/17: Enable2fa genere et retourne shared key + QR code URI
# Fix #16: Rate limiting specifique 2FA (5 req/min) et RegisterAdmin
# Fix #22/23: RevokeRefreshToken stocke jti (pas token brut)
# Fix #24: Rotation refresh token — ancien token revoque apres refresh
# Fix #39: Audit logging des echecs de login (via IUserRepository)

Breaking: Enable2fa retourne maintenant Enable2faResponse au lieu de Ok()
2026-07-28 14:37:52 +00:00
Arnaud Dartois 485842b135 feat: add CanRegister CQRS query 2026-07-28 13:02:16 +00:00
Arnaud Dartois efe28c9c81 chore: update opencode submodule — auto-pipeline 2026-07-28 13:01:32 +00:00
Arnaud Dartois 25f51781d4 feat: add SetSettingValueAsync to IAuthDataService 2026-07-28 12:56:18 +00:00
Arnaud Dartois 6b2e3d8027 docs: add admin bootstrap first-launch design spec 2026-07-28 11:25:31 +00:00
Arnaud Dartois 1bca0e627a chore: update opencode submodule to bb8c5f9 (Sentry config skill + code review checklist) 2026-07-28 10:44:46 +00:00
Arnaud Dartois edc739dffe fix(sentry): use config pipeline for DSN, add MaxRequestBodySize and ProfilesSampleRate
- Heimdall.Web/Program.cs: use Sentry:Dsn from IConfiguration as primary
  source with legacy SENTRY_DSN env var as fallback (no hardcoded DSN)
- Heimdall.Agent/Program.cs: same pattern applied
- Both: add MaxRequestBodySize=Small and ProfilesSampleRate=0.05
  (previously missing); lower TracesSampleRate to 0.05
- appsettings.json: add Sentry:Dsn entry for discoverability

Resolves codify signal: hardcoded-sdk-credentials (C1)
2026-07-28 10:14:34 +00:00
Arnaud Dartois e8bede3d79 add local specialized agent 2026-07-28 10:26:52 +02:00
Arnaud Dartois 219d9b73b6 feat(ui): polish visuel global — Font Awesome, composants partagés, fix MudMenu 2026-07-27 20:11:31 +00:00
Arnaud Dartois b1c25ac0ae chore: update opencode submodule — daily cron 2026-07-27 19:23:47 +00:00
Arnaud Dartois ca6b8a2eb2 chore: update opencode submodule — no-API-key auto-pipeline
Updates submodule with self-contained auto-pipeline.sh:
- Includes Github trending + Arxiv scraping
- Uses opencode run --auto for analysis (no external API key)
- Detects force-run triggers from Forgejo Action
- Full cycle: research → analyze → implement → learn → heal → commit

Updates .forgejo/workflows/research-improve.yml:
- Now just pushes a trigger file (force-run)
- No API key needed (Action is pure git operations)
2026-07-27 19:19:47 +00:00
Arnaud Dartois 5b8b214d57 feat(ci): add research-improve workflow + auto-pipeline scripts
Adds .forgejo/workflows/research-improve.yml — weekly Forgejo Action
that scrapes AI agent research, generates structured proposals.

Also updates opencode submodule with:
- auto-pipeline.sh (headless processor for Docker host cron)
- research-scrape.sh (Github trending + Arxiv scraper)
- setup-autopipeline-cron.sh (one-shot cron installer)

Architecture:
  Machine A (Forgejo Runner): cron → scrape → commit pipeline signals
  Machine B (Docker Host): cron → docker exec → auto-pipeline.sh → opencode run
2026-07-27 19:13:03 +00:00
Arnaud Dartois 45c6ce82eb perf: add ConfigureAwait(false) to all async calls in library projects
Add ConfigureAwait(false) to all await expressions in Application and
Infrastructure projects (111 files). This follows .NET best practices
for library code to avoid potential deadlocks when consumed from
synchronization contexts (legacy, unit test runners).

Also fix 4 test assertions that check SaveChangesAsync — update to
SaveChangesWithRetryAsync to match the handler changes from Fix 4.
2026-07-27 18:59:12 +00:00
Arnaud Dartois 1635d005cd chore: update opencode submodule to 262ce3e 2026-07-27 18:49:27 +00:00
Arnaud Dartois 03cc53877c chore: update opencode submodule — SkillServer v1.1.0 force-publish + publish-agent fix 2026-07-27 18:49:08 +00:00
Arnaud Dartois 87eb0982a7 refactor: replace URI string concatenation with EndsWith check
Replace new Uri(url.TrimEnd('/') + "/") pattern with explicit
EndsWith('/') check to avoid string concatenation inside URI
construction. Applies to 3 locations:
- Program.cs (Heimdall.Web) - HttpClient base address
- TokenRefreshHandler.cs - raw HttpClient for token refresh
- Program.cs (Heimdall.Agent) - Central service client
2026-07-27 18:43:25 +00:00
Arnaud Dartois 9e58b5bf55 fix: use SaveChangesWithRetryAsync across all handlers
Replace naked SaveChangesAsync(ct) with the project's own
SaveChangesWithRetryAsync(ct: ct) in 5 locations to handle
PostgreSQL serialization conflicts and SQLite SQLITE_BUSY
transient failures:

- UpdateCameraCommand, CreateCameraCommand, DeleteCameraCommand,
  SetCameraCredentialsCommand, AuthDataService
2026-07-27 18:40:23 +00:00
Arnaud Dartois 80b592ba04 fix: remove hardcoded admin seed password from Program.cs
Replace the 'Admin123!Pass' fallback with an InvalidOperationException
that requires Seed:AdminPassword from config or SEED__ADMIN_PASSWORD env
variable. Keeps the env var fallback as second option before throwing.
2026-07-27 18:39:07 +00:00
Arnaud Dartois ec50f6635e fix: remove hardcoded DB password from AppDbContextFactory
The fallback connection string included 'Password=heimdall' as a literal.
Remove the password — the fallback is only for local dev where PostgreSQL
trust authentication is typically used. Production deployments must set
the DATABASE_URL environment variable.
2026-07-27 18:37:54 +00:00
Arnaud Dartois 06927fb9b4 fix: remove stale NtfyToken from migration snapshot
The UserNotificationConfig entity was migrated from Gotify to ntfy
(NtfyUrl replaces GotifyUrl, NtfyEnabled replaces GotifyEnabled).
NtfyToken was never part of the entity but the snapshot still referenced
it, causing PendingModelChangesWarning and 4 integration test failures.

Remove NtfyToken from the Designer.cs and ModelSnapshot.cs to align
the snapshot with the actual entity model.
2026-07-27 18:36:45 +00:00
Arnaud Dartois 9429568fb2 fix(ci): fetch RENOVATE_TOKEN from Vault instead of secrets 2026-07-27 12:08:13 +00:00
Arnaud Dartois a6b2a21ebc fix: corriger les issues mineures du review
🟡 SnapshotUrl: validation sécurité SSRF (scheme + loopback)
🟡 Integration tests: skip graceful sans PostgreSQL (TestContainers)
2026-07-27 09:09:14 +00:00
Arnaud Dartois fba29b3eb4 chore: remove embedded templates repo from tracking 2026-07-27 05:33:58 +00:00
Arnaud Dartois c1eac5431b fix: corriger les 8 issues du code review notifications
🔴 EmailService: implémentation SMTP réelle (System.Net.Mail)
🔴 GetNotificationConfigHandler: CQS — retourne DTO par défaut sans écrire en DB
🟠 NotificationRateLimiter: increment atomique (Interlocked)
🟠 DailyDigestJob/WeeklyDigestJob: comptes événements user-specific
🟠 docker-compose.prod: auth ntfy via NTFY_AUTH_FILE
🟠 Namespace: Heimdall.Web.Controllers (consistant)
🟠 Commentaire 'gotify' → 'ntfy'
🟠 Tests: NotificationsControllerTests (7 tests)
2026-07-27 05:33:53 +00:00