Skip to content

Is it normal that leases are granted and kept alive unauthenticated? #18703

Answered by ahrtr
nlyan asked this question in Q&A
Discussion options

You must be logged in to vote

I've noticed that (via the GRPC proxy at least) anybody can create ("grant") and keepalive leases, even if they are not authenticated (do not send the Authorization header)

Currently only leaseRevoke will be checked the permission if the lease is connected to keys; otherwise all other lease requests are not checked the permission.

  1. creates the possibility of some sort of denial of service attack (too many open leases?)

Yes, it's true based on current implementation. Probably we should allow only admin to create leases, but it will be breaking change. Also unfortunately I do not see detailed document on lease.

  1. means anybody with read access to a key can keepalive that value (because…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmhbnz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants