@@ -249,6 +249,7 @@ import {
|
249 | 249 | getQrRemoteCommandSecretTargetIds, |
250 | 250 | getScopedChannelsCommandSecretTargets, |
251 | 251 | getSecurityAuditCommandSecretTargetIds, |
| 252 | +getStatusCommandSecretTargetIds, |
252 | 253 | } from "./command-secret-targets.js"; |
253 | 254 | |
254 | 255 | describe("command secret target ids", () => { |
@@ -273,6 +274,20 @@ describe("command secret target ids", () => {
|
273 | 274 | expect(ids.has("channels.discord.token")).toBe(false); |
274 | 275 | }); |
275 | 276 | |
| 277 | +it("includes gateway auth targets for status command scans", () => { |
| 278 | +const ids = getStatusCommandSecretTargetIds(undefined, undefined, { |
| 279 | +includeChannelTargets: false, |
| 280 | +}); |
| 281 | + |
| 282 | +expect(ids.has("gateway.auth.token")).toBe(true); |
| 283 | +expect(ids.has("gateway.auth.password")).toBe(true); |
| 284 | +expect(ids.has("gateway.remote.token")).toBe(true); |
| 285 | +expect(ids.has("gateway.remote.password")).toBe(true); |
| 286 | +expect(ids.has("agents.defaults.memorySearch.remote.apiKey")).toBe(true); |
| 287 | +expect(ids.has("agents.list[].memorySearch.remote.apiKey")).toBe(true); |
| 288 | +expect(ids.has("channels.discord.token")).toBe(false); |
| 289 | +}); |
| 290 | + |
276 | 291 | it("scopes capability web search commands to search credential surfaces only", () => { |
277 | 292 | const ids = getCapabilityWebSearchCommandSecretTargetIds(); |
278 | 293 | expect(ids.has("tools.web.search.apiKey")).toBe(true); |
|