Comments (9)
Works exactly as expected!
Many, many thanks @fsouza
from gcs-helper.
Hey @sqdk, thanks for opening this issue. I wonder if there's something going on with that credentials file. Is it for a service account? Does gsutil work with that file?
export GOOGLE_APPLICATION_CREDENTIALS=/credentials.json
gsutil cp gs://my-bucket-name/test_report/index.html /tmp
from gcs-helper.
@fsouza sorry for the dupe!
The credentials is a service account, yes. And great idea to test locally.
I just checked that the credential file works with gsutil:
$ gcloud auth activate-service-account --key-file credentials.json
Activated service account credentials for: [OMITTED]
$ gsutil ls
gs://my-bucket-name/
$ gsutil cp gs://my-bucket-name/test_report/index.html .
Copying gs://my-bucket-name/test_report/index.html...
/ [1 files][ 97.3 KiB/ 97.3 KiB]
Operation completed over 1 objects/97.3 KiB.
This leads me to believe that SOMETHING is confusing the library as to what auth method to use. It seems to look for something it shouldn't.
Do you usually run this in a container or a VM?
from gcs-helper.
To clarify, I am basically running the image on dockerhub except for a couple of lines that injects the credentials file.
from gcs-helper.
Yeah I just realized we've never ran this with a SA (we run it locally with user accounts and in GCE/GKE with roles), but we assumed it would work.
Let me give it a shot then I'll get back to you. Sorry about that.
from gcs-helper.
Well, good to know I am not going crazy!
Thanks for helping me out. Really appreciated!
from gcs-helper.
@sqdk it looks it's an issue with using a custom http client + service accounts, it would end-up with an empty scope ¯_(ツ)_/¯ I just pushed a fix that worked for me, can you confirm it works for you too?
I'll also make a follow up change improving the logging in the proxy method.
from gcs-helper.
@fsouza It all makes sense then! Thanks for the quick reply!
I got my test setup ready so I'll check it out right now.
from gcs-helper.
@sqdk thanks for confirming!
from gcs-helper.
Related Issues (13)
- support byte ranges
- Kill proxy and add option to return signed URLs on map
- Support bitrate value
- GCS Website Config not working with proxy HOT 1
- Sample of use gcs-helper with Kaltura VOD HOT 1
- oauth2: cannot fetch token: 400 Bad Request HOT 1
- support recursive listing of folder content HOT 8
- Dependabot can't resolve your Go dependency files
- Run as non root?
- Corrupt Docker Hub registry
- Does not support large files HOT 1
- Issues building docker image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcs-helper.