Authentication with etcd 3.3.* #15404
q-llewellynthomas
started this conversation in
General
Replies: 2 comments 3 replies
-
The root user should have the root role, it can be initialized like below:
But I strongly recommend to use the latest 3.5.x. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I figured out the solution to my problem:
Without that and using any version of etcd lower than 3.4 it defaults to version 2 of the API, which has no affect on V3 of the api that our client code is using. Setting auth with etcdctl on v2, means it's not set on v3 that our client code uses. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm running etcd 3.3.27 with docker:
I can then run exec on the container and enable auth:
docker-compose up
docker exec -it etcd bash
And then
And it appears that auth is enabled, but if I make a post request to create a token, I get a message saying auth is not enabled:
Response:
Is there something I'm missing?
I noticed you don't have any instructions on adding auth for 3.3 versions, but only 2.3 and then 3.5.
Thanks
Llewellyn
Beta Was this translation helpful? Give feedback.
All reactions