-
Notifications
You must be signed in to change notification settings - Fork 458
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
cockroach user command #838
Conversation
Review status: 0 of 9 files reviewed at latest revision, 3 unresolved discussions. create-users.md, line 57 at r1 (raw file):
It might make it clearer if we specify that this is the user being created. What do you think? create-users.md, line 65 at r1 (raw file):
This is slightly incorrect. The authentication method for a client is not chosen based on a user's password. Rather, if a user has a blank password, they must use certificate authentication, but if a user does have a password they can choose to use either certificate or password authentication. create-users.md, line 94 at r1 (raw file):
Missing a "to" between "want" and "allow". Comments from Reviewable |
dc51094
to
abe2c58
Compare
Review status: 0 of 15 files reviewed at latest revision, 3 unresolved discussions. create-users.md, line 57 at r1 (raw file):
|
Some belated comments here for @asubiotto; the docs brought something to my attention that hadn't been clear before. Review status: 0 of 15 files reviewed at latest revision, 5 unresolved discussions. create-users.md, line 57 at r2 (raw file):
I mentioned this in another PR, but I'd like to see us use a separate flag create-users.md, line 94 at r2 (raw file):
Passing Comments from Reviewable |
Review status: 0 of 15 files reviewed at latest revision, 5 unresolved discussions. create-users.md, line 57 at r2 (raw file):
|
abe2c58
to
4c18232
Compare
3f8c7b2
to
fe2c211
Compare
Review status: 0 of 18 files reviewed at latest revision, 8 unresolved discussions. create-and-manage-users.md, line 3 at r3 (raw file):
Update to include passwords? create-and-manage-users.md, line 53 at r3 (raw file):
This flag is required to initiate any database connection with the secure cluster. Not sure how to phrase that in a user-friendly way but I think it's a bit confusing if we state this but omit that it's necessary for "ls", "get", and "rm". create-and-manage-users.md, line 70 at r3 (raw file):
Accidental extra "authentication" in the title. Also maybe after "CREATE USER", do you think it would make sense to mention the password flag from the set user command as well. Comments from Reviewable |
Review status: 0 of 18 files reviewed at latest revision, 8 unresolved discussions. create-and-manage-users.md, line 57 at r2 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> I agree. For now I think switching to a boolean flag to enable/disable prompting and removing the "-" functionality is enough. I'll work on the file functionality as soon as I can.create-and-manage-users.md, line 94 at r2 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> Right, that makes sense. The only thing is that passing password without a value and not passing anything seem to be equivalent unless I'm missing something. We could switch it to a boolean flag which would be kind of nice so we don't save the passed in password to the cli history.create-and-manage-users.md, line 3 at r3 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> Update to include passwords?create-and-manage-users.md, line 53 at r3 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> This flag is required to initiate any database connection with the secure cluster. Not sure how to phrase that in a user-friendly way but I think it's a bit confusing if we state this but omit that it's necessary for "ls", "get", and "rm".create-and-manage-users.md, line 70 at r3 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> Accidental extra "authentication" in the title. Also maybe after "CREATE USER", do you think it would make sense to mention the password flag from the set user command as well.Comments from Reviewable |
fe2c211
to
4ddacd8
Compare
@jseldess Can I get a copy edit from you? |
Looks great. @sploiselle. Just a few questions/comments. Also, can you add the Review status: 0 of 18 files reviewed at latest revision, 12 unresolved discussions. create-and-manage-users.md, line 22 at r4 (raw file):
nit: Periods at the end of each usage statement. create-and-manage-users.md, line 63 at r4 (raw file):
I think this could be clarified a bit. Based on a brief conversation with Alfonso, a user other than root can be granted privileges to create users. Such a user would pass her username in this flag when creating users. With this in mind, I think we should also state somewhere that running create-user.md, line 20 at r4 (raw file):
Is this true? Based on a brief conversation with Alfonso, it sounded like a user could be granted privileges to create users for others... grant.md, line 47 at r4 (raw file):
Maybe link to the user docs here. Comments from Reviewable |
Review status: 0 of 18 files reviewed at latest revision, 14 unresolved discussions. create-and-manage-users.md, line 49 at r3 (raw file):
s/cert/user? create-and-manage-users.md, line 57 at r3 (raw file):
This should be "set the create-user.md, line 20 at r4 (raw file): Previously, jseldess wrote…> Is this true? Based on a brief conversation with Alfonso, it sounded like a user could be granted privileges to create users for others...Comments from Reviewable |
c5cef78
to
d00c428
Compare
@jseldess Added that (another good catch) and your other edits. Review status: 0 of 19 files reviewed at latest revision, 14 unresolved discussions. create-and-manage-users.md, line 49 at r3 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> s/cert/user?create-and-manage-users.md, line 57 at r3 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> This should be "set the `--ca-cert` and `--cert` and `--key`, or `--password`, depending on the authentication method you want to use." Or something like that. Or maybe remove the flags you have to set if not specifying `--insecure`. I think it's outside the scope of the description.create-and-manage-users.md, line 22 at r4 (raw file): Previously, jseldess wrote…> nit: Periods at the end of each usage statement.create-and-manage-users.md, line 63 at r4 (raw file): Previously, jseldess wrote…> I think this could be clarified a bit. Based on a brief conversation with Alfonso, a user other than root can be granted privileges to create users. Such a user would pass her username in this flag when creating users. > > With this in mind, I think we should also state somewhere that running `cockroach user set` requires specific privileges.create-user.md, line 20 at r4 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…> It used to be true. I forgot to update sean on this.grant.md, line 47 at r4 (raw file): Previously, jseldess wrote…> Maybe link to the user docs here.Comments from Reviewable |
Note to update the forum when this merges. |
Reviewed 13 of 18 files at r3, 1 of 2 files at r4, 6 of 6 files at r5. create-and-manage-users.md, line 55 at r5 (raw file):
Does this flag have any particular purpose for Comments from Reviewable |
d00c428
to
a325635
Compare
Review status: 18 of 19 files reviewed at latest revision, 12 unresolved discussions. create-and-manage-users.md, line 55 at r5 (raw file): Previously, jseldess wrote…> Does this flag have any particular purpose for `cockroach user`? It shows up in `cockroach zone` as well, though it's not useful there either. In the docs there, we just say "Not currently implemented."Comments from Reviewable |
Merge held until a beta is released with the feature as it's documented in this PR. |
cockroachdb/cockroach#10921 was resolved somewhere in the source; users besides |
Just update instances where we refer to who can create users. Review status: 18 of 19 files reviewed at latest revision, 12 unresolved discussions. Comments from Reviewable |
a325635
to
b84321d
Compare
@sploiselle, can you wrap this up and merge this morning, so these docs are in please for the release? |
Includes documentation for
cockroach user
, which creates password auth.Supporting documentation also included.
Closes #870
Closes #741
Closes #474
Closes #336
This change is