Skip to content
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

upspin-ui GCP setup doesn't give allUsers read access to bucket #630

Open
alltom opened this issue Dec 3, 2019 · 7 comments
Open

upspin-ui GCP setup doesn't give allUsers read access to bucket #630

alltom opened this issue Dec 3, 2019 · 7 comments

Comments

@alltom
Copy link

alltom commented Dec 3, 2019

I'm trying to follow https://upspin.io/doc/faq.md to allow a second account to use my personal upspin server, but getting stuck. Repro steps:

  1. Create a server on GCP with upspin-ui. Sign up as user1@example.com. Reading/writing files works as expected.
  2. On a second computer, create a new user user2@example.com with upspin-ui.
  3. Back on the first computer, copy ~/upspin/config.upspinserver to ~/upspin/deploy/myhostname/config
    1. (Should the initial setup have done this? upspin setupwriters seems to assume the config lives in a ~/upspin/deploy subdirectory… or maybe this is my problem?)
  4. Run upspin setupwriters -domain myhostname user1@example.com user2@example.com
    1. If I upspin get the Group/Writers file, I see that both users are now in it.
  5. Back on the second computer, choose the option to specify the servers.
  6. Enter "myhostname:443" in both Directory Server and Store Server fields.
  7. Click "Continue".

After a short delay, an error appears in the bottom of the dialog with a message like:

error communicating with "myhostname:443": store/remote("myhostname:443").Get: fetching https://storage.googleapis.com/mybucket/Upspin:notexist: 403 Forbidden"

Did I miss a step?

@alltom
Copy link
Author

alltom commented Dec 3, 2019

I just tried restarting my instance, to no avail.

@adg
Copy link
Collaborator

adg commented Dec 3, 2019 via email

@alltom
Copy link
Author

alltom commented Dec 3, 2019

I poked around in my bucket and don't see any files named "Upspin". The files that do exist are all public and accessing them is no problem.

@n2vi
Copy link
Contributor

n2vi commented Dec 3, 2019 via email

@alltom
Copy link
Author

alltom commented Dec 3, 2019

Thanks for the info! I added "allUsers" as a member of the bucket with role "Storage Object Viewer" per this page and storage-ui was able to continue. However… is that insecure?

@n2vi
Copy link
Contributor

n2vi commented Dec 4, 2019 via email

@alltom alltom changed the title "error communicating with [GCP-hosted server]" for second user upstart-ui GCP setup doesn't give allUsers read access to bucket Dec 4, 2019
@alltom
Copy link
Author

alltom commented Dec 4, 2019

Thanks, I seem to be in business now.

I renamed the issue to what I hope is a better summary of what seems to have been the problem.

@alltom alltom changed the title upstart-ui GCP setup doesn't give allUsers read access to bucket upspin-ui GCP setup doesn't give allUsers read access to bucket Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants