Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Fix HealthCheck auth endpoint for alternate Azure Clouds #39

Merged
merged 3 commits into from
Jul 19, 2022

Conversation

mjhilton
Copy link
Contributor

@mjhilton mjhilton commented Jul 19, 2022

Background

We recently fixed a problem where the configured proxy was not respected when performing Azure App Service target health checks. This involved using a new version of the Azure SDK, because the previous version was causing the bug and Microsoft will not fix it.

In doing so, we introduced OctopusDeploy/Issues#7663, which causes health-checks on Azure Clouds other than Azure Public Cloud to fail. This is because the AuthorityHost for the login process had not been correctly plumbed through to the new SDK client, and it's very hard for people outside those Azure Cloud regions to get access to test against them.

Result

This PR ensures that the AuthorityHost is correctly plumbed through to the SDK Client for the login process, which when adopted into Octopus Server will remediate OctopusDeploy/Issues#7663

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

I didn't pull and run the code but it looks good to me. Thanks for providing the background issues in introduction which made it easier to understand this PR.

source/Calamari.Tests/AzureClientFixture.cs Outdated Show resolved Hide resolved
@mjhilton mjhilton changed the base branch from main to patch/2.2.2 July 19, 2022 02:30
@mjhilton mjhilton changed the base branch from patch/2.2.2 to main July 19, 2022 02:33
@mjhilton mjhilton merged commit ffc2e06 into main Jul 19, 2022
@mjhilton mjhilton deleted the matth/fix-healthcheck-auth-endpoints branch July 19, 2022 04:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy - WebApp Health Check Performed on Server Doesn't Respect Custom Proxy
1 participant