diff --git a/website/content/docs/connect/config-entries/exported-services.mdx b/website/content/docs/connect/config-entries/exported-services.mdx index 33ec668ad0ab..9c0db06e3ab2 100644 --- a/website/content/docs/connect/config-entries/exported-services.mdx +++ b/website/content/docs/connect/config-entries/exported-services.mdx @@ -768,7 +768,7 @@ spec: } ] } - ] + ]S } ``` @@ -776,7 +776,7 @@ spec: -If you experience errors using the wildcard to export services on Consul on Kubernetes, make sure the [service token](consul/docs/security/acl/tokens/create/create-a-service-token) is attached to a policy that grants read access to all namespaces: +If you experience errors using the wildcard to export services on Consul on Kubernetes, make sure the [service token](/consul/docs/security/acl/tokens/create/create-a-service-token) is attached to a policy that grants read access to all namespaces: ```hcl partition "default" { @@ -788,7 +788,7 @@ partition "default" { } partition_prefix "" { - namespace_prefix "" { + namespace_prefix "" {S node_prefix "" { policy = "read" } diff --git a/website/content/docs/connect/dataplane/index.mdx b/website/content/docs/connect/dataplane/index.mdx index 2f16014cac60..e7a386324759 100644 --- a/website/content/docs/connect/dataplane/index.mdx +++ b/website/content/docs/connect/dataplane/index.mdx @@ -15,7 +15,6 @@ This topic provides an overview of Consul Dataplane, a lightweight process for m - Dataplanes on Kubernetes requires Consul K8s v1.0.0 and newer. - Dataplanes on AWS Elastic Container Services (ECS) requires Consul ECS v0.7.0 and newer. - ## What is Consul Dataplane? When deployed to virtual machines or bare metal environments, the Consul control plane requires _server agents_ and _client agents_. Server agents maintain the service catalog and service mesh, including its security and consistency, while client agents manage communications between service instances, their sidecar proxies, and the servers. While this model is optimal for applications deployed on virtual machines or bare metal servers, orchestrators such as Kubernetes and ECS have native components that support health checking and service location functions typically provided by the client agent. @@ -58,7 +57,6 @@ To get started with Consul Dataplane, use the following reference resources: - For Envoy, Consul, and Consul Dataplane version compatibility, refer to the [Envoy compatibility matrix](/consul/docs/connect/proxies/envoy). - For Consul on ECS workloads, refer to [Consul on AWS Elastic Container Service (ECS) Overview](/consul/docs/ecs). - ### Installation @@ -93,6 +91,32 @@ Refer to the following documentation for Consul on ECS workloads: +### Namespace ACL permissions + +If ACLs are enabled, exported services between partitions that use dataplanes may experience errors when you define namespace partitions with the `*` wildcard. Consul dataplanes use a token with the `builtin/service` policy attached, but this policy does not include access to all namespaces. + +Add the following policies to the service token attached to Consul dataplanes to grant Consul access to exported services across all namespaces: + +```hcl +partition "default" { + namespace "default" { + query_prefix "" { + policy = "read" + } + } +} + +partition_prefix "" { + namespace_prefix "" { + node_prefix "" { + policy = "read" + } + service_prefix "" { + policy = "read" + } + } +} +``` ### Upgrading @@ -136,3 +160,4 @@ Consul Dataplane on ECS support the following features: - Consul Dataplane is not supported on Windows. - Consul Dataplane requires the `NET_BIND_SERVICE` capability. Refer to [Set capabilities for a Container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-capabilities-for-a-container) in the Kubernetes Documentation for more information. +- When ACLs are enabled, dataplanes use the [service token](/consul/docs/security/acl/tokens/create/create-a-service-token) and the `builtin/service` policy for their default permissions.