fix(settings): config effective agent filtrée sur AgentScoped — SMTP/ntfy/S3/Sentry plus envoyés aux agents (Refs #106)
This commit is contained in:
1 parent
9097102575
commit
0ba765c10f
1 file changed
+5
-1
+5
-1
@@ -24,7 +24,11 @@ public class GetEffectiveAgentConfigQueryHandler
|
||||
public async Task<ServiceResult<Dictionary<string, string>>> 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<string, string>(StringComparer.Ordinal);
|
||||
|
||||
foreach (var s in appSettings)
|
||||
|
||||
Reference in new issue
Block a user