googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
974 stars 249 forks source link

Should ungit work out of the box when the service-account option is used with datalab create? #2158

Open ameihm0912 opened 4 years ago

ameihm0912 commented 4 years ago

Hey all, new to datalab so I'm not sure if I am missing something configuration wise or if this is a bug.

I have a dedicated datalab project, and created a new instance with the datalab create command. I want a dedicated service account so I passed the --service-account option and gave it a service account I created. So far so good and everything works great.

However, when I access ungit from the datalab UI, I'm greeted with an error message indicating the default compute service account doesn't have access to the source repository. This seems odd as when I created the instance I specified a different account.

Looking at the configuration for the source repository, it looks like that default service account at any rate should have access. I also tried adding my dedicated service account to the source repo permissions and that didn't seem to help.

Are there any known issues here?

Also, worth noting initially I created an instance in the same project with all the defaults. Am I potentially in a situation where the repo was initially created assuming the default compute account, and now my new instance will not work unless it is configured to use that?

Thanks