-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Connect does not work correctly with ACLs when service.ID != service.Name #4619
Comments
This fix has been tested successfully on a real cluster |
Thanks Pierre. This is a slightly broader issue than the fix PR as I mentioned there although that is worth merging for now. The biggest problem is that soon ACLs will be exact-match by default and so even with the fix an ACL allowing I think the correct fix for that is to manage proxy ACLs a little differently based on their destination instead of their actual name, and/or make it easier to grant ACLs for a service and it's proxy. Both need more thought though. We can close this once the PR merges but we'll consider that case again for new ACLs. |
ACL will exact match? |
Prefix will still be possible of course just not the default since it allows too many "footguns" where things have much more access than the operator intended. Will also continue to support existing ACLs without breaking back-compat and provide a simple way to migrate the policies to equivalent new ones if you want to upgrade them in bulk too so don't worry too much. It's more a thing for us to consider since the general default/recommendation would be for precise exact-match service ACLs but we still need connect proxies to work. |
Going to close this as #4620 fixes the immediate issue. Thanks @pierresouchay and @uepoch! |
Overview of the Issue
When using Connect, the
proxy
service uses the ID of the proxied service.So, given a Service:
Consul Connect will create a service:
If ACL for the user is
the proxy will fail to register in the cluster.
Consul info for both Client and Server
Consul 1.2.2 with patches
The text was updated successfully, but these errors were encountered: