From 0ba765c10ffde7741e9563abe8931d967b703306 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Wed, 12 Aug 2026 12:28:58 +0200 Subject: [PATCH] =?UTF-8?q?fix(settings):=20config=20effective=20agent=20f?= =?UTF-8?q?iltr=C3=A9e=20sur=20AgentScoped=20=E2=80=94=20SMTP/ntfy/S3/Sent?= =?UTF-8?q?ry=20plus=20envoy=C3=A9s=20aux=20agents=20(Refs=20#106)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GetEffectiveAgentConfig/GetEffectiveAgentConfigQuery.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)