You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no "global" sanitizer that sanitizes storage account names from request urls.
This leaves my recording un-replayable.
In recording mode, the code receives the sanitized request and tries to send a subsequent request to a URL it builds with the sanitized values: https://sanitized.blob.core.windows.net. But the recording stored an unsanitized URL for that subsequent request, https://account-name.blob.core.windows.net, so the proxy is unable to find a match.
To Reproduce
Steps to reproduce the behavior:
Succesfully record a test in live mode that:
Fetches some response with details about a storage account
ERROR root:proxy_fixtures.py:312
-----Test proxy playback error:-----
Unable to find a record for the request PUT https://sanitized.blob.core.windows.net/d49eda6a-ab96-4d00-b108-33768a3d0aee-azureml-blobstore/LocalUpload/0e7abff4dcb2ddd489d3e72fa2039bf6/README.md?sv=2021-10-04&si=azureml-system-datastore-policy&sr=c&sig=Sanitized
Method doesn't match, request <PUT> record <HEAD>
Uri doesn't match:
request <https://sanitized.blob.core.windows.net/d49eda6a-ab96-4d00-b108-33768a3d0aee-azureml-blobstore/LocalUpload/0e7abff4dcb2ddd489d3e72fa2039bf6/README.md?sv=2021-10-04&si=azureml-system-datastore-policy&sr=c&sig=Sanitized>
record <https://account-name.blob.core.windows.net/d49eda6a-ab96-4d00-b108-33768a3d0aee-azureml-blobstore/LocalUpload/0e7abff4dcb2ddd489d3e72fa2039bf6/README.md?sv=2021-10-04&si=azureml-system-datastore-policy&sr=c&sig=Sanitized>
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
xiangyan99
added
EngSys
This issue is impacting the engineering system.
test-proxy
Anything relating to test-proxy requests or issues.
and removed
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
EngSys
This issue is impacting the engineering system.
labels
May 2, 2024
Hi @kdestin, I have good news: Paul merged an update to our tooling that adds the ability to remove sanitizers (#35385), so there should now be a better solution than your current workaround.
Some sanitizers were already disabled for ML as part of the update:
If you do the same with the accountName body key sanitizer, you should be able to remove the additional sanitizer you added as a workaround. The ID for the central sanitizer is "AZSDK3478"; here's where it's registered by the test proxy.
Describe the bug
#35196 introduced a collection of "global" sanitizers that scrub secrets from recordings as they are written to disk.
I'm currently writing a test, where the code path involves:
Fetching details about a storage account
Usage those details to build the uri for the next request
This sanitizer will redact the storage account name in the recording from the response in Step 1.
azure-sdk-for-python/tools/azure-sdk-tools/devtools_testutils/proxy_startup.py
Line 379 in 511aef3
There is no "global" sanitizer that sanitizes storage account names from request urls.
This leaves my recording un-replayable.
In recording mode, the code receives the sanitized request and tries to send a subsequent request to a URL it builds with the sanitized values:
https://sanitized.blob.core.windows.net
. But the recording stored an unsanitized URL for that subsequent request,https://account-name.blob.core.windows.net
, so the proxy is unable to find a match.To Reproduce
Steps to reproduce the behavior:
Succesfully record a test in live mode that:
https://account-name.blob.core.windows.net/d49eda6a-ab96-4d00-b108-33768a3d0aee-azureml-blobstore/path/to/files
Attempt to re-run the test in recording mode
Expected behavior
The test should run off the recording, and pass
Actual behavior
The test fails
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: