question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppConfiguration can't auth in Germany West Central cloud using connection string?

See original GitHub issue

There was a bug reported for Go SDK, when AppConfig client couldn’t authorize in Germany West Central cloud using the connection string: https://github.com/Azure/azure-sdk-for-go/issues/17424

The fix is to use and sign Date header instead of x-ms-date (the Go PR is linked in the Go issue, it is a 2-line change).

I searched your code base for "SignedHeaders" to easily find the place that handles HMAC auth, and it looks like you’re also using x-ms-date header instead of Date (and that’s what the AppConfig docs currently say you should do - https://docs.microsoft.com/en-us/azure/azure-app-configuration/rest-api-authentication-hmac, so if it is confirmed that your SDK is affected, we need to get the doc updated as well).

Java and .NET SDKs are currently using Date header instead of x-ms-date for AppConfiguration auth.

I am sorry that at this moment I cannot tell you for sure that you are affected by this, but I have reasons to think that you should be, based on the code, and the fix that I am making for the Go SDK. Maybe I will be able to confirm it some time later, or maybe you can give it a try, if you have your dev environment set up. The only thing you need is to create an azure app configuration in German cloud, get the connection string for it, then write a code to create AppConfig client, and try to create or read configuration setting, it should fail. But if you do the same for App Configuration deployed to West US, all will work fine.

https://github.com/Azure/azure-sdk-for-python/blob/c8291ac6cb0dbd865da03a88dd2bcb9279e2c4a6/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_requests.py

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
YalinLi0312commented, Nov 15, 2022

Thanks @antkmsft , I’ll try to reproduce the problem asap.

1reaction
antkmsftcommented, Nov 4, 2022

This was reproing in Germany West Central back in April. Now it no longer repros, both Date and x-ms-date are fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppConfiguration can't auth in Germany West Central cloud using ...
The only thing you need is to create an azure app configuration in German cloud, get the connection string for it, then write...
Read more >
Connect a web app to Azure App Configuration with Service ...
Connection string. In this tutorial, use the Azure CLI to complete the following tasks: Set up Azure resources; Create a connection between a ......
Read more >
Issues · Azure/azure-sdk-for-python · GitHub
AppConfiguration can't auth in Germany West Central cloud using connection string? App Configuration Azure.ApplicationModel.Configuration bug This issue ...
Read more >
401 Error when using Azure App Configuration from Angular 9 ...
SO THREAD: Azure App Config HMAC authentication returns Unauthorized error & Angular MSAL AD 401 Unauthorized in Angular App.
Read more >
Understand data residency - Atlassian Support
Data residency gives you control over where your in-scope product data for Jira Software, Jira Service Management, and Confluence is hosted.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found