Article · 2 min read · Security and privacy
kubespin: Push and pull tokens
These tokens reach your area of kubespin’s registry, and nothing else. See [[local-container-registry]].
These tokens reach your area of kubespin’s registry, and nothing else. See kubespin: The local container registry.
Push tokens, for CI
A push token lets CI push images into your area. It can’t push anywhere else.
- Go to Settings › Push tokens.
- Give it a Name, such as “profile GitHub Actions”.
- Choose when it Expires: in 30 days, 90 days or a year.
- Make a token. It’s shown once, with a GitHub Actions snippet.
In GitHub Actions, save the token as the secret KUBESPIN_TOKEN. The snippet kubespin gives looks like this, with your registry and username filled in:
- uses: docker/login-action@v3
with:
registry: kubespin.io
username: <your area>
password: ${{ secrets.KUBESPIN_TOKEN }}
- run: docker push kubespin.io/<your area>/app:${{ github.ref_name }}
Behind the scenes, docker login with a push token gets a five-minute token for exactly the images it may use.
Pull tokens, for your own machine
On Images, under Pull from your own machine, you’ll find:
- the Registry address;
- Your area;
- your Username.
Choose how long the Token lasts (1, 7 or 30 days) and Make a pull token. It’s shown once, with the docker login and docker pull commands to copy. It can pull, never push.
Keeping track
Both lists show each token’s name, when it was last used and when it expires. Revoke stops a token at once.
When an account’s plan has no registry space, new tokens aren’t issued and existing ones stop working.