Skip to content

Python: fix(devui): redact auth token from deployment logs - #9149

Closed
Patel Namraa (Namraa310806) wants to merge 1 commit into
microsoft:mainfrom
Namraa310806:fix/devui-redact-auth-token-logs
Closed

Patel Namraa (Namraa310806) wants to merge 1 commit into
microsoft:mainfrom
Namraa310806:fix/devui-redact-auth-token-logs

Conversation

@Namraa310806

Copy link
Copy Markdown
Contributor

Description

Redact DEVUI_AUTH_TOKEN from the Azure deployment command before logging it.

The Azure deployment command previously included the generated DevUI authentication token directly in the command passed to the INFO-level logger. This could expose the bearer token through CI logs, Application Insights, file logs, or other centralized logging systems.

The actual command executed by Azure CLI still contains the real token; only the logged representation is redacted.

Changes

  • Redact DEVUI_AUTH_TOKEN from the deployment command before logging.
  • Keep the real authentication token in the command passed to Azure CLI.
  • Add a regression test verifying that:
    • the real token does not appear in logs;
    • the redacted token appears in logs;
    • the real token remains in the command executed by Azure CLI.

Fixes #9116

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@agent-framework-automation agent-framework-automation Bot added the python Usage: [Issues, PRs], Target: Python label Oct 7, 2026
@github-actions github-actions Bot changed the title fix(devui): redact auth token from deployment logs Python: fix(devui): redact auth token from deployment logs Oct 7, 2026
@eavanvalkenburg

Copy link
Copy Markdown
Member

Patel Namraa (@Namraa310806), thank you for the contribution. #9118 is already open for the same DevUI auth-token redaction work and covers the same deployment logging path, so we’ll continue the work there.

@Namraa310806
Patel Namraa (Namraa310806) deleted the fix/devui-redact-auth-token-logs branch October 13, 2026 14:16

This branch was previously deployed

1 inactive deployment
github-app-auth — 775dabb1 Deployed Oct 7, 2026 by Namraa310806 via team_check #6245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Bug]: [Security] DevUI Azure deployment logs DEVUI_AUTH_TOKEN in plaintext

3 participants