digitalocean / digitalocean/doctl
Revoke doks token command
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
**What is the problem this feature would solve? Please describe.**
In my Github Actions pipeline, I download **kubeconfig** with `doctl kubernetes cluster kubeconfig save cluster-name`. This generates an API Token. For every pipeline run another Access Token is generated, which spam on Acess Token list.
I use suitable version, for getting token ([list](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)). As I understand this token expires after one week, acconding this:
> AUTHENTICATION AND CONNECTING
> A certificate is required to authenticate, it lasts one week. You can either automatically refresh the certificate or manually update it weekly.
I also try to use `doctl kubernetes cluster kubeconfig remove cluster-name`, but it also creates new Access Token.
**Describe the solution you'd like**
Command like `doctl registry logout`, which revoke token.
**Additional context**
https://github.com/digitalocean/doctl/issues/818
Contributor guide
Assessment
This issue has not been assessed yet.