How to Tie Kubernetes Audit Logs to Individual Engineers
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.
Related posts
- How Hugging Face Scaled Secrets Management for AI Infrastructure
Hugging Face mediumAdeptHugging 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. In Kubernetes, the Infisical Operator syncs secrets via an InfisicalSecret CRD into native Kubernetes secrets and can auto-reload Deployments. Engineers still prefer manual redeploys for control at over 10 million requests per minute. RBAC is mapped from Okta groups, the CLI replaces local .env files, and CI/CD uses GitHub Actions with OIDC, Terraform and self-hosted runners.
- Incident Report: October 21st Security Attack
Railway mediumAdeptAn attacker partially escaped filesystem isolation in Railway's multi-tenant build infrastructure and stole a build credential. That credential was wrongly trusted by a self-hosted Temporal cluster, which exposed build histories and a copy of Railway's internal monorepo. Using the code, the attacker found a misconfigured OIDC binding in CI/CD, obtained cloud credentials, and SSHed into an orchestration machine. From there they read envelope-encrypted environment variables and decrypted them through the KMS, targeting AI provider keys for at most 1.85% (~100,000) of workspaces. Railway halted builds twice, revoked all credentials, rebuilt its PKI, reset 1,852 linked-account tokens, and coordinated key revocation with providers after an estimated ~$740,000 in unauthorized spend.
- Connections: managed credentials and per-caller identity for Managed Deep Agents
LangChain mediumAdeptConnections 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()`. Each connection has an owner (agent or caller) and a credential type (static secret or OAuth grant), chosen independently. Agent-owned secrets suit shared capabilities like web search and can be rotated without redeploying. User-owned OAuth connections resolve per caller, so actions such as filing a GitHub issue carry the requesting user's identity. When grants are missing, the platform pauses the run with a single interrupt, so the project needs no callback route, token store or refresh logic, and MCP servers with dynamic client registration need only a URL.
- MCP Horror Stories: The GitHub Prompt Injection Data Heist
Docker mediumAdeptA prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server. When a developer asks it to "check the open issues," the agent uses a broad personal access token to read private repositories and leak salary and project data into a public pull request, as Invariant Labs demonstrated in May 2025. Docker's mitigation runs tools through the Docker MCP Gateway with interceptors, which are exec, container or HTTP hooks that inspect each tool call before and after it runs. A cross-repo-blocker script locks each session to the first repository accessed and blocks calls to any other repository. A Docker Compose setup with audit logging and repository-scoped OAuth is included as defense-in-depth against credential overreach.
- Security Disclosure Recommendation: Check for Anomalous GitHub Access
Railway mediumAdeptRailway 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. On personal accounts, filter the 90-day security log for authentication and access events and review OAuth apps, GitHub Apps, SSH/GPG keys and personal access tokens, regenerating all tokens. Organization owners should export the 180-day audit log before revoking anything, then check third-party access and each repository's deploy keys, secrets, webhooks and collaborators, since these can outlive a password reset.