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

[rhcos-4.12] mantle: overhaul azure authentication #3364

Merged
merged 1 commit into from Feb 21, 2023

Conversation

dustymabe
Copy link
Member

@dustymabe dustymabe commented Feb 17, 2023

This is a partial backport of 50f6205. Rather than doing any library changes here (since the versions of libraries on these older branches are mostly frozen in time) we are just picking up the changes to the credentials file we use as input where we now have a single azureCreds.json rather than two (azureProfile.json and azureAuth.json).

In order to support this I still need to get the information back into a AZURE_AUTH_LOCATION formatted file for the old library to be able to read the data. For now we'll just write it out to a temporary file that gets cleaned up immediately after use. This isn't great, but the limited usage here only for older branches executed in our downstream pipeline makes it less of a concern.

@dustymabe
Copy link
Member Author

@jlebon, see what you think about this as a in between solution for a backport of #3349

@dustymabe
Copy link
Member Author

I managed to test this now. Also verified the patch from this branch applies all the way back to 4.9. I'll open those PRs for backport once this one merges.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

Seems sane to me!

This is a partial backport of 50f6205. Rather than doing any
library changes here (since the versions of libraries on these
older branches are mostly frozen in time) we are just picking up
the changes to the credentials file we use as input where we now
have a single azureCreds.json rather than two (azureProfile.json
and azureAuth.json).

In order to support this I still need to get the information back
into a AZURE_AUTH_LOCATION formatted file for the old library to be
able to read the data. For now we'll just write it out to a temporary
file that gets cleaned up immediately after use. This isn't great,
but the limited usage here only for older branches executed in our
downstream pipeline makes it less of a concern.
@dustymabe
Copy link
Member Author

Ok this has passed all tests, but I need to update the commit message to reference the commit ID that actually merged (50f6205). I'll do a force push and then merge this.

@dustymabe dustymabe merged commit 92daef1 into coreos:rhcos-4.12 Feb 21, 2023
@dustymabe dustymabe deleted the dusty-412-azure-backport branch February 21, 2023 20:40
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.

None yet

2 participants