-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS error when using HTTPS/TLS URL (not permitted for non-TLS protected (non-https) URLs.) #9534
Comments
Thanks for the report @nofunatall - I will investigate this today :) |
Sorry for the delay @nofunatall! |
Update: Therefore, when we hit the TLS check in the BearerTokenCredentialsPolicy the request is deemed invalid. Details on the Batch request formatting are here: |
I suggest we don't apply this check when the URL is partial (parse and check the scheme, instead of startswith) |
@lmazuel, @xiangyan99 - did we land on a solution for this issue? |
Yes, waiting for #9821 to make it to azure-core (we missed the 1.3 timeline) |
This fix has been merged into master and will ship with the next release :) |
Should we close this issue now? |
Yes :) |
Is this fix going out soon (1.4.*) - or is it not yet known when this will be released? I am still experiencing it in |
Thanks @vsalvino - I had forgotten that the blobs update hadn't actually been released yet. Re-opening for now. |
Released part of 12.3.1 (see tags of this commit) |
Windows 11 preview I am getting this same error when trying to access Synapse
This is the exception -> azure.core.exceptions.ServiceRequestError: Bearer token authentication is not permitted for non-TLS protected (non-https) URLs. |
That's by design in this case. Your All that said, I think this is still an incorrect value. SynapseManagementClient manages Synapse resources via Azure Resource Management (ARM). |
No I was simply trying to setup Synapse using python SDK. This is my first time trying to do something on azure and did not really understand the details. https://management.azure.com works in this case. Thanks |
Ubuntu 19.10
Linux rio-t460p 5.3.0-26-generic #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Python 3.7.5
azure-core==1.2.0
azure-identity==1.2.0
azure-storage-blob==12.1.0
Describe the bug
When trying to do a batch delete blob using a blob client created using a HTTPS URL the code errors with:
This same blob client connection can successfully be used to list blobs in a container.
The credentials used to create the client are service principal with rbac (client/secret/tenant) and the role is set to "Storage Blob Data Owner".
Steps to reproduce
Here is some example code to reproduce the error:
Container endpoint:
print(container_client.primary_endpoint)
The text was updated successfully, but these errors were encountered: