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

PYTHON-2371 Document expected masterKey fields for new KMS providers #125

Merged

Conversation

prashantmital
Copy link
Contributor

I overlooked adding these in #118

@kevinAlbs I did the best I could to add a brief description for each of these fields. It would be helpful if you could give it a quick read and give your feedback.

Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

Can you update MongoCryptOptions's kms_providers documentation as well?

following fields::

- `keyVaultEndpoint` (string): Host with optional port, e.g.
"example.vault.azure.net".
Copy link
Member

Choose a reason for hiding this comment

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

Nit: suggest moving keyVaultEndpoint to the end to be consistent with aws "endpoint" and gcp "endpoint". Also it's a bit odd that this field is named keyVaultEndpoint instead of just "endpoint". Is there a reason for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have not placed it as you have suggested because for azure this is a required field, whereas for other KMS providers it is optional (generally we list required options before listing the optional ones).
As for why the field is named keyVaultEndpoint and not endpoint, I just used the same name that we intend to pass to libmongocrypt - this is also the name for this option in the spec. @kevinAlbs should be able to shed some light on why it was so named.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, can you add "Required." for this option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@ShaneHarvey ShaneHarvey 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 a minor suggestion.

following fields::

- `keyVaultEndpoint` (string): Host with optional port, e.g.
"example.vault.azure.net".
Copy link
Member

Choose a reason for hiding this comment

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

Okay, can you add "Required." for this option?

@prashantmital prashantmital merged commit 62be58f into mongodb:master Oct 23, 2020
@prashantmital prashantmital deleted the PYTHON-2371/document-DataKeyOpts branch October 23, 2020 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants