Skip to content

RUBY-2833 Add KMIP Support #2383

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 4 commits into from
Dec 17, 2021
Merged

Conversation

comandeo
Copy link

No description provided.

@comandeo comandeo force-pushed the 2833-add-kmip-support branch from 9d120d7 to 705341d Compare December 15, 2021 15:41
@comandeo comandeo marked this pull request as ready for review December 15, 2021 15:42
@comandeo comandeo requested a review from p-mongo December 15, 2021 15:42
@comandeo comandeo force-pushed the 2833-add-kmip-support branch from 705341d to 6754792 Compare December 15, 2021 16:00
wait_for_kms_server() {
for i in $(seq 60); do
# Exit code 7: "Failed to connect to host".
if curl -s "localhost:$1"; test $? -ne 7; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it better to require status 0 than anything other than 7?

Copy link
Author

Choose a reason for hiding this comment

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

Some of mock servers we start have bad configurations - wrong certificates, etc. So, curl won't be able to connect to them "good enough" to return 0. Hence check for "anything but Failed to connect".

Copy link
Contributor

Choose a reason for hiding this comment

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

How about adding the -k option in this case?

Copy link
Author

Choose a reason for hiding this comment

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

Just adding -k didnt't work. I end up with this - curl -d '' -X POST -k https://localhost:8002/, which works (== returns 0) for almost all mock servers. Unfortunately, an attempt to connect to mock server with --require_client_cert option will give us error code 56.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, whatever you think is best is good with me.

@comandeo comandeo force-pushed the 2833-add-kmip-support branch from 53b2d73 to 73c3e64 Compare December 16, 2021 14:49
@comandeo comandeo force-pushed the 2833-add-kmip-support branch from 73c3e64 to 6f6f116 Compare December 16, 2021 14:55
@comandeo comandeo merged commit 6ac4655 into mongodb:master Dec 17, 2021
@comandeo comandeo deleted the 2833-add-kmip-support branch December 17, 2021 11:53
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.

3 participants