Commit Graph
6 Commits
Author SHA1 Message Date
Arnaud Dartois 02082e504d docs: correct development commands and test guidance
Heimdall Gitea / Build and tests (pull_request) Successful in 29m11s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-21 09:56:24 +02:00
Arnaud Dartois 2eebc1d779 ci: split test-db en 2 jobs parallèles (Infra + Integration) (#162) 2026-08-27 00:11:14 +02:00
Arnaud Dartois ad36d1d098 feat(release): GitVersion double central/agent + release notes auto + sécurité CI (Fixes #98 #99 #102, Refs #95 #96 #97 #103)
- GitVersion.yml (central, tags v*) + GitVersion.Agent.yml (agent, tags agent-v*)
- release.yml : 2 jobs — tag v* → release central, tag agent-v* → release agent (binaires natifs + image)
- ci.yml : gitversion-enabled, trivy-enabled, dependency-check-enabled (templates bloquants)
- Dockerfiles : ARG VERSION + -p:Version= (injection assembly)
- Endpoint GET /api/version (HealthController) + version agent depuis l'assembly (plus de hardcode)
- Makefile : targets version / version-tag / version-tag-agent
- Template PR + .gitignore corrigé (configs GitVersion commitables)
2026-08-12 11:39:20 +02:00
Arnaud Dartois 630e7987fe refactor(docker): merge worker and web into single heimdall image
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
2026-07-20 17:22:56 +00:00
Arnaud Dartois 562aabdfc8 feat(api+web): merge REST API and Blazor UI into single process
Previously the API (heimdall-central) and Blazor UI (heimdall-web) ran as
separate containers with the Blazor Server making internal HTTP calls to
the API. This caused the Blazor circuit to disconnect when the API was
unreachable (network error → "Une erreur réseau est survenue").

Now both serve from the same .NET process on the same port:
- All 16 API controllers, ExceptionFilter, and SignalR hubs integrated
  into Heimdall.Web
- JWT auth, CORS, rate limiting configured in the unified Program.cs
- Dockerfile.central entrypoint runs web/Heimdall.Web.dll
- docker-compose simplified: heimdall-central service removed
- CI publishes heimdall-web image instead of heimdall-central

Also fixes timezone validation on Alpine/tzdata-less environments
and enables FluentValidation auto-validation in the API project.
2026-07-20 10:30:01 +00:00
Arnaud Dartois 6d5ec0c201 feat(mvp): cameras API, Docker production, tests, security, Makefile
- Cameras API: CRUD with service/controller/DTOs + Blazor page
- Docker: production-grade compose with healthchecks, .env, Makefile, networks
- Healthchecks: /healthz (liveness) and /readyz (readiness) endpoints
- Testing: 13 integration tests (Auth, Sites, Users, Cameras controllers)
  - Users: create, list, lock, reset-password
  - Cameras: create with site, list by site
- Environment: .env.example, docker-compose.override.yml for dev
- Infrastructure: ICameraService registered in DI
2026-07-17 06:18:56 +00:00