Skip to content

Secure MCAS API token handling - #14902

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

Secure MCAS API token handling#14902
idoshabi07 wants to merge 1 commit into
Azure:masterfrom
idoshabi07:ai-scan/mcas-secret

Conversation

@idoshabi07

Copy link
Copy Markdown
Contributor

Summary

Moves the MCAS token into a secure workflow parameter, removes its plaintext ARM variable, and masks the authenticated HTTP action data.

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:11
@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.

Updates the MCAS playbook ARM template to handle the MCAS API token as a secret and reduce exposure in Logic App run history.

Changes:

  • Changes the ARM MCASAPIToken parameter type to a secure type and removes the plaintext-derived ARM variable.
  • Introduces a Logic App workflow parameter for the token and uses it when constructing the Authorization header.
  • Adds runtimeConfiguration.secureData to mask HTTP action inputs/outputs.

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

"MCASAPIToken": {
"defaultValue": "yourMCAS-API-Token",
"type": "String"
"type": "securestring"
Comment on lines +85 to +88
},
"MCASAPIToken": {
"defaultValue": "[parameters('MCASAPIToken')]",
"type": "SecureString"
@v-shukore

Copy link
Copy Markdown
Contributor

Hi idoshabi07, can we proceed to merge this PR. Thanks!

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