Skip to content
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

anonymous user (i.e. with an empty password) fails #920

Open
dicksnippe opened this issue Nov 26, 2024 · 0 comments
Open

anonymous user (i.e. with an empty password) fails #920

dicksnippe opened this issue Nov 26, 2024 · 0 comments

Comments

@dicksnippe
Copy link

I was trying to create an anonymous user, by specifying an empty passwd:
$ etcdctl user add anonymous:''
(the idea being to limit the anonymous user through RBAC to only some basic read operations)

Creating the user works, but retrieving data does not:
$ etcdctl --user anonymous: get foo
{"level":"warn","ts":"2024-11-26T17:13:40.985591+0100","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:63","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0004b4000/test0wa00:9966","attempt":0,"error":"rpc error: code = InvalidArgument desc = etcdserver: user name is empty"} Error: etcdserver: user name is empty

I think I understand why (etcd-io/etcd#9590) But it would be nice to point this out explicitly in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant