mw gitlab cluster agent token-cache
Releasev0.35.0 · cfeceb67
Manage cached GitLab Agent tokens created by ‘glab cluster agent get-token’.
This command group allows you to list and clear tokens that are cached locally in the keyring and filesystem cache.
Cache Storage
Section titled “Cache Storage”The GitLab CLI caches agent tokens in two locations:
- Keyring - Uses the system keyring (Windows Credential Manager, macOS Keychain, Linux Secret Service)
- Filesystem - Stores tokens in the user’s cache directory as encrypted files
The cache improves performance by avoiding the need to create new tokens for each kubectl operation when using ‘glab cluster agent update-kubeconfig’.
Cache Key Format
Section titled “Cache Key Format”Cached tokens are stored using a key format that includes:
- Base64-encoded GitLab instance URL
- Agent ID
This ensures tokens are properly isolated by GitLab instance and agent.
Commands
Section titled “Commands”- mw gitlab cluster agent token-cache clear — Clear cached GitLab Agent tokens
- mw gitlab cluster agent token-cache list — List cached GitLab Agent tokens
Global options
Section titled “Global options”See also
Section titled “See also”Page views: —Sessions: —