Files
Heimdall/src/Heimdall.Web/Heimdall.Web.csproj
T
arnaud.dartois 6e61d38ca8
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 22m48s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 8m18s
Heimdall Gitea / Build and scan agent image (push) Successful in 20m1s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 2m15s
Heimdall Gitea / CI policy (push) Successful in 12s
fix(web): serve native agent Python supervisor (#140)
## 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>
2026-11-06 09:41:48 +01:00

55 lines
3.0 KiB
XML

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
<!-- GHSA-g94r-2vxg-569j: OpenTelemetry.Api vulnerability (affects tracing, not metrics-only usage) -->
<NoWarn>$(NoWarn);NU1902</NoWarn>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="Heimdall.Api.Tests" />
<InternalsVisibleTo Include="Heimdall.IntegrationTests" />
</ItemGroup>
<ItemGroup>
<!-- Native Agent instructions download these assets from Central at /install/*. -->
<Content Include="../../install/install-agent.sh" Link="wwwroot/install/install-agent.sh"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
<Content Include="../../install/agent-supervisor.py" Link="wwwroot/install/agent-supervisor.py"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
<Content Include="../../install/install-agent.ps1" Link="wwwroot/install/install-agent.ps1"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
<Content Include="../../install/agent-update-supervisor.ps1" Link="wwwroot/install/agent-update-supervisor.ps1"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Heimdall.Application\Heimdall.Application.csproj" />
<ProjectReference Include="..\Heimdall.Contracts\Heimdall.Contracts.csproj" />
<ProjectReference Include="..\Heimdall.Infrastructure\Heimdall.Infrastructure.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.17" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.16.0" />
<PackageReference Include="OpenTelemetry" Version="1.17.0" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.17.0-beta.1" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.17.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.17.0" />
<PackageReference Include="Scalar.AspNetCore" Version="2.0.2" />
<PackageReference Include="Hangfire.PostgreSql" Version="1.21.1" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.13" />
<PackageReference Include="MudBlazor" Version="9.8.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.13" />
<PackageReference Include="Sentry.AspNetCore" Version="6.8.0" />
<!-- CVE bloquantes Trivy (ticket #127) : forcer les versions corrigées des dépendances transitives -->
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
</ItemGroup>
</Project>