Skip to content

GODRIVER-2061 Test redaction of replies of security sensitive commands #703

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 2 commits into from
Jul 15, 2021
Merged

GODRIVER-2061 Test redaction of replies of security sensitive commands #703

merged 2 commits into from
Jul 15, 2021

Conversation

benjirewis
Copy link
Contributor

GODRIVER-2061

Syncs the redacted commands spec tests. These tests have been updated to make a best effort at asserting that replies to security sensitive commands are redacted. The Go driver already has the correct behavior (reply redaction happens here), so no code changes are necessary.

Adds workaround for empty Reply fields in verifyCommandEvents; it is almost identical to the existing workaround for empty Command fields here.

Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM

@benjirewis benjirewis merged commit 9dde33f into mongodb:master Jul 15, 2021
faem pushed a commit to kubedb/mongo-go-driver that referenced this pull request Mar 17, 2022
@benjirewis benjirewis deleted the replyRedaction.2061 branch October 24, 2022 20:13
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.

2 participants