Cluster access with your own kubectl, without a kubeconfig, a VPN or a cluster credential to hand out
People and vendors reach a cluster's API server with their own kubectl, Lens, k9s or Helm. Captivo checks every request and logs it. The API server stays private; only the Connector next to the cluster reaches it.
What kind of access
- Their own clients
- kubectl, Lens, k9s or Helm. It is not a browser kubectl, and it does not discover clusters for you.
- A kubeconfig
- The person presses Connect in the portal and downloads a kubeconfig. Its server is your console's own address under /k8s/, and its token is a short-lived connection ticket, not a cluster credential.
- Clusters
- The same recipe works on managed clusters (EKS, GKE, AKS). Their cloud sign-in plugins are not used: Captivo signs in with the service account token.
- The cluster's own audit log
- Requests act as the user's e-mail address (impersonation), so the cluster's own audit log can show the person.
How it works
1. Prepare the cluster
In the resource form, Set up the cluster prints a YAML already filled in with your groups and your read-only choice. A cluster admin applies it once with kubectl.
2. Add the cluster as a resource
Infrastructure → Resources → Add resource → Kubernetes. Enter the address, the service account token and the cluster CA; the token is sealed to the Connector and users never see it.
3. Grant access
The person presses Connect on the cluster under My access, chooses the operating system and downloads the kubeconfig. The dialog shows the two commands to use it and when the file expires.
4. Use it
kubectl works as usual. Captivo reads each request's verb, resource and namespace, and refuses before the request leaves if it breaks a rule.
What you get
No new port, no new certificate
kubectl talks HTTPS on 443 to the console host. The API server stays private; only the Connector reaches it, over its outbound tunnel.
No cluster credential
The person carries only a short-lived ticket. Captivo's service account token is never shown to the user, and any Authorization or Impersonate header the client sends is removed, so nobody can edit the kubeconfig and act as someone else.
Rules per resource
Read only, a namespace limit, and permission for exec and port forwarding are set on the resource. Rule changes apply to open sessions within a minute; the person does not reconnect.
Who the cluster sees
By default requests act as the user's e-mail address in the groups you listed; the roles you bind to that address or group decide what is allowed. For small clusters you can act as the service account instead.
Request log and exec recording
Each request is kept with its verb, resource, namespace, result and duration. kubectl exec is recorded like a terminal, can be watched live and carries the exit code. Request bodies and what secrets hold are never stored.
Time-boxed and checked continuously
A ticket lasts at most eight hours and never past the grant. Access, the grant and the resource's rules are re-checked every minute; when a grant ends the session is terminated, including exec sessions in flight.
The limits, stated plainly
Kubernetes access does not replace your cluster's own authorization; it sits on top of it.
- Captivo is not a browser kubectl and does not discover clusters for you. You add each cluster as a resource.
- The cluster's own RBAC still applies: a rule can only narrow, never widen. With impersonation, a person with no role in the cluster gets Forbidden from the cluster itself.
- The service account token is long-lived; the YAML the form prints limits who it can act as, and it cannot become cluster-admin. The Connector must be 2.62.0 or later.
- Port forwarding is only possible when Read only is off. What crosses a port forward is not recorded; each one is logged.
- On your own server your front proxy must send /k8s/ to the data plane with upgrades allowed, response buffering off and no request body limit. On Cloud this is in place.
- The kubeconfig belongs to that person: do not share it or commit it. When it expires kubectl gets 401 and the person downloads a new file from Connect.
Frequently asked questions
- Am I handing the vendor a kubeconfig?
- Yes, but one with no cluster credential in it, that lasts at most eight hours and dies when the grant ends. The token in the file is a short-lived connection ticket; only the Connector signs in to the cluster, with its own service account.
- Can a user become cluster-admin?
- No. Captivo's service account can act only as the groups you named and cannot become system:masters or any other group. What the user can do is what the roles you bind to their e-mail address or group allow.
- Does it work on managed clusters?
- Yes; the same recipe works on EKS, GKE and AKS. Their cloud sign-in plugins are not used, Captivo signs in with the service account token.
- Where are the logs kept?
- On the Connector, like other recordings. Each request is kept with its verb, resource, namespace, result and duration; request bodies and what secrets hold are not stored.
Related reading
- Kubernetes Access Without Handing Out Cluster CredentialsThe person connects with their own kubectl but the token they hold is a short-lived ticket, not a cluster credential. The API server stays private, every request is checked and logged, and exec sessions are recorded.
- Recording Vendor Sessions: What to Keep, Where, and for How LongLimiting access is not enough; you must be able to show afterwards what was done. The recording should sit on your side in an encrypted store only you hold the key to, and the audit log should be impossible to alter quietly.
- Giving a Vendor Access to Your Internal Systems Without a VPNYou can give a vendor exactly the one system they need, inside a set time window, under their own verified identity, with a recording of what they did. It requires no VPN and no inbound port on your firewall.
Give cluster access without handing out credentials
Open your console on Cloud or install it on your own server, add a cluster as a resource and give one person time-boxed access.