-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Check that all required fields in Transit API are present. #14074
Conversation
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.
lgtm!
@@ -79,6 +79,20 @@ func TestTransit_Trim(t *testing.T) { | |||
} | |||
doErrReq(t, req) | |||
|
|||
// Set min_encryption_version to 4 |
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.
nit: typo 4 -> 0
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.
Fixed, thanks for the review!
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.
Looks great, very thorough.
4b789fe
to
2ba24e3
Compare
Ensure that an error is returned if any required field is nil or missing.
This fixes an issue that results in the empty string being encrypted when the plaintext is nil.
See VAULT-2837 for details.