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

DRIVERS-2415 Use a certfile for Azure OIDC login #535

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

blink1073
Copy link
Member

https://learn.microsoft.com/en-us/cli/azure/azure-cli-sp-tutorial-7?tabs=bash#reset-credentials-returning-output-to-the-console-and-log-file

After being prompted by Azure:

ERROR: AADSTS7000222: The provided client secret keys for app 'xxx' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds.

@blink1073 blink1073 requested a review from kevinAlbs October 28, 2024 12:41
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM with suggested check.

@@ -27,8 +28,12 @@ if [ ! -f ./secrets-export.sh ]; then
fi
source ./secrets-export.sh

echo "${AZUREOIDC_CERT}" | base64 --decode > $AZUREKMS_CERTFILE
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest adding check for AZUREOIDC_CERT in the "Ensure required variables are set" block above.

Copy link
Member Author

Choose a reason for hiding this comment

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

The cert is found from the vault, the only required manual variable for this test is AZUREOIDC_VMNAME_PREFIX.

@blink1073 blink1073 merged commit dfff428 into mongodb-labs:master Oct 29, 2024
61 checks passed
@blink1073 blink1073 deleted the azure-certs branch October 29, 2024 15:48
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.

2 participants