- Newest
- Most votes
- Most comments
Hi Emmet,
1. Can the cluster owner use RejectClientVpcConnection on a connection created in another account?
The cluster admin account can reject a client VPC connection in the AVAILABLE state, from the console or with the RejectClientVpcConnection API (Reject a managed VPC connection). The cluster policy example lists only CreateVpcConnection, GetBootstrapBrokers, DescribeCluster, DescribeClusterV2, and kafka-cluster:* as actions (Attach a cluster policy). I couldn't find a resource-based policy or permission that makes the cross-account call succeed, so the behavior you're seeing is at odds with the description. I'd recommend opening an AWS Support case, attaching the API request ID you posted.
2. How can the cluster owner cut off a cross-account client?
- To prevent new managed VPC connections from a client, deny that client in the cluster policy (Reject a managed VPC connection).
- Because the cluster owner doesn't own the connection, the connection can only be deleted from the client account (Delete a managed VPC connection).
- Turning off multi-VPC private connectivity for an auth scheme (via the console or the UpdateConnectivity API) removes the PrivateLink infrastructure on the cluster side (including the managed VPC connections), and existing VPC connections on the client side change to INACTIVE (Update the authorization schemes on a cluster). Note that this affects not just the client you want to cut off, but all clients using that auth scheme. It also triggers a rolling reboot of the brokers, which can take 30 minutes or more (Turn on multi-VPC connectivity).
3. Does removing a client account from the cluster policy affect already-established connections?
Denying a client in the cluster policy only prevents new connections. To terminate existing connections, turn off multi-VPC connectivity (see #2). I'd include this question in the Support case as well.
