SSO-Backed kubectl Access Across Many Clusters
When development, staging and production Kubernetes API servers all trust the same OIDC issuer and audience, a single cached kubectl token authenticates to every cluster, leaving RBAC as the only barrier and making a leaked token usable against production. A hands-on walkthrough with Dex and kubelogin shows how the API server authenticates (checking iss, aud and the username claim) before RBAC authorizes, how merged kubeconfig contexts end up sharing one OIDC client ID, and how 401 differs from 403. The fix is per-environment OIDC client IDs, configuring each API server's accepted audiences so production rejects development and non-production tokens at the authentication step.
Related posts
- How to Tie Kubernetes Audit Logs to Individual Engineers
Teleport mediumAdept
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.
- How to Reduce Overprivileged Kubernetes Service Accounts
Teleport mediumAdept
Kubernetes ServiceAccounts end up with cluster-admin as quick workarounds, and the bindings spread through Terraform modules, Helm charts, GitOps repos and bootstrap scripts. A workload's effective permissions are the union of Kubernetes RBAC and any cloud IAM role it reaches via workload identity federation, so auditing each layer separately misses real risk. Remediation comes in steps: audit cluster-admin bindings and legacy pre-1.24 token secrets with kubectl/jq, disable token automount for pods that don't call the API, and replace ClusterRoleBindings with namespace-scoped Roles. Static credentials should give way to OIDC SSO, workload identity federation or SPIFFE/SPIRE short-lived certificates.
- How we built Render OIDC
Render mediumAdept
Render issues per-service OIDC tokens so workloads can authenticate to AWS, GCP, OpenAI and Anthropic without long-lived API keys. Tokens expire after 60 minutes as a tradeoff between leak exposure and tolerance for issuer outages. Per-workspace issuer URLs protect against providers misconfigured to skip subject checks, and per-provider audience claims block token replay across providers. Because SDKs mostly expect a token file, an external OIDC Daemon writes and refreshes tokens into a read-only bind mount backed by /dev/shm, and Render sets provider-specific env vars such as AWS_WEB_IDENTITY_TOKEN_FILE.
- Introducing JWT authentication in ClickHouse Cloud
ClickHouse mediumAdept
ClickHouse Cloud (26.4+) can authenticate clients with short-lived JWTs from any OpenID Connect provider such as Okta or Microsoft Entra, replacing database passwords. ClickHouse verifies the token signature against the provider's JWKS, then creates an in-memory ephemeral user named JWT::<subject>::<claims_hash> carrying the roles from the token, and removes it after expiry, so no CREATE/DROP USER provisioning is needed. Quotas, settings profiles and row policies attach to a stable UUID derived from issuer, subject and audience, and definer views get a persistent non-login shadow user so they survive token expiry. Client libraries for JS, Python, Go and Java accept bearer tokens with refresh hooks, and custom providers require the Enterprise plan.
- Agentic Platform: Open-Sourcing the Agentic Identity Broker
Zalando Engineering hardMasterZalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens. Running on Kubernetes alongside kagent and agentgateway, the broker records grants of admin-defined permission sets from users to agents, holds encrypted per-user provider sessions, and performs RFC 8693-style token exchange at the gateway so OAuth ceremonies stay out of agents and MCP servers. Effective access is the intersection of user and agent permissions, and per-tool-call authorization is layered on via OPA through agentgateway's ExtProc. Planned additions include central tool approvals, CIBA for high-risk actions, and SPIFFE to separate agent attestation from user identity and avoid per-hop STS latency.