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

Backport of grpc/acl: relax permissions required for "core" endpoints into release/1.14.x #15893

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #15346 to be assessed for backporting due to the inclusion of the label backport/1.14.

The below text is copied from the body of the original PR.


Description

Previously, these endpoints required service:write permission on any service as a sort of proxy for "is the caller allowed to participate in the mesh?".

Now, they're called as part of the process of establishing a server connection by any consumer of the consul-server-connection-manager library, which will include non-mesh workloads (e.g. Consul KV as a storage backend for Vault) as well as ancillary components such as consul-k8s' acl-init process, which likely won't have service:write permission.

So this commit relaxes those requirements to accept any valid ACL token on the following gRPC endpoints:

  • hashicorp.consul.dataplane.DataplaneService/GetSupportedDataplaneFeatures
  • hashicorp.consul.serverdiscovery.ServerDiscoveryService/WatchServers
  • hashicorp.consul.connectca.ConnectCAService/WatchRoots

Overview of commits

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved Consul Bot automated PR

@hc-github-team-consul-core hc-github-team-consul-core merged commit 4ccea91 into release/1.14.x Jan 4, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/boxofrad/relax-permissions/weekly-eternal-husky branch January 4, 2023 14:39
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

Successfully merging this pull request may close these issues.

None yet

3 participants