Skip to content

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

Merged
merged 3 commits into from
Mar 27, 2020
Merged

CLOUDP-59682: Enable security on C/OM #75

merged 3 commits into from
Mar 27, 2020

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 27, 2020

Proposed changes

Jira ticket: CLOUDP-59682

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

@gssbzn gssbzn requested a review from andreaangiolillo March 27, 2020 16:24
make fmt check
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$")

for FILE in $STAGED_GO_FILES
Copy link
Collaborator

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?

Copy link
Collaborator Author

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]",
Copy link
Collaborator

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?

Copy link
Collaborator Author

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?

Copy link
Collaborator

@andreaangiolillo andreaangiolillo Mar 27, 2020

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]?

Copy link
Collaborator Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you 👍

Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a 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

@gssbzn
Copy link
Collaborator Author

gssbzn commented Mar 27, 2020

@andreaangiolillo did a small change here so RFAL

Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM

@gssbzn gssbzn merged commit cdf4d72 into master Mar 27, 2020
@gssbzn gssbzn deleted the CLOUDP-59682 branch March 27, 2020 17:52
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