Merge pull request #9730 from mitake/user-w-colon

etcdctl: add --password flag to the subcommand user add
This commit is contained in:
Gyuho Lee
2018-05-29 11:14:46 -07:00
committed by GitHub
4 changed files with 46 additions and 21 deletions

View File

@@ -32,7 +32,7 @@ Creating a user is as easy as
$ etcdctl user add myusername
```
Creating a new user will prompt for a new password. The password can be supplied from standard input when an option `--interactive=false` is given.
Creating a new user will prompt for a new password. The password can be supplied from standard input when an option `--interactive=false` is given. `--new-user-password` can also be used for supplying the password.
Roles can be granted and revoked for a user with:
@@ -157,6 +157,13 @@ The password can be taken from a prompt:
$ etcdctl --user user get foo
```
The password can also be taken from a command line flag `--password`:
```
$ etcdctl --user user --password password get foo
```
Otherwise, all `etcdctl` commands remain the same. Users and roles can still be created and modified, but require authentication by a user with the root role.
## Using TLS Common Name