-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
server/auth: users/authentication data not loaded on member startup #14355
Comments
IMO this is a critical issue, much more so than I initially thought it to be. @ahrtr @mitake @serathius Actually I stand corrected, this issue will break ANY combination of
|
To also make sure this didn't exist before that commit, just pick a commit before this
|
I'm trying to work on a fix, just wanted to bring this to your/communities attention. Thanks. |
Thanks @vivekpatani reporting this. Confirmed that I can reproduce this even on
When you add another user or role, then the issue disappear. The reason should be that etcd doesn't load the permission correctly on startup. cc @mitake |
I just checked the source code, and it seems that etcd doesn't load the permission at all on startup. Instead, it just load on receiving new auth requests, i.e. authEnable/Disable, adding/Deleting users/roles etc.. It should be a minor fix although it's a major issue. |
Thanks for confirming and the insight. @ahrtr can you point me to the code you're looking at? Do you want me to work on this or would you like to take this up? Just want to make sure we're not duplicating work. |
@vivekpatani you just need to call refreshRangePermCache on etcd startup. Please feel free to deliver a PR for this. |
Thanks @ahrtr will do! |
So sorry for missing such a large issue… thanks for reporting @vivekpatani |
- permissions were incorrectly loaded on restarts. - etcd-io#14355
Once approved, will also backport to 3.4/3.5. Thanks. |
@vivekpatani yeah, but I should prepare some mechanisms like e2e testing for preventing similar issue in future… |
- permissions were incorrectly loaded on restarts. - etcd-io#14355 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
@ahrtr @serathius should we close this now? |
Thanks @vivekpatani Resolved in 3.4/3.5/main. |
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
- permissions were incorrectly loaded on restarts. - etcd-io#14355 - Backport of etcd-io#14358 Signed-off-by: vivekpatani <[email protected]>
What happened?
Run into issue.
What did you expect to happen?
User/Auth to work seamlessly/without issues.
How can we reproduce it (as minimally and precisely as possible)?
Setup
Docker etcd server
Docker etcd client
Shutdown the Docker etcd server by pressing Ctrl + C and typing exit and return
Docker etcd server - restart
Docker etcd client - restart
Anything else we need to know?
Working on this, trying to fix this.
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
paste your configuration here
Etcd debug information (please run commands blow, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output
The text was updated successfully, but these errors were encountered: