Open tsuna opened 1 year ago
Ping? Nobody at Google is using gsutil
with a security key and running into this annoying issue?
@NickGoog you guys don't run into this internally with security keys?
@tsuna , I've never actually seen someone use a security key with gsutil specifically. I'll bring this to the attention of our OnDuty @rrauber
rrauber fixed a reauth bug recently, but, if your GCP project is configured with an aggressive reauth policy (e.g. daily reauth), we can't help from the client-side.
It's not like we really have a choice, as soon as we turned on YubiKeys for gcloud
, this became a problem.
Using the new storage CLI, gcloud storage
, may be a workaround
Nice, this does help, thanks!
rrauber fixed a reauth bug recently, but, if your GCP project is configured with an aggressive reauth policy (e.g. daily reauth), we can't help from the client-side.
The company I work for configure not daily, but hourly reauth. It's just a nightmare in any place beyond gsutil, the gsutil (funny enough) is the only place where reauth through yubikey works. The rest I need to gcloud auth application-default login
opening browser authentication stuff, confirmation and etc.
I wish there is some command to refresh the token using the same method gsutil
does, which request the yubikey being pressed (much more ok to me than browser authentication stuff).
Using the new storage CLI,
gcloud storage
, may be a workaround
This worked perfectly for me thank you!
I use a YubiKey and have to reauth once a day with
gcloud
, however even immediately after reauthenticating withgcloud
,gsutil
keeps prompting for it on each usage.This makes
gsutil
super annoying to work with. Other people on my team are reporting the same problem since we turned on security key with daily refreshes forgcloud
and this problem only seems to impactgsutil
.