Skip to content

Revoke doks token command #1083

Description

@dro-sh

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). 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
#818

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions