Kubeconfig file is containing an access token that acts as a bearer token. It also contains an expiry date. Is there a way to delete/stop this access token from being used so that even if the kubeconfig file has the token, it will prompt for a new login?
Below is the kubeconfig file structure used:
apiVersion: v1
clusters:
- cluster:
insecure-skip-tls-verify: <value>
server: <server_details>
name: <name>
contexts:
- context:
cluster: <name>
user: <user>
name: <name>
current-context: <context>
kind: Config
preferences: {}
users:
- name: <name>
user:
auth-provider:
config:
access-token: <token>
apiserver-id: <id>
client-id: <id>
config-mode: ""
environment: AzurePublicCloud
expires-in: ""
expires-on: ""
refresh-token: <token>
tenant-id: <id>
name: azure