-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-3777): add csfle kmip support #3070
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
Merged
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
b9ac1d4
feat(NODE-3777): add csfle kmip support
durran fe251b1
test(NODE-3777): setup custom kmip server
durran 3bc3be1
test(NODE-3777): update csfle corpus runner
durran 3cb2011
test(NODE-3777): use csfle beta 1
durran 7c0cb72
test(NODE-3777): ensure kmip key is inserted
durran baaa7b3
test(NODE-3777): use csfle beta 2
durran f42fceb
test(NODE-3777): properly setup kmip in runner
durran 6790cab
feat(NODE-3777): pass tls options through to csfle
durran c59415c
test(NODE-377): use env var for kmip certs
durran a0e9c31
test(NODE-3777): adding env vars to evg
durran 625d420
test(NODE-3777): add more test kmip tls opts
durran 6b45146
test(NODE-3777): run csfle tests against pr
durran c7ef16b
test(NODE-3777): add extra temp scripts for csfle
durran 75fb5c2
test(NODE-3777): change custom csfle branch
durran 04f96a4
test(NODE-3777): use git ref for custom branch
durran b84a709
test(NODE-3777): no run against legacy csfle
durran 1c5545a
fix(NODE-3777): fix ts and lint errors
durran 7c48c6b
feat(NODE-3777): setup kmip server for prose tests
durran 92df33a
test(NODE-3777): prose test outline
durran 5d3705a
test(NODE-3777): first batch prose tests
durran 774dc34
test(NODE-3777): remaining test setup for prose tests
durran f930d02
fix(NODE-3777): destroy socks5 socket on end
durran 6205d22
test(NODE-3777): finish csfle prose tests
durran a324bc9
test(NODE-3777): update csfle sha1
durran af92edb
test(NODE-3777): point to libmongocrypt main branch
durran 9c58db6
test(NODE-3777): adding missing 2 prose tests
durran 54e1be4
test(NODE-3777): fix tls prose setup
durran bd71820
test(NODE-3777): fix tls prose setup for aws
durran d55cac6
test(NODE-3777): reorder connect/close
durran fb4f81e
test(NODE-3777): explicitly close client
durran 4a72353
fix(NODE-3777): lint errors and use beta 3
durran 00bb603
fix(NODE-3777): run kms servers on regular tests
durran 321a330
fix(NODE-3777): run kms servers on regular tests
durran 3d98db9
fix(NODE-3777): active venx
durran 7b31407
test(NODE-3777): more missing vars in evg
durran 009900a
fix(NODE-3777): update metadata in prose test
durran a54b2d9
fix(NODE-3777): remove bad test
durran e253a9f
test(NODE-3777): bootstrap kms servers
durran 12b5654
test(NODE-3777): add csfle to lb tests
durran 22d60e0
test(NODE-3777): update lb env
durran 2e08414
test(NODE-3777): run kms server with v1 api tests
durran af1658b
test(NODE-3777): no csfle on lb tests
durran 3659ad6
test(NODE-3777): move options setting
durran cf16503
test(NODE-3777): check topology filter on evg
durran d69646e
test(NODE-3777): dont default to invalid json
durran c68c9e0
test(NODE-3777): force skip in lb mode
durran 3240c74
test(NODE-3777): fix lint errors
durran 5fe9e7a
test(NODE-3777): use subprocess to start kms servers
durran bb42ed8
test(NODE-3777): add kmip docs to test readme
durran 04290ae
test(NODE-3777): skip before blocks in lb mode
durran c4756e6
test(NODE-3777): fix lint errors
durran 27ae5e9
test(NODE-3777): add failure expectations in prose test
durran e5e35ec
test(NODE-3777): bring back shell exec
durran 2f1da7d
test(NODE-3777): use subprocess for kms servers
durran b7846ef
refactor(NODE-3777): cleanup kmsProviders method
durran 8abed87
fix(NODE-3777): lint error
durran 1aaf181
test(NODE-3777): remove unused env var
durran d76c8f8
fix(NODE-3777): no skips in after blocks
durran 06d4148
test(NODE-3777): skip after client creation
durran 696d6fd
fix(NODE-3777): bring back test comment
durran 5cdc33c
test(NODE-3777): update prose test structure
durran 359ab9e
test(NODE-3777): fix custom endpoint tests
durran bbc1336
fix(NODE-3777): fix lint error
durran 3fe42a4
test(NODE-3777): update evg config
durran c8c4d2e
test(NODE-3777): fix custom fle tests
durran 8219832
test(NODE-3777): always bootstrap kms servers
durran dc29d39
test(NODE-3777): skip entire prose test when no applicable
durran 1694bba
test(NODE-3777): move csfle to manual
durran 0635969
test(NODE-3777): csfle runs noauth
durran 2f1c62a
test(NODE-3777): split out csfle config
durran 2c2dbd4
test(NODE-3777): move csfle back to integration
durran f51396c
test(NODE-3777): install csfle for all test runs
durran 207e634
test(NODE-3777): skip kmip test with auth
durran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| cd ${DRIVERS_TOOLS}/.evergreen/csfle | ||
| . ./activate_venv.sh | ||
| # by default it always runs on port 5698 | ||
| ./kmstlsvenv/bin/python3 -u kms_kmip_server.py & | ||
| ./kmstlsvenv/bin/python3 -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/expired.pem --port 8000 & | ||
| ./kmstlsvenv/bin/python3 -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/wrong-host.pem --port 8001 & | ||
| ./kmstlsvenv/bin/python3 -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/server.pem --port 8002 --require_client_cert & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,13 +41,13 @@ if [[ -z "${CLIENT_ENCRYPTION}" ]]; then | |
| unset AWS_ACCESS_KEY_ID; | ||
| unset AWS_SECRET_ACCESS_KEY; | ||
| else | ||
| npm install mongodb-client-encryption@">=2.0.0-beta.0" | ||
| pip install --upgrade boto3 | ||
|
|
||
| # Get access to the AWS temporary credentials: | ||
| echo "adding temporary AWS credentials to environment" | ||
| # CSFLE_AWS_TEMP_ACCESS_KEY_ID, CSFLE_AWS_TEMP_SECRET_ACCESS_KEY, CSFLE_AWS_TEMP_SESSION_TOKEN | ||
| . $DRIVERS_TOOLS/.evergreen/csfle/set-temp-creds.sh | ||
| fi | ||
|
|
||
| npm install mongodb-client-encryption@">=2.0.0-beta.3" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to block this PR but wanna bump this to |
||
|
|
||
| AUTH=$AUTH SINGLE_MONGOS_LB_URI=${SINGLE_MONGOS_LB_URI} MULTI_MONGOS_LB_URI=${MULTI_MONGOS_LB_URI} MONGODB_API_VERSION=${MONGODB_API_VERSION} MONGODB_UNIFIED_TOPOLOGY=${UNIFIED} MONGODB_URI=${MONGODB_URI} LOAD_BALANCER=${LOAD_BALANCER} npm run ${TEST_NPM_SCRIPT} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.