Skip to content

Secure client secret handling in Affected Key Credentials playbook - #14896

Open
idoshabi07 wants to merge 1 commit into
Azure:masterfrom
idoshabi07:ai-scan/affected-key-secret
Open

Secure client secret handling in Affected Key Credentials playbook#14896
idoshabi07 wants to merge 1 commit into
Azure:masterfrom
idoshabi07:ai-scan/affected-key-secret

Conversation

@idoshabi07

Copy link
Copy Markdown
Contributor

Summary

Changes the deployment and workflow client-secret parameters to secure strings, removes the plaintext Logic App variable, and masks the authenticated request inputs and outputs.

AI scan items

Validation

ARM template JSON parsing passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ccff4d4a-3094-4de9-a5c0-d00c63d96a37
@idoshabi07
idoshabi07 requested review from a team as code owners August 13, 2026 12:10
@v-maheshbh v-maheshbh (v-maheshbh) added the Playbook Playbook specialty review needed label Aug 13, 2026

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Hardens secret handling in the “Affected Key Credentials” playbook by converting the client secret to secure string types, removing the plaintext Logic App variable, and masking HTTP action run history to avoid leaking authenticated request details.

Changes:

  • Convert ARM ClientSecret parameter to securestring and workflow parameter to SecureString
  • Remove InitializeVariable action that stored the client secret as a plaintext variable
  • Mask action run history by securing inputs/outputs on the authenticated HTTP call

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 141 to 144
"ClientSecret": {
"defaultValue": "[parameters('ClientSecret')]",
"type": "string"
"type": "SecureString"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Playbook Playbook specialty review needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants