-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(NODE-5050): support GCP automatic credential fetch for CSFLE #3574
Conversation
7dd92ef
to
d2e92fc
Compare
d2e92fc
to
d0064a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really minor comments. Nice work!
@@ -663,6 +663,13 @@ BUILD_VARIANTS.push({ | |||
tasks: ['serverless_task_group'] | |||
}); | |||
|
|||
BUILD_VARIANTS.push({ | |||
name: 'rhel8-test-gcp-kms', | |||
display_name: 'GCP KMS Test', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display_name: 'GCP KMS Test', | |
display_name: 'FLE KMS Refresh Tests', |
we will soon have both AWS and Azure as well - maybe we can just have a generic task group?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you'll be able to reuse this variant, it's specific to GCP / GCP setup scripts. I tried to use the scripts on our typical rhel8 setup but it fails, it needs to be on debian11, so azure might have a diff config too (windows? 😱)
echo "${testgcpkms_key_file}" > ./testgcpkms_key_file.json | ||
export GCPKMS_KEYFILE=./testgcpkms_key_file.json | ||
|
||
"$GCPKMS_DRIVERS_TOOLS/.evergreen/csfle/gcpkms/create-and-setup-instance.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps dumb question – does this task also start a server? And is that server always a standalone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Bailey Pearson <bailey.pearson@mongodb.com>
Description
What is changing?
test-gcpkms-task
that uploads the driver to a GCP instance and runs success testtest-gcpkms-fail-task
that runs locally on EVG and tests for failure{accessToken:string}
types toazure
andgcp
credential types{}
empty credential types toaws
andgcp
What is the motivation for this change?
Support GCP KMS auto credential fetching.
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript