Using xbcloud with Google cloud service accounts or workload identity

I am working on backup-restore to Google Cloud Storage using xbcloud. Commands using --google-secret-key and --google-access-key works as expected. i.e. following command works

ncat --recv-only mysql-0.mysql 3307 | xbcloud put --storage='google' --google-endpoint='storage.googleapis' --google-access-key='xxx' --google-secret-key='xxx' --google-bucket='xxx' --parallel=10 backup_file_xxx

I want to take backups from containers using Permitted service accounts or Workload identity for GKE

Skipping these variables fails with error:

$ ncat --recv-only mysql-0.mysql 3307 | xbcloud put --storage='google' --google-endpoint='storage.googleapis' --google-bucket='xxx' --parallel=10 backup_file_xxx

220706 07:48:29 xbcloud: Probe failed. Please check your credentials and endpoint settings.
1 Like

Hi @Sids.Agravat ,

Google Cloud support for xbcloud only works with HMACs keys, the auth method you are using on your first example.

2 Likes