Skip to content
Sign in

Sign in

pock8s supports three kinds of credentials. All of them live in the vault, never in the database.

Bearer tokens

A token from your kubeconfig or entered by hand, for example a service account token. pock8s sends it as a bearer token, as kubectl does.

Client certificates

A client certificate and its private key, from the kubeconfig or pasted as PEM. The private key is imported into the Android Keystore as a non-exportable key, so it cannot be copied off the phone.

OIDC

pock8s logs in with the authorization code flow and PKCE in a Custom Tab of your browser. The API server receives the ID token as a bearer token, as kubectl does, and pock8s refreshes it before it expires.

kubelogin oidc-login

A kubeconfig user that runs kubectl oidc-login (kubelogin) is imported as an OIDC login. pock8s reads the issuer, client ID, client secret and scopes from it and runs the login itself.

The redirect works as in kubelogin. pock8s listens on the phone’s loopback address and uses the redirect URI

http://localhost:8000

or, when port 8000 is taken by another app,

http://localhost:18000

A client registration made for kubelogin therefore works unchanged. If you register a new client for pock8s, allow both redirect URIs. If both ports are in use, the login fails with “Ports 8000 and 18000 are in use by another app”.

Entering an OIDC login by hand

Under Enter by hand, choose OIDC and enter the issuer URL (it must be https://), the client ID, a client secret if your provider needs one, and the scopes.

Allow the server, then log in

Before the first login is sent to a server, pock8s asks: Allow this server? It names the identity provider and the server that will receive your login. Allow it only if you trust that server with your identity. Clusters that share one login each ask once.

Tap Log in. The browser opens at your identity provider. Finish the login there; the app comes back by itself. While it waits it shows “Waiting for the browser” with Cancel. The login times out after 5 minutes.

When the login expires

When a cluster needs a new login, for example after the refresh token expired, the login screen opens by itself from the screen that needed it. After the login you return to that screen and it loads. If you go back without logging in, the screen offers Log in instead of a retry.

A login can also be cut off by the app lock. Turning the screen off or locking the device locks pock8s at once, also during a login; the login screen then says “The app locked before the login finished. Log in again.”

Known issue on Android 17

On Android 17 the system may freeze the app about 70 seconds after it hands over to the browser. A login that takes longer than that can stay on “Waiting for the browser”. Go back to the app and log in again.

Not supported yet

  • Cloud logins for EKS, GKE and AKS.
  • Kubeconfig exec plugins other than kubelogin’s oidc-login.
  • Username and password (basic auth).

Such contexts are imported without a credential and marked as not supported.