Skip to content

Commit e16f5bf

Browse files
chore(gateway): make secrets-event trust explicit for opengrep
The secrets-reloader state event interpolates only an enum code and an internal message string, which matches the GHSA-gfmx-pph7-g46x triage note for low-risk callers. Add the explicit trusted: true to self-document intent and clear the opengrep finding; runtime behavior is unchanged because trusted defaults to true.
1 parent bb80d6d commit e16f5bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gateway/server.impl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ export async function startGatewayServer(
487487
enqueueSystemEvent(`[${code}] ${message}`, {
488488
sessionKey: resolveMainSessionKey(cfg),
489489
contextKey: code,
490+
trusted: true,
490491
});
491492
};
492493
const activateRuntimeSecrets = createRuntimeSecretsActivator({

0 commit comments

Comments
 (0)