Comments (5)
I believe this is the documentation.
from gcsfuse.
Even better, this is built in to the public oauth2 package. Unfortunately this doesn't expose any capability to find out what scopes are provisioned for the instance, to catch errors early.
The gsutil source code implies that this is possible, though.
from gcsfuse.
Filed golang/oauth2#102 about querying a list of scopes.
from gcsfuse.
Looks like the list of scopes can be obtained from the oauth2 API.
from gcsfuse.
Okay, so more of this is already built than I thought.
Plan:
- Use google.DefaultTokenSource, which automatically gets you the standard flow for finding Google credentials, including GCE VM ones and those used by the gcloud command-line tool.
- Don't worry about detecting the wrong scope for now. The work on better error output (#60) will make the problem more obvious.
- If we do eventually want to do this, we can query the tokeninfo service to get a space-separated list of scopes.
- Add a
GOOGLE_APPLICATION_CREDENTIALS
environment variable in gcsfuse_mount_helper/sample.sh. - Test both gcsfuse and the mount tool, on OS X and Linux.
- Kill the
--key_file
flag and mount option. - Update documentation.
- Send an announcement to gcsfuse-users.
from gcsfuse.
Related Issues (20)
- Please upgrade Go runtime (>= 1.21.1) to fix security vulnerabilities HOT 4
- Creating files does not result in them being created in bucket HOT 14
- Advertised inode permissions don't do anything HOT 9
- Error Encountered When Mounting GCS Bucket using gcsfuse on Cloud Run following Official Tutorial HOT 29
- GCSFuse can no longer be installed from the official repo (502 Bad Gateway) HOT 4
- Affected by CVE-2023-39323 and CVE-2023-39320? HOT 4
- GCSFuse sidecar is not compatible with restricted Kubernetes pod security standard HOT 2
- MaxRetryDuration flag is not implemented
- Please upgrade Go / Go Libraries - multiple vulnerabilities detected HOT 2
- GCSFUSE hanging while trying to write large files (~6GB) HOT 19
- offline installation on rockly linux running as a gcp vm HOT 5
- GCSFuse process crashing without logging anything HOT 14
- Application default credentials aren't reloaded on expiration HOT 2
- No such host while creating mounts HOT 5
- gcsfuse not working with custom container in Vertex AI on NVIDIA_L4 HOT 9
- `--implicit-dirs` not able to be used in conjunction with `mount -t ...` HOT 5
- Gcsfuse error 429 to many requests. HOT 8
- Concurrent Map iteration and map write HOT 7
- Feature Request: --pre-create-implicit-dirs HOT 5
- How to make gcsfuse mount persistent in GCP Linux RHEL VM HOT 4
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 gcsfuse.