Skip to content
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

Use correct DNS suffix for MySQLAADUser #1499

Merged
merged 2 commits into from
May 21, 2021

Conversation

matthchr
Copy link
Member

What this PR does / why we need it:
Fix bug where the public DNS suffix was always used even in nonpublic environments.

Closes #1496

@matthchr matthchr force-pushed the aso/mysqlaaduser-natcloud-fix branch from 7d5d96a to 642c0d5 Compare May 20, 2021 21:41
@matthchr
Copy link
Member Author

I tested this manually and confirmed when the AZURE_CLOUD_ENV is set to AzureUSGovernmentCloud we correctly return the mysql.database.usgovcloudapi.net value now.

As with other AAD things this is a bit tricky to test in an automated fashion with our current test infrastructure.

@codecov-commenter
Copy link

Codecov Report

Merging #1499 (16ecdfe) into master (105f179) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1499   +/-   ##
=======================================
  Coverage   62.17%   62.17%           
=======================================
  Files         163      163           
  Lines       10739    10739           
=======================================
  Hits         6677     6677           
  Misses       3422     3422           
  Partials      640      640           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 105f179...16ecdfe. Read the comment docs.

@matthchr matthchr merged commit 6ba28a5 into Azure:master May 21, 2021
@matthchr matthchr deleted the aso/mysqlaaduser-natcloud-fix branch May 21, 2021 03:11
babbageclunk pushed a commit to babbageclunk/azure-service-operator that referenced this pull request May 23, 2021
Co-authored-by: George Pollard <gpollard@microsoft.com>
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.

Bug: MySQLAADUser doesn't use correct DB URL in national clouds
4 participants