Kubernetes access that ends on its own.

Ask for a role for a few hours. An approver decides, and the access is removed when the time is up, on every cluster.

Get started View on GitHub

An open-source Kubernetes operator with a web UI. Apache-2.0.

See what you are approving

A request shows the role's actual rules, risky ones first, and how long the access will run, before anyone says yes.

Nobody keeps access just in case

Six decisions keep temporary access temporary, and each one shows in the product.

Access ends on its own.

Every grant has an end time, and the agent on the cluster enforces it, so access still ends while the hub is unreachable.

Many clusters, no stored admin credentials.

Each agent pulls its own grants. The hub holds no credentials for the clusters it serves.

Hub no cluster credentials prod-eu/ClusterGrant prod-us/ClusterGrant staging-eu/ClusterGrant pull prod-eu agent prod-us agent staging-eu agent

Approvers see what they approve.

The role's actual rules, with the risky ones listed first.

  • Can read Secrets.
    secrets · get, list, watch
    Flagged
  • Can open a shell into pods.
    pods/exec · create
    Flagged
  • pods, services, configmaps
    get, list, watch
  • deployments
    create, update, patch

Git first.

Who may request which role, where, and who approves are resources you keep in Git. The UI steps back for anything Argo CD, Flux or Helm manages.

profiles/payments-edit.yamlManaged by Argo CD
kind: AccessProfile
metadata:
  name: payments-edit
spec:
  role: { kind: ClusterRole, name: edit }
  namespaces: [ payments ]
  duration: { default: 1h, max: 2h }
  approval:
    rules:
    - { name: prod-needs-sre, mode: Manual, requiredApprovals: 1 }
In the UI: “Managed by Argo CD. Change it in Git; edits here would be reverted.”

The cluster owner sets the limit.

An agent binds only the roles its own cluster allows, whatever the hub asks for.

prod-euAllowed roles
  • view
  • edit
  • payments-operator
  • cluster-adminNot allowed here

Plain RBAC.

A grant is an ordinary RoleBinding. No authorization webhook and no API server flags, so it does not depend on control-plane access.

$ kubectl get rolebindings -n payments -l protem.dev/managed-by NAME ROLE AGE protem-grant-protem-system.grant-alice-payments-edit ClusterRole/edit 12m $ kubectl auth can-i update deployments -n payments --as alice@company.com yes

See who has access, and until when

The access timeline shows every live grant on every cluster, each bar ending where its time ends.

How it fits together

Everything is a Kubernetes resource on one hub, with no database. Agents pull from the hub; the hub never reaches into your clusters.

People Requesters and approvers, in a browser or on a phone Git Profiles, applied by Argo CD, Flux or Helm profiles/*.yaml via your login proxy GitOps sync Hub cluster No database. No cluster credentials. Operator checks, approves, grants Web UI and API request, approve, revoke Kubernetes resources AccessProfileAccessRequest AccessGrantTargetCluster prod-eu/ClusterGrant prod-us/ClusterGrant staging-eu/ClusterGrant pulls its own grants prod-eu agent binds and removes RoleBindings prod-us agent only roles this cluster allows staging-eu agent ends access on a local timer

Defined in Git

A profile is a Kubernetes resource on the hub. It says which role can be requested, on which clusters, by whom, for how long, and who approves; there is no database behind it.

Keep profiles in Git and let Argo CD, Flux or Helm apply them. The UI shows anything they manage as read-only.

Read the guides

prod-view.yaml
apiVersion: protem.dev/v1alpha1
kind: AccessProfile
metadata:
  name: prod-view
  namespace: default
spec:
  displayName: Production read-only
  role:
    kind: ClusterRole
    name: view
  scope: Namespaced
  namespaces:
  - default
  clusters:
    selector:
      matchLabels:
        env: prod
  duration:
    default: 30m
    max: 1h
  requesters:
    groups:
    - devs
  justification:
    reason: Required
    ticketPattern: "^INC-[0-9]+$"
  approval:
    rules:
    - name: prod-needs-sre
      mode: Manual
      approvers:
        groups:
        - sre-leads
      requiredApprovals: 1

Install

Install the operator on your hub cluster with Helm. Replace <version> with a released chart version.

Shell
helm install protem oci://ghcr.io/illeniumstudios/charts/protem \
  --version <version> \
  --namespace protem-system --create-namespace