Skip to content

fix: withhold gateway fallback configuration from logs - #76952

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan/ai-scan-gateway-logging
Nov 11, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan/ai-scan-gateway-logging

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Summary

Unknown-engine gateway fallback paths logged the complete MCP configuration, which can contain credentials. Remove these unnecessary dumps from both the active JavaScript starter and the shell implementation while preserving status/server-name diagnostics, credential masking, configuration copying, and CLI server filtering.

Regression tests capture fallback output with synthetic agent, header, URL, and environment credentials and assert non-disclosure without relying on runner masking. They cover direct copying, CLI filtering, and malformed-filter fallback.

Relates to AI Scan alert 1088. This is defense-in-depth: recovery of the already-masked generated credential was not established. No scanner rerun or alert-resolution claim is made.

Validation

  • Gateway JavaScript suite: 227 passed, 2 skipped.
  • Gateway shell suite: 38 checks passed.
  • TMPDIR=/private/tmp make agent-report-progress passed, with two pre-existing JavaScript lint warnings. Canonical macOS TMPDIR avoids an existing symlink-guard test failure.

Remove raw fallback config dumps from the JavaScript and shell gateway starters while preserving conversion and CLI server filtering. Cover synthetic credential non-disclosure without runner masking.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 11, 2026 20:22
Copilot AI adaptive review requested due to automatic review settings November 11, 2026 20:22
@pelikhan
pelikhan merged commit 3e4c2fc into main Nov 11, 2026
1 check passed
@pelikhan
pelikhan deleted the pelikhan/ai-scan-gateway-logging branch November 11, 2026 20:23
@pelikhan
pelikhan removed the request for review from Copilot November 11, 2026 21:42
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant