-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v14] Prevent remote proxies from impersonating users from different …
…clusters (#33539) * Prevent remote proxies from impersonating users from different clusters This PR prevents root proxies from impersonating users from different clusters when accessing a leaf cluster. During authentication, the proxy presents its certificate and sends the impersonation header. A malicious attacker in possession of the root cluster proxy cert-key pair could bypass the root-leaf cluster permissions boundary by impersonating local users. This PR prevents that and remote proxies can only impersonate users belonging to their cluster. KubeCSR Flow: ```mermaid sequenceDiagram ROOT PROXY->>+LEAF PROXY: Forward the request identity cert LEAF PROXY ->> LEAF AUTH SRV: Sign identity via KubeCSR LEAF AUTH SRV -->> LEAF PROXY: Identity cert LEAF PROXY ->> LEAF KUBE SERVICE: Forward the request using cert LEAF KUBE SERVICE -->> LEAF PROXY: Return response LEAF PROXY -->> ROOT PROXY: Return response ``` Impersonation Flow: ```mermaid sequenceDiagram ROOT PROXY->>+LEAF PROXY: Forward the request identity by Impersonating LEAF PROXY ->> LEAF KUBE SERVICE: Forward the request identity by Impersonating LEAF KUBE SERVICE -->> LEAF PROXY: Return response LEAF PROXY -->> ROOT PROXY: Return response ``` Fixes gravitational/teleport-private#968 Signed-off-by: Tiago Silva <tiago.silva@goteleport.com> * fix message
- Loading branch information
Showing
3 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters