-
Notifications
You must be signed in to change notification settings - Fork 344
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
Using GCP service account scopes in self hosted runner #894
Comments
@rodrigoalmeida94 this is helpful, as I have encountered a similar issue, and originally implemented the feature 🙈 |
Amazing @dacbd ! Do let me know if I can help in any way. |
@rodrigoalmeida94 if you are on their discord server you can dm (dabarnes) there if you want to help test out the fix, (I'm almost done) we can make sure it works you as well, I can walk you through trying it out if you have go installed. |
I see you've merge the branch @dacbd ! Thanks a lot for that 🥳 - from your comment it seems like you have tested the fix already? |
We will still need to wait for a release. I'm going to make sure cml parses the new arg format fine and probably update the cli description, but no release/update of cml should be required |
@dacbd @rodrigoalmeida94 is released in v0.9.14 |
Thanks @DavidGOrtega, and I can confirm that I had a whole pipeline work successfully with:
And DVC on the instance automagically had correct permission to the remote bucket 🥳 🎈 |
I can also confirm I was able to run a workflow successfully when mounting a bucket using |
I'm attempting to mount a GCS bucket in a self-hosted runner from CML and encountering multiple authentication problems with
gcsfuse
.We are using this definition for our
cml runner
:We then mount buckets in our project using
gcsfuse
:And this returns the following error:
The service account
cmldeploy@bp-padang.iam.gserviceaccount.com
has been assigned Storage Admin and Compute Admin roles, so theoretically it should have access to the buckets.After multiple trial and errors, we were able to setup an instance via terraform and successfully mount the buckets with
gcsfuse
by using these settings:Looks like the scopes are quite important in order to provide instances with permissions in GCS resources. It would be great if we could set those along with other parameters in the
cml runner
command.If you have any other experiences mounting GCS buckets in CML based runners, would be happy to hear how you accomplished it without the access scopes. Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: