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

Bootstrapping ACL's without a fully setup cluster? #6706

Open
valarauca opened this issue Oct 29, 2019 · 1 comment
Open

Bootstrapping ACL's without a fully setup cluster? #6706

valarauca opened this issue Oct 29, 2019 · 1 comment
Labels
theme/acls ACL and token generation type/enhancement Proposed improvement or new feature

Comments

@valarauca
Copy link

Hello!

I was wondering if there is a method to bootstrap tokens before cluster initialization. Namely the token could be distributed to the consul-agent-proxies, and consul-agent-servers before initialization.

The current process is a bit messy at it requires a partial bootstrap of the system, then a rolling restart while configurations are re-generated as the ACL system is brought online. At least this my take away from this section.

This is a large amount of fiction, which seems unnecessary as the existing ServiceDefination structure has fields for these values, and -token allow for them to readily passed through.

But to my surprise when I try to create a bootstrap token

valarauca@valarauca:~/Documents/consul$ ./consul acl bootstrap
Failed ACL bootstrapping: Put http://127.0.0.1:8500/v1/acl/bootstrap: dial tcp 127.0.0.1:8500: connect: connection refused

sigh


Short of a full feature request, what code would need to be duplicated, or studied to simply provide "valid tokens" initially during bootstrap?

Where would these tokens need to be provided (so consul-server will store them in its "pool" during initialization)?

I'm aware this process isn't likely untested, unproven, and unstable. But I am nevertheless interested in making this work, and possibly assisting by contributing patches to ensure it works.

@schristoff schristoff added type/enhancement Proposed improvement or new feature theme/acls ACL and token generation labels Nov 5, 2019
@vtzan
Copy link

vtzan commented Dec 2, 2019

Dear Team,

This is a great feature. I saw the you have closed this #6706 and #6743
Is this going to be considered as a feature request or it is considered a best practice from you
and is going to stay as is?

thank you in advance
Vasilios Tzanoudakis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/acls ACL and token generation type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

3 participants