-
Notifications
You must be signed in to change notification settings - Fork 86
CLOUDP-59682: Enable security on C/OM #75
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
Conversation
make fmt check | ||
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$") | ||
|
||
for FILE in $STAGED_GO_FILES |
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.
[qa] Does this piece of code format your files before the commit?
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.
yes, if you install it, it was taking a lot of time in my machine so I changed to only do it for staged files, should improve speed a little
globalOpts: newGlobalOpts(), | ||
} | ||
cmd := &cobra.Command{ | ||
Use: "enable [MONGODB-CR|SCRAM-SHA-256]", |
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.
[qa] why aren't we passing the authentication mechanism as an argument?
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.
what do you mean here exactly?
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.
Could you explain to me what this enable[MONGODB-CR|SCRAM-SHA-256]
mean? Is enable
using an argument which can be set as MONGODB-CR or SCRAM-SHA-256 (I do not think so because you are not setting an argument), or, is the command enable
always used in the form enable [MONGODB-CR|SCRAM-SHA-256]
?
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.
the values can be, MONGODB-CR, SCRAM-SHA-256 or both at the same time, check line 78
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.
Thank you 👍
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, I have just one question
@andreaangiolillo did a small change here so RFAL |
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
Proposed changes
Jira ticket: CLOUDP-59682
Checklist
make fmt
and formatted my code