mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: support creating a user without password
This commit adds a feature for creating a user without password. The purpose of the feature is reducing attack surface by configuring bad passwords (CN based auth will be allowed for the user). The feature can be used with `--no-password` of `etcdctl user add` command. Fix https://github.com/coreos/etcd/issues/9590
This commit is contained in:
committed by
Hitoshi Mitake
parent
dc6885d73f
commit
5a67dd788d
@@ -203,7 +203,7 @@ func appendNormalIRREnts(ents *[]raftpb.Entry) {
|
||||
|
||||
irrauthenticate := &etcdserverpb.InternalAuthenticateRequest{Name: "myname", Password: "password", SimpleToken: "token"}
|
||||
|
||||
irrauthuseradd := &etcdserverpb.AuthUserAddRequest{Name: "name1", Password: "pass1"}
|
||||
irrauthuseradd := &etcdserverpb.AuthUserAddRequest{Name: "name1", Password: "pass1", Options: &authpb.UserAddOptions{NoPassword: false}}
|
||||
|
||||
irrauthuserdelete := &etcdserverpb.AuthUserDeleteRequest{Name: "name1"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user