-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot sign data without client_email
: is there a way to generate a signed url without a private key?
#2381
Comments
@danielbankhead Is this something we now support in the library? I see recent work done around googleapis/google-auth-library-nodejs#1694 |
We support it for a number of clients, however we don't support signing with gcloud auth application-default login --impersonate-service-account {service_account} This documentation may help: |
Thanks for the swift response @cojenco @danielbankhead! Even by impersonating the service account with the correct permissions I get the same I also tried overriding the "overrides": {
"@google-cloud/storage": {
"google-auth-library": "latest"
}
}, with no luck. Could this be something that needs to be integrated on the |
If it can be of help, I also tried following the Storage section of this sample from the
Googling for the error leads to this issue which leads back to the PR linked above. |
@fabiosangregorio Interesting - which version of |
@danielbankhead I'm running
|
@fabiosangregorio fascinating; it appears somehow the nested dependencies of rm -rf node_modules/ package-lock.json
npm i |
That did the trick! 🎉 I'm using yarn, I ran The updated output of
With this, the sample mentioned earlier works wonders. I can finally get rid of the liability of having a secret key around. Thanks a bunch! |
Hi! I'm trying to generate a signed url through the
.getSignedUrl()
API. I can successfully generate one by instantiatingStorage
with acredentials
object containingclient_email
andprivate_key
from a Service Account, as instructed in the docs, but the generation fails withCannot sign data without 'client_email'
if I try to use the Application Default Credentials when instantiatingStorage
.Is there a way to achieve this? I saw a couple of old issues where they said this is not implemented in the library, but maybe something changed since then. Thanks!
The text was updated successfully, but these errors were encountered: