I added an SSH key with a ttl of 60 seconds with this command:
gcloud compute os-login ssh-keys add --key-file ~/.ssh/id_rsa.pub --ttl 60s
I expected after after expiration, the SSH key would be deleted. After the expiration, the key is still listed in the output of gcloud compute os-login ssh-keys list.
Do expired os-login SSH keys get periodically deleted?
For more background: I am creating and SSHing into temporary GCP instances for automated tests. I want to delete expired SSH keys to avoid the error
Login profile size exceeds 32 KiB. Delete profile values to make additional space. described here:
https://github.com/kyma-project/test-infra/issues/93.
Sincerely,
Kevin