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.
- 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)
#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.
#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
- 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
- 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)
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)
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.
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
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
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.
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.
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.
- Nouveau NtfyService: topic isolé par user (heimdall_{userId})
- Configuration globale Ntfy:BaseUrl + Ntfy:Token (plus de token par user)
- Renommage UserNotificationConfig: Gotify* → Ntfy*
- Migration des colonnes DB: gotify_enabled/url/token → ntfy_enabled/url
- Ajout service ntfy dans docker-compose (binwiederhier/ntfy)
- Mise à jour .env.example avec NTFY__BASE_URL et NTFY__TOKEN
- Suppression GotifyService et IGotifyService
- Add all 43 agents to submodule agents/ directory
- Fix YAML frontmatter (UTF-8 special chars, long descriptions)
- Remove hidden: true from all agents for @ menu visibility
- Configure coordinator-agent as primary agent in global config
- Add JWT__RefreshKey to .env.example with documentation
- Add JWT__RefreshKey to docker-compose.yml and docker-compose.prod.yml
- Fix JwtService to check both IConfiguration and env vars (JWT__REFRESHKEY)
for access token key and refresh token key, matching Program.cs pattern
- Fixes 'Jwt:RefreshKey is not configured' 500 error on register/login