Kubernetes access with Teleport SSO and session recording

Teleport can sit in front of your cluster API so people sign in through SSO, get role-limited access and leave kubectl session recordings. This page covers the integration method, setup sequence, mapping, security and failure points.

On this page

Kubernetes access with Teleport SSO and session recording: what the integration does

Teams that hand out shared kubeconfig files or issue long-lived client certificates directly to engineers usually cannot answer a simple audit question: who ran which command, against which cluster, and under whose identity. Teleport places an identity-aware access proxy in front of the Kubernetes API, so people authenticate through their single sign-on provider, receive short-lived certificates from Teleport's own certificate authority, and reach only the clusters and resources their roles allow. Kubernetes itself does not model normal users as API objects, so this layer is where the identity decision is made and recorded. The supported route for this is enrolling each cluster as a Kubernetes resource in Teleport, as described in Teleport's Kubernetes access introduction.

The edition you choose decides which pieces of this design you get. Teleport Community Edition supports session recording with playback, but its single sign-on is limited to GitHub, and roles can only be requested through the CLI. Teleport Enterprise adds SSO with providers such as Okta, Microsoft Entra ID, Google Workspace, OIDC and SAML, plus just-in-time access requests, access reviews and SCIM provisioning under Identity Governance. Enterprise also adds moderated sessions and dual authorization. Confirm the current split against the Teleport feature matrix before you commit, because a corporate identity provider and reviewed access are the usual reasons teams move from Community to Enterprise.

Before design starts, the team should decide which clusters need Teleport, which roles map to which identity provider groups, and where session recordings will be stored and who may read them. Check the Community Edition license terms against your organization's size and revenue, since the distributed builds are limited to organizations below stated thresholds. Plan the Teleport deployment itself as a service in its own right: Teleport documents running both editions on Kubernetes, and the proxy, auth service and storage need the same backup and upgrade attention as the clusters they protect.

What you need before enrolling clusters in Teleport

Teleport sits in front of the Kubernetes API, so the cluster, the license, the identity provider, the proxy hostname and the network paths all have to agree before any cluster is enrolled. The cards below cover the checks to make first, in roughly the order they block the work.

Cluster and Kubernetes version support

Confirm the Kubernetes minor versions you run and their support windows on the release pages before you enroll anything. The three most recent minor releases are maintained, so a cluster on an older minor may need an upgrade before it is a sensible enrollment target. Confirm with the Teleport documentation that your Teleport version supports each cluster version in your fleet, and record which clusters use managed or self-built control planes, since that changes how you reach the API server.

Maintained minor releases
3
Kubernetes releases

Teleport edition and license fit

Community Edition distributed builds are limited to organizations with fewer than 100 employees and less than $10,000,000 in annual revenue, with an exception for designated critical security patch versions. Larger organizations, or those that need Enterprise features, should price Enterprise through Teleport before design starts. Have legal review the license text against your headcount and revenue before you deploy.

Community license text

Identity provider and SSO options by edition

Community Edition single sign-on is limited to GitHub. Enterprise adds Google Workspace, Microsoft Entra ID, Okta, SailPoint, OIDC and SAML. If your workforce identity lives in another provider, the edition decision is also an identity decision. Confirm which group claims your provider can send, because Teleport roles map onto those groups and an unmapped group means a user cannot reach the cluster they expect.

Teleport feature matrix

DNS and TLS for the Teleport proxy

Users reach the Teleport proxy by hostname, so you need a stable DNS name and a TLS certificate that clients trust, including the web endpoint and the Kubernetes access path. Decide how certificates are issued and renewed, who owns the DNS zone, and whether the proxy is exposed to the internet, a private network or both. Changing the public address later means reissuing client configuration and certificates for every user.

Network paths to the API server

Map every path from user workstations to the Teleport proxy, and from the Teleport service to each kube-apiserver on port 6443 where the cluster uses the default port. Firewalls, load balancers and egress rules in the cluster network often block these paths in the first attempt. Teleport's tunneling system can reach resources behind a firewall, but you still need to confirm which ports and directions your network policy allows and document them for the security team.

Teleport version and changelog check

Pick a Teleport release from the changelog and check its notes against your edition, your Kubernetes versions and your identity provider before installing. Recent releases include 18.11.0, 18.11.3 and 18.11.4, but the right target depends on your fleet and on fixes you need, so confirm the current stable line when you start. Plan a repeatable upgrade path for the proxy and the agents, since they must stay compatible through each upgrade.

Teleport changelog

How to configure Teleport access for a Kubernetes cluster

This sequence puts Teleport in front of a Kubernetes cluster so engineers sign in once through the identity provider, reach only the clusters and resources their role allows, and leave kubectl session evidence that auditors can replay.

  1. Deploy the Teleport service

    The platform team deploys the Teleport auth and proxy services in infrastructure you control, either as a Linux daemon or as a Helm deployment on a Kubernetes cluster. Confirm the public address that users and agents will reach, the TLS certificate source and where the cluster's state and audit storage live, since these decisions are difficult to change later. Choose the Community Edition or Enterprise build at this point, because the feature matrix determines which identity providers and access request workflows are available. The step is complete when the proxy answers on its web address and the cluster status command reports a healthy auth service. Confirm the current license terms against your organization's size and revenue before deploying Community Edition.

  2. Connect the identity provider

    An administrator configures the single sign-on connector that trusts your identity provider. Community Edition limits single sign-on to GitHub, so organizations that need Okta, Microsoft Entra ID, Google Workspace, OIDC or SAML must confirm that Enterprise is the right edition before this step. Map the claims or groups that the connector returns, because these values drive role assignment in a later step. Test sign-in with a single pilot account first. The step is complete when that account can complete the browser login flow through the proxy and the auth service lists the connector as active.

  3. Enroll the Kubernetes cluster through the agent

    The cluster owner enrolls the Kubernetes cluster by running a Teleport agent inside it, using the enrollment steps in the Teleport documentation for Kubernetes access. The agent makes an outbound connection to the proxy, so the cluster does not need an inbound opening from the internet, which is often the reason teams choose this design for private clusters. Record the name the cluster is registered under, since users will select it by that name. The step is complete when the cluster appears in the Teleport resource list with a connected status.

  4. Define roles that limit clusters and resources

    The security team writes Teleport roles that specify which Kubernetes clusters, namespaces, and Kubernetes groups each role may use, and which verbs it may perform. Keep roles narrow, for example one role for read-only troubleshooting in a non-production cluster and a separate, tightly scoped role for production. Review how Kubernetes group membership inside the cluster maps to the role, because a broad group binding undoes the Teleport restriction. Apply the roles and confirm they are stored in the auth service. The step is complete when a dry review of each role matches the written access matrix your change process approved.

  5. Map identity provider groups to roles

    The identity administrator maps groups or claims from the identity provider to the Teleport roles defined in the previous step, so that access follows directory membership rather than manual grants. Ask for the mapping to be documented alongside the role matrix, including who can change group membership and how removed users lose access. Test two accounts with different group memberships, one that should see the production cluster and one that should not. The step is complete when each test account shows exactly the clusters its group allows and no others.

  6. Test kubectl login through the proxy

    A test user signs in with the tsh client, which obtains short-lived certificates from the Teleport certificate authority, and then selects the enrolled cluster to run kubectl commands through the proxy. Verify that a successful tsh login completes, that kubectl get commands return results for permitted namespaces, and that a request outside the role's scope is refused. Also confirm that the user's kubeconfig does not contain long-lived cluster credentials. The step is complete when the permitted and refused requests behave as the role matrix predicts and the test user can switch clusters without logging in a second time.

  7. Enable and verify kubectl session recording

    The administrator turns on session recording in the Teleport configuration for Kubernetes sessions, then chooses where recordings are stored. Session recording with playback is available in both editions according to the feature matrix, but moderated sessions and dual authorization require Enterprise. Run a short kubectl session as the test user, then open the recorded session in the Teleport web interface or player to confirm the commands and output were captured. Confirm the recording storage location, its retention and who can view recordings, since those recordings may hold sensitive output. The step is complete when the test session appears in the session list and plays back the expected commands.

Self-hosting Teleport on Kubernetes: Community or Enterprise

Teleport publishes two editions that both document self-hosting on Kubernetes: Community Edition and Enterprise. The choice is less about whether Teleport runs in your cluster and more about which identity and governance features your organization needs to operate. Community Edition covers the core access proxy, short-lived certificates and session recording, while Enterprise adds the identity and approval features that many regulated teams are asked to show during reviews. Check the license terms early, because the Community Edition distributed builds are limited to organizations under a set size threshold, with an exception for designated critical security patch versions.

  • Licensing eligibility: Community Edition builds are available only to organizations with fewer than 100 employees and less than $10,000,000 in annual revenue, per Teleport's Community Edition license.
  • Support and commercial terms: Enterprise is a commercial product. Ask Teleport for written terms, support levels and what is included in a subscription.
  • Pricing model: Teleport states it charges for active users and protected resources and does not publish prices, so request a quote based on your user and resource counts.
  • Feature gating: Moderated sessions, dual authorization, Device Trust and HSM support are Enterprise-only features.
  • Confirm first: Ask Teleport which edition and license terms apply to your organization's size and use before you install anything.

Confirm the license eligibility and feature list against the current feature matrix before you commit to a design.

How identity provider groups map to Teleport roles and Kubernetes groups

This table compares common patterns for turning identity provider groups into Teleport roles, the Kubernetes groups and namespaces each role may reach, and the session recording expectations for each role. Read each row as a design pattern to adapt, and confirm exact claim names in your identity provider and Teleport version before you write any role. The main takeaway is that recording and approval requirements should follow from the role, not from the person.

Access patternIdentity provider group and Teleport role designKubernetes groups and namespaces allowedSession recording expectation
Cluster administratorsOne tightly held identity provider group mapped to a dedicated admin role with the fewest standing members possibleCluster-wide groups bound to cluster-admin only in break-glass or platform namespacesRecorded by default; confirm whether moderated or dual-authorized sessions are available in your edition
Platform engineersGroup mapped to a role limited to named clusters, with write access restricted to platform namespacesPlatform groups bound to specific namespaces such as ingress, monitoring or GitOps controllersRecorded for all kubectl sessions; review recordings on a set schedule
Application developersTeam group mapped to a role that lists only the clusters and namespaces that team ownsNamespace-scoped Kubernetes groups, with no access to kube-system or cluster-scoped objectsRecorded for all sessions; keep retention aligned with your audit policy
Read-only auditors and supportAuditor group mapped to a read-only role across clusters, with no exec or port-forward rightsView-level groups limited to the resources an auditor needs to inspectRecorded; confirm that playback access is itself restricted to the audit team
Contractors and temporary accessSeparate identity provider group with an expiry process and a role limited to one clusterA single namespace bound to a short-lived group that the access review removesRecorded with a named owner; confirm how access requests and reviews are handled in your edition
Production versus non-productionSeparate groups and roles for each environment so production access is never inherited from a shared groupProduction clusters bound only to production groups, with separate kubeconfig context namesProduction sessions recorded with the strictest retention and access controls
Emergency break-glass accessDedicated group that is empty by default and added only through a documented changeCluster-admin for a defined window, with the change ticket recordedRecorded, with an alert or review step triggered on each use

How a kubectl request flows through Teleport to the API server

The flow starts with a user running kubectl on a laptop, who signs in through the identity provider over SSO. The Teleport proxy receives the request, and the auth service issues a short-lived certificate tied to the user's roles. The proxy passes the request to a Teleport agent inside the cluster network through a reverse tunnel, so the API server never needs an inbound path from the user network. Session activity is written to the session recording store. Check that the trust boundaries match your network design and that the agent's outbound connection is the only path into the cluster.

Request path from kubectl through the Teleport proxy and agent to the API server, with trust boundaries marked.

Using kubectl session recording as audit evidence

Session recording turns kubectl activity into reviewable evidence, but only if the team decides where recordings live, how long they are kept and who can open them. The cards below cover what Teleport captures, what Enterprise adds, and how recordings fit into a SOC 2 or internal audit.

What recording captures

Teleport records kubectl sessions so a reviewer can replay what a user ran against a cluster after the fact. Confirm with the Teleport documentation for your version exactly which session types and commands appear in a recording, since the answer shapes what an investigator can rebuild. Ask the team which clusters and namespaces must be covered from day one.

Teleport feature matrix

Playback in both editions

Session playback is available in both Community Edition and Enterprise, so a reviewer can watch a recorded session without buying a higher tier. Playback supports incident reviews and spot checks, but it only helps if someone is assigned to review sessions on a schedule. Define who reviews, how often, and what they look for.

Moderated sessions and dual authorization

In Enterprise, moderated sessions and dual authorization add a second person to sensitive access, which turns recording into a live control rather than only a record. Check whether your approval model needs these controls for production clusters. Confirm current availability against the feature matrix before you scope an Enterprise purchase.

Feature matrix

Storage location decisions

Recordings are sensitive because they can contain commands, output and data shown on screen. Decide whether they stay in your own storage inside your infrastructure, and confirm with your Teleport deployment guide how the storage backend is configured. Document the storage location as part of the system description auditors will read.

Retention and deletion rules

Retention sets how long recordings exist and therefore how far back an investigation can reach. Choose a period that matches your internal policy and any contractual or regulatory obligations, and confirm how deletion is enforced and logged. Do not keep recordings longer than your policy requires, because older recordings add exposure.

Access to recordings

Restrict who can view recordings with roles, and treat the reviewer role as privileged. Keep the people who review sessions separate from the people whose sessions they review where your structure allows it. Log access to the recordings themselves so that a review of a review is possible.

Recordings are one control input

A recording is not an audit result. For a SOC 2 examination, recordings support evidence for logical access and monitoring criteria, but the auditor decides sufficiency under the AICPA Trust Services Criteria. Ask your auditor which samples they will pull and make sure recordings, review records and access logs can be produced for those samples.

AICPA SOC 2 overview

Common Teleport Kubernetes failures and how to fix them

This table pairs common Teleport Kubernetes access failures with their likely causes and the checks that resolve them. Read each row by symptom first, then work through the cause column in the order your environment makes most likely. The main takeaway is that most failures trace back to identity provider mapping, network reachability or time and certificate settings rather than to Teleport itself.

SymptomLikely causeFix and what to check
Login loop after SSO callbackThe public proxy address in the Teleport configuration does not match the callback URL registered with the identity provider, or DNS resolves to a different host.Confirm the proxy public address and the identity provider redirect URI match exactly, including scheme and port. Check that DNS and any load balancer forward to the same proxy, then retry in a private browser session.
User logs in but sees no clustersRole mappings do not match the group or claim names the identity provider sends in the token, so the user receives no Kubernetes access role.Decode a test login's claims and compare group names with the roles mapped to SSO users. Correct the mapping or group names in the identity provider, then have the user log in again so new certificates carry the claims.
kubectl fails with a connection or timeout errorThe Teleport Kubernetes agent cannot reach the cluster's API server, or its kubeconfig and service account permissions are wrong.From the agent host or pod, test connectivity to the API server address and port. Confirm the agent's service account has the access it needs, and that network policies or firewalls allow the path.
Sessions missing from recordings after enrollment changesThe cluster was re-enrolled or its agent redeployed under a new name, or session recording settings changed, so earlier or later sessions are stored under different records.Check which cluster name and recording mode are active, and whether recording is set for the cluster your users connect to. Document the enrollment change date so auditors can match recordings to the configuration in effect.
Certificate expired or rejectedShort-lived certificates expired, or the host clock on the proxy, agent or client drifted, so validity windows no longer match.Confirm time synchronization with NTP on every Teleport and cluster node. Have the user re-authenticate to obtain fresh certificates, and check certificate TTL settings against your session policy.
Authentication works but access is denied by RBACThe Teleport role grants Kubernetes groups or namespaces that the cluster's own RBAC does not bind to the same identity.Compare the kubernetes_groups in the Teleport role with the RoleBindings and ClusterRoleBindings in the cluster. Align both sides, and test with a least-privilege account before widening access.

Questions buyers ask before connecting Kubernetes to Teleport

What drives the cost and effort of connecting Kubernetes to Teleport?

The main drivers are the number of clusters, the number of identity providers, how many roles and resource groups you need, and how much of the audit evidence process you want automated. Cost comes from two sources: internal staff time from your identity, cluster and network teams, and the external work to design roles, deploy Teleport, connect SSO and test access paths. Teleport itself is licensed on active users and protected resources, so the licensing line recurs, while the integration work is mostly one-time. Ask any partner for a written quote that separates design, deployment, role mapping, session recording validation and handover, and state which items recur.

How long does a typical Teleport rollout for Kubernetes take?

Duration depends mainly on the number of clusters, the number of identity providers and how clean your existing role model is. A single cluster with one identity provider and a small set of roles is far simpler than several clusters across separate networks, with group mappings that need agreement from several owners. Identity provider app registration, DNS and certificate setup, and cluster enrollment each depend on other teams responding, so calendar time often exceeds hands-on time. Confirm the sequence and the dependencies in the written scope before any date is agreed.

What must our internal team provide for the rollout?

Plan for three owners at minimum. Your identity provider administrator registers the Teleport application, configures claims or group mappings and approves the redirect settings. Your cluster administrator provides API server access, service account rights for enrollment and decides which RBAC groups map to Teleport roles. Your network and DNS owners publish the Teleport proxy hostname, provide a certificate path and open the routes between the proxy, the clusters and users. Add a Teleport administrator for the audit and role review. Ask for a named contact for each owner before the work begins.

Can our own team deploy Teleport and connect our clusters without a partner?

Yes, if your team has experience with Kubernetes RBAC, identity provider configuration, certificate management and running stateful services on the cluster. The official documentation covers enrolling Kubernetes clusters, and the Helm deployment path is documented for self-hosting. The risks are usually in role design, where overly broad groups grant more access than intended, and in verifying that session recording and audit trails work as your evidence process requires. A partner is most useful for the design review, the test plan and the evidence walkthrough. Decide which parts your team will own after the handover.

Which Teleport edition do we need for SSO and audit features?

The Community Edition feature matrix limits single sign-on to GitHub, so connecting an enterprise identity provider such as Okta, Microsoft Entra ID, Google Workspace, OIDC or SAML requires the Enterprise edition. Session recording with playback is available in both editions, but moderated sessions, dual authorization and just-in-time access requests are Enterprise features. The Community Edition license also limits distributed builds to organizations with fewer than 100 employees and less than $10,000,000 in annual revenue, with an exception for designated critical security patches. Check the current feature matrix and license text with Teleport before choosing, because both change over time.

How is Teleport pricing structured, and are prices published?

Teleport states that customers pay for active users and protected resources, and that it can be deployed on premises, in the cloud or in a hybrid environment. It does not publish prices on its pricing page, so the figure depends on your user count, the number of resources you protect and the edition. Ask Teleport for a quote that states the unit being charged, how active users are counted, how resources such as Kubernetes clusters are counted, and whether support is included. Separately, ask any services partner for a fixed-scope quote for the integration work, which is a different line item.

Does Teleport replace our existing cluster authentication entirely?

Not automatically. Kubernetes authenticates users through certificates, bearer tokens, webhook token authentication or an authenticating proxy, and Teleport acts as an access path that issues short-lived certificates for users who pass SSO. Existing service accounts, CI tokens and break-glass credentials need a separate decision, because they do not pass through the Teleport login flow. Inventory every credential path and decide which ones move behind Teleport, which stay, and how break-glass access is recorded and reviewed.

How DeployOpen scopes and delivers Teleport access for Kubernetes

DeployOpen plans and implements Teleport in front of your Kubernetes API access inside infrastructure you control, covering SSO, role design, kubectl session recording and a self-hosted Teleport deployment. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • We confirm which clusters, namespaces and resources Teleport will front, and which users and groups need access to each.
  • We document the identity provider, the edition needed for your SSO and governance requirements, and the features you need.
  • We agree in writing which session recording and audit evidence your compliance team expects, and where it will be stored.

How we build

  • We deploy Teleport on Kubernetes in your environment and connect your identity provider with the roles you approved.
  • We enroll each cluster, configure role-based limits by cluster or resource, and test that users cannot reach unapproved targets.
  • We verify kubectl session recording and playback, then test the setup against the access paths your team actually uses.

How we hand over

  • You receive configuration, role definitions, enrollment steps and a runbook for onboarding and offboarding users and clusters.
  • You receive test results, a record of the recording and audit evidence produced, and notes on what each control covers.
  • We walk your platform and security teams through operating the deployment, including certificate expiry and Teleport upgrades.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade planning covers Teleport releases and Kubernetes version changes so access keeps working through cluster upgrades.
  • Confirm with us before go-live which support hours, response expectations and retest cycles the retainer includes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.