Skip to content
Documentation
Open the panel

PanelGetting started

Access tokens

An access token lets kcloud act as you, for example in a CI pipeline or on a server without a browser. A token can do what your account can, or less when you limit it to a role.

1

Step 1: Open Access tokens

Choose Access tokens in the account menu. The table shows your tokens with their limit and the dates of last use, creation and expiry. A token that kcloud login created is listed here too.

The list of access tokens
The list of access tokens
2

Step 2: Create a token

Click Create token and in Name, type what will use it, for example the name of a pipeline. In Expires, pick Never or a number of days. In Limit, leave No limit or pick a role of the organization, and click Create token.

The dialog of a new access token
The dialog of a new access token

The limit counts on each use of the token. When your account loses a permission, the token loses it too, and when the account gets it back, so does the token. A role that limits a token cannot be deleted until you revoke the token, and a token of kcloud login has no limit. A limited token cannot create another token, approve a kcloud login, or revoke the other tokens of your account, only itself.

3

Step 3: Copy the token

The panel shows the token this one time only. Copy it at once and keep it somewhere safe, such as the secrets of your pipeline. The platform keeps only its hash, so a lost token has to be replaced with a new one.

The token, shown once
The token, shown once

In a terminal, pass the token on standard input: kcloud login --with-token < token.txt.

4

Step 4: Revoke a token

When a token is no longer needed or may have leaked, open the menu of its row, choose Revoke and confirm. Everything that uses it stops working at once.

Confirming the revocation of a token
Confirming the revocation of a token

Matches the panel at cloud.kikimora.dev.