-
Notifications
You must be signed in to change notification settings - Fork 370
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
getSignedUrl using Workload Identity Federation #1550
Comments
Hey Andrew, thanks for bringing this to our attention. I'm looking into this, trying to familiarize myself with Workload Identity Federation. Just to make sure I have it right, you've created an AWS role which is impersonating a GCS service account, and pointed GOOGLE_APPLICATION_CREDENTIALS to the file with the credentials for this role in the settings for your lambda function? The service account is ultimately used in the signing process so it's possible that with this setup it's not resolving correctly. At first glance I'm not sure why but my guess would be some issue with the auth library |
@JesseLovelace Yep, you have my setup correct. The path to the credentials seems to be resolving as I can access the storage bucket with no problems, just resolving a signed URL seems to be the blocker. To get this I have to generate a service account creds file and use the |
Sorry for such a sanity-check type question, but what version of |
@JesseLovelace I am actually on 7.6.2 so it should work? I've looked at the changes made in that release and I have the correct permissions setup for the service account being impersonated (Token Creator). |
Cut googleapis/google-auth-library-nodejs#1239 with auth library |
Can we close this? @ddelgrosso1 |
This should now be resolved with the above fixes. Closing. |
I'm using google-auth-library to access Google Cloud resources from AWS which works nicely and allows me to upload a file to my required bucket. When I attempt to get a signed url using
I get a
SignatureDoesNotMatch
error when trying to access the URL in a web browser.If I generate a service account keyfile and provide the
private_key
field from the file when I instantiate Storage then the signed URL works (see code below).Does getting a signed URL not work well with Workload Identity Federation?
For some context, I followed this walkthrough: https://www.youtube.com/watch?v=Eh0mJwFo9Ak&t=800s
The text was updated successfully, but these errors were encountered: