hashicorp / consul-k8s

First-class support for Consul Service Mesh on Kubernetes
https://www.consul.io/docs/k8s
Mozilla Public License 2.0
668 stars 321 forks source link

Update "terminating-gateway-token" ACL policy when registering a server with a terminating gateway #1123

Open barrymars opened 2 years ago

barrymars commented 2 years ago

Community Note


Related to: https://github.com/hashicorp/consul/issues/12605

Feature Description

When using a TerminatingGateway and ACLs it is necessary to update the terminating-gateway-token acl policy to have service: write for that service service "example-https" { policy = "write" }

or configure the policy with service_prefix "" { policy = "write" }

to avoid the manual step but reduce security.

It would be nice if while registering a service with a terminating gateway (preferably via CRD) that this policy was updated automatically

lkysow commented 2 years ago

Thanks Barry, I agree this would be an excellent change.