doctl
doctl copied to clipboard
When switching to or creating a new auth context, all previously stored contexts are lcased
If you doctl auth init --context Dog it is initially stored with case sensitivity. However, If you switch to another context doctl auth switch default or doctl auth init --context Cat all the auth-contexts stored in ~/.config/doctl/config.yaml become lcased.
The problem is when you try to switch back to Dog it is no longer authorized because the stored context name has changed to dog.
doctl version 1.13.0-release
Thanks for reporting this. This seems to be related to how the config package, viper, handles exporting and importing YAML files: https://github.com/spf13/viper/pull/635
We might have to wait until the PR is merged upstream