---
title: "How to Tie Kubernetes Audit Logs to Individual Engineers"
description: "Kubernetes audit events record whatever identity the API server authenticates, so shared client certificates, proxies that send only their own ServiceAccount token, or cloud IAM mappings that collapse engineers into one username all make attribution to a person impossible."
url: "https://swe.quest/articles/how-to-tie-kubernetes-audit-logs-to-individual-engineers-ea75f0fd7507a88e"
canonical: "https://goteleport.com/blog/how-to-tie-kubernetes-logs-to-individual-engineers/"
source: "Teleport"
published: "2026-10-08"
difficulty: "medium"
kind: "How-to"
reading_minutes: 25
tags: ["kubernetes","identity-auth","observability","security","cloud"]
---

# How to Tie Kubernetes Audit Logs to Individual Engineers

A post on [Teleport](https://swe.quest/sources/teleport.md), published 2026-10-08, 25 min read, How-to. Original: [https://goteleport.com/blog/how-to-tie-kubernetes-logs-to-individual-engineers/](https://goteleport.com/blog/how-to-tie-kubernetes-logs-to-individual-engineers/)

## Summary

Kubernetes audit events record whatever identity the API server authenticates, so shared client certificates, proxies that send only their own ServiceAccount token, or cloud IAM mappings that collapse engineers into one username all make attribution to a person impossible. Per-engineer credentials with group-based RBAC keep individual usernames, and proxies can preserve them through impersonation, where the audit event shows the proxy under \`user\` and the engineer under \`impersonatedUser\`. On managed clusters such as EKS, access entries and per-person STS session names carry the individual into the Kubernetes username. The audit log also stops at the \`kubectl exec\` connection and never sees commands typed in the shell, so a session recorder is needed to review terminal activity.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- Kubernetes RBAC ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- kubectl and kubeconfig
- X.509 client certificates
- AWS IAM roles ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

Kubernetes audit log, kubectl exec, Kubernetes impersonation, Amazon EKS, AWS STS, Teleport, GKE, AKS

## Related posts

- [How Hugging Face Scaled Secrets Management for AI Infrastructure](https://swe.quest/articles/how-hugging-face-scaled-secrets-management-for-ai-infrastructure-9737f7d559f7a125.md): Hugging Face · 2025-03-31 · Medium · 5 min read · Security, Kubernetes, Identity & auth, Infrastructure as code, CI/CD
  Hugging Face moved secrets management to Infisical as its infrastructure grew from AWS-only to multi-cloud (Azure, GCP), choosing it over HashiCorp Vault for developer workflows and multi-cloud abstraction.
- [Incident Report: October 21st Security Attack](https://swe.quest/articles/incident-report-october-21st-security-attack-5a78ac26d27c6de1.md): Railway · 2026-11-10 · Medium · 21 min read · Incidents & postmortems, Security, Identity & auth, Multi-tenancy, CI/CD
  An attacker partially escaped filesystem isolation in Railway's multi-tenant build infrastructure and stole a build credential.
- [Connections: managed credentials and per-caller identity for Managed Deep Agents](https://swe.quest/articles/connections-managed-credentials-and-per-caller-identity-for-managed-deep-agents-ce54a93aff5fdc9f.md): LangChain · 2026-09-14 · Medium · 6 min read · AI agents, Identity & auth, LLMs
  Connections in Managed Deep Agents (v0.7.0+) store named credentials in the LangSmith workspace instead of \`.env\` or the build, and tools fetch them at run time by slug via \`connections.get()\`.
- [MCP Horror Stories: The GitHub Prompt Injection Data Heist](https://swe.quest/articles/mcp-horror-stories-the-github-prompt-injection-data-heist-118a1d699702a7aa.md): Docker · 2025-08-14 · Medium · 15 min read · AI agents, Application security, Identity & auth, LLMs
  A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server.
- [Security Disclosure Recommendation: Check for Anomalous GitHub Access](https://swe.quest/articles/security-disclosure-recommendation-check-for-anomalous-github-access-acf8b4a01ac2abcd.md): Railway · 2026-10-22 · Medium · 1 min read · Identity & auth, Incidents & postmortems, Security
  Railway users who connect GitHub, following the October 21, 2026 security disclosure, should audit their GitHub accounts for persistence an attacker may have left behind, then confirm no unexpected commits reached their deployments.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
