Skip to content

[Sql] Update test recordings#28997

Merged
isra-fel merged 1 commit intomainfrom
isra-fel-patch-2
Dec 19, 2025
Merged

[Sql] Update test recordings#28997
isra-fel merged 1 commit intomainfrom
isra-fel-patch-2

Conversation

@isra-fel
Copy link
Copy Markdown
Member

Description

Update test recordings of Sql

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings December 19, 2025 01:00
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates test recordings for the SQL module, specifically sanitizing sensitive credentials in the TestExportDatabase test recording file. The change redacts a storage access key that was previously exposed in the test recording.

Key Changes:

  • Redacted the storageKey value from an exposed Azure Storage access key to <REDACTED> in the export database request body
  • Minor JSON formatting update (closing brace placement)

"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDEyYjc4MmQtMjUxMS00YzZkLTk4ZjItM2VhMDFiMWM4M2MzL3Jlc291cmNlR3JvdXBzL3NxbC1pZS1jbWRsZXQtdGVzdC1yZzkwMDcwL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsLWllLWNtZGxldC1zZXJ2ZXI5MDA3MC9kYXRhYmFzZXMvc3FsLWllLWNtZGxldC1kYjkwMDcwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=",
"RequestMethod": "POST",
"RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"uMbXQiW536TvVLN8WyqGtX6xi+TfYlHeJBq+xtxv7Cij0mHgNh9R+4ATpNShO2oUaqF0vBIKNln16ZBJXQ224A==\",\r\n \"storageUri\": \"https://adealgpv2.blob.core.windows.net/container/testdb_ni5.bacpac/sql-ie-cmdlet-db90070.bacpac\",\r\n \"administratorLogin\": \"testuser\",\r\n \"administratorLoginPassword\": \"IEp@ssw0rd2577\",\r\n \"authenticationType\": \"sql\"\r\n}",
"RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"<REDACTED>\",\r\n \"storageUri\": \"https://adealgpv2.blob.core.windows.net/container/testdb_ni5.bacpac/sql-ie-cmdlet-db90070.bacpac\",\r\n \"administratorLogin\": \"testuser\",\r\n \"administratorLoginPassword\": \"IEp@ssw0rd2577\",\r\n \"authenticationType\": \"sql\"\r\n}",
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The administratorLoginPassword value "IEp@ssw0rd2577" is exposed in the test recording. While the storageKey has been properly redacted to "", the administrator password should also be sanitized in test recordings to prevent credential exposure. Consider redacting this sensitive value similar to how the storageKey was handled.

Copilot uses AI. Check for mistakes.
@isra-fel isra-fel merged commit f3bf3c0 into main Dec 19, 2025
18 checks passed
@isra-fel isra-fel deleted the isra-fel-patch-2 branch January 27, 2026 00:37
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.

4 participants