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

ACL Token changed on new leader election #391

Closed
calvn opened this issue Oct 9, 2014 · 3 comments
Closed

ACL Token changed on new leader election #391

calvn opened this issue Oct 9, 2014 · 3 comments

Comments

@calvn
Copy link
Member

calvn commented Oct 9, 2014

There is a bug were ACL tokens get tampered when a server cluster leader leaves and new elections occur. I can reproduce this occurrence every time.

ACL token before leader re-election:

   {
        "CreateIndex": 3093,
        "ModifyIndex": 3093,
        "ID": "b8353b8d-d366-6f28-782d-f5bb89ae90d3",
        "Name": "git2consul Token",
        "Type": "client",
        "Rules": "{ \"key\": { \"\": { \"policy\": \"write\" } } }"
    }

ACL token after leader re-election:

    {
        "CreateIndex": 3093,
        "ModifyIndex": 3093,
        "ID": "44c4896a-1001-e686-3430-6246e14f0c09",
        "Name": "git2consul Token",
        "Type": "client",
        "Rules": "{ \"key\": { \"\": { \"policy\": \"write\" } } }"
    }
@armon
Copy link
Member

armon commented Oct 9, 2014

I've confirmed this. Working on it now!

@armon
Copy link
Member

armon commented Oct 9, 2014

Fixed in master

@armon armon closed this as completed Oct 9, 2014
@calvn
Copy link
Member Author

calvn commented Oct 9, 2014

Thank you!

                               __                            
  _________  ____  _______  __/ /   __  __________  _____    
 / ___/ __ \/ __ \/ ___/ / / / /   / / / / ___/ _ \/ ___/    
/ /__/ /_/ / / / (__  ) /_/ / /   / /_/ (__  )  __/ /        
\___/\____/_/ /_/____/\__,_/_/____\__,_/____/\___/_/         
                            /_____/                          

duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
* Minor changelog formatting
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

2 participants