mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
auth: invalidate every token in disabling auth
This commit is contained in:
parent
8216fdc59f
commit
66107b8653
@ -184,6 +184,10 @@ func (as *authStore) AuthDisable() {
|
|||||||
as.enabled = false
|
as.enabled = false
|
||||||
as.enabledMu.Unlock()
|
as.enabledMu.Unlock()
|
||||||
|
|
||||||
|
as.simpleTokensMu.Lock()
|
||||||
|
as.simpleTokens = make(map[string]string) // invalidate all tokens
|
||||||
|
as.simpleTokensMu.Unlock()
|
||||||
|
|
||||||
plog.Noticef("Authentication disabled")
|
plog.Noticef("Authentication disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user