diff --git a/src/Heimdall.Application/Settings/Queries/GetEffectiveAgentConfig/GetEffectiveAgentConfigQuery.cs b/src/Heimdall.Application/Settings/Queries/GetEffectiveAgentConfig/GetEffectiveAgentConfigQuery.cs index 928e809..d7b5a2b 100644 --- a/src/Heimdall.Application/Settings/Queries/GetEffectiveAgentConfig/GetEffectiveAgentConfigQuery.cs +++ b/src/Heimdall.Application/Settings/Queries/GetEffectiveAgentConfig/GetEffectiveAgentConfigQuery.cs @@ -24,7 +24,11 @@ public class GetEffectiveAgentConfigQueryHandler public async Task>> Handle( GetEffectiveAgentConfigQuery request, CancellationToken ct) { - var appSettings = await _db.AppSettings.ToListAsync(ct).ConfigureAwait(false); + // Seules les clés AgentScoped=true sont exposées aux agents : les + // paramètres d'intégration (SMTP/ntfy/S3/Sentry) sont GLOBAUX (#106). + var appSettings = await _db.AppSettings + .Where(s => s.AgentScoped) + .ToListAsync(ct).ConfigureAwait(false); var config = new Dictionary(StringComparer.Ordinal); foreach (var s in appSettings)