Skip to content

Commit

Permalink
cmd/k8s-operator,ssh/tailssh,tsnet: optionally record kubectl exec se…
Browse files Browse the repository at this point in the history
…ssions

The Kubernetes operator's API server proxy, when it receives a request
for 'kubectl exec' session now reads 'RecorderAddrs', 'EnforceRecorder'
fields from tailcfg.KubernetesCapRule.
If 'RecorderAddrs' is set to one or more addresses (of a tsrecorder instance(s)),
it attempts to connect to those and sends the session contents
to the recorder before forwarding the request to the kube API
server. If connection cannot be established or fails midway,
it is only allowed if 'EnforceRecorder' is not true (fail open).

Updates tailscale/corp#19821

Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
  • Loading branch information
irbekrm and maisem committed Jun 21, 2024
1 parent 07063bc commit 40e30e5
Show file tree
Hide file tree
Showing 6 changed files with 1,765 additions and 194 deletions.
Loading

0 comments on commit 40e30e5

Please sign in to comment.