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

GODRIVER-2963 Use more environment variables in Azure KMS test #1367

Merged
merged 6 commits into from
Aug 30, 2023

Conversation

kevinAlbs
Copy link
Contributor

GODRIVER-2963

Summary

  • Use environment variables for the keyName and keyVaultVndpoint in the Azure KMS test.

Changes were verified with this patch: https://spruce.mongodb.com/version/64ee53e7c9ec449533606004

Background & Motivation

The test-azure-kms task currently uses credentials and data from a personal MongoDB account.
DRIVERS-2709 gives MongoDB managed credentials for the Azure KMS tests.

AZUREKMS_KEY_NAME and AZUREKMS_KEY_VAULT_ENDPOINT were added as Variables to the Evergreen Projects:

  • mongo-go-driver-cloud
  • mongo-go-driver
  • mongo-go-driver-release
  • mongo-go-driver-previous

The old values were used. After this PR is merged, the Variables can be migrated to the new MongoDB managed values.

@kevinAlbs kevinAlbs requested a review from a team as a code owner August 29, 2023 22:09
@kevinAlbs kevinAlbs requested review from qingyang-hu and removed request for a team August 29, 2023 22:09
@kevinAlbs kevinAlbs changed the title GODRIVER-2963 GODRIVER-2963 Use more environment variables in Azure KMS test Aug 29, 2023
Comment on lines 56 to 57
azurekms_key_name := os.Getenv("AZUREKMS_KEY_NAME")
azurekms_key_vault_endpoint := os.Getenv("AZUREKMS_KEY_VAULT_ENDPOINT")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional: Maybe, we can put these two lines under the if provider == "azure" condition.

@kevinAlbs kevinAlbs merged commit 9c094db into mongodb:master Aug 30, 2023
1 check failed
kevinAlbs added a commit that referenced this pull request Aug 30, 2023
* use environment variables for key_name and key_vault_endpoint

This may prevent future code changes if Azure test data changes.
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