Multi-zone authentication

Uses: Kong Mesh

How does multi-zone authentication work?

To add to the security of your deployments, Kong Mesh provides authentication of zone Control Planes to the global Control Plane. Authentication is based on the Zone Token which is also used to authenticate the zone proxy. See zone proxy authentication to learn about token characteristics, revocation, rotation, and more. To enable authentication between Control Planes:

  • Generate a token for each Zone Control Plane with the cp scope.
  • Pass the token to the Zone Control Plane.
  • Enable authentication on the Global Control Plane.

Generate the token

On the global Control Plane, run the following command to store the token in /tmp/token:

kumactl generate zone-token --zone=west --scope=cp --valid-for=720h > /tmp/token

Add tokens to zones

Enable authentication

If you are starting from scratch and not securing an existing Kong Mesh deployment, you can do this as a first step.

Verify the zone Control Plane is connected with authentication by looking at the global Control Plane logs:

2021-02-24T14:30:38.596+0100	INFO	kds.auth	Zone CP successfully authenticated	{"zone": "cluster-2"}

Additional security

By default, a connection from the zone Control Plane to the global Control Plane is secured with TLS.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!