Closed Bug 1716679 Opened 5 years ago Closed 5 years ago

chown a file in hala.data.mozaws.net to "users" group

Categories

(Data Platform and Tools :: General, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shong, Assigned: jason)

Details

we keep a dataset on Hala for use in onsite data interviews.

we want to turn on and turn off public access to this data (while keeping the URL the same) before and after the interviews.

the process for doing so is described like this: https://github.com/mozilla/fx_data_interview/blob/main/data_science/2_onsite_interviews/data_challenge/loading_data_instructions.md

however, since I (shong) am the owner of this file, other members of the data team cannot perform chmod operations on the file.

I would like the admin to change the ownership of this file from myself to the entire "users" group, so anyone on hala can chmod it.

TLDR:

change ownership of /data/www/metrics.mozilla.com/public/datachallenge/onsite_ds_0309.csv from @shong to entire users group (so that any data team member can chmod it)

I can't set a group as a user, only user and root will have access to change file permissions.

Users on hala have sudo access, you can do the following instead:

sudo chmod o=r onsite_ds_0309.csv
  # turn on access

sudo chmod o=- onsite_ds_0309.csv
  # turns off access

Let me know if that works.

Assignee: nobody → jthomas
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

What's the password when I do sudo? Is it the same password that I use to log in with SSO? If that's the case I think I get my password right, but it says the password is incorrect.

It looks like you and a couple of other users did not have sudo access, I've fixed this. Can you try again? You will need to log out and log back in. No password required.

Hey Jason, thank you. Just tested it, it's working for me now.

Test successful for that in Colab, it works as expected. Only one thing if I am checking directly in the browser, turning the data on is immediate, but not for turning it off.

@rmiller Please add people from DE who will handle this so that Jason can make sure they have proper access.

Flags: needinfo?(rmiller)

Adding more users to hala requires some effort, which includes adding users to a separate duo account, adding ssh access to both a bastion host and hala.

Is it necessary for everyone to have access to hala? Have alternatives been considered like protodash?

Hrm... I don't think there's any way to do this w protodash... the idea is that we connect a notebook to this data set so a candidate can do some interactive coding exercises during an interview. We want the data set to be accessible during the interview, but to be turned off immediately afterwards so the data set doesn't leak. Su and Xuan came up w the hala strategy, if you know of a better way to manage this I'm sure we're open to it.

On this side we'd like Marina to be able to turn the access on and off. We'd also maybe want chutten and Alessio, but if adding more is burdensome we can just have it be Marina and take it from there.

Flags: needinfo?(rmiller)

(In reply to Rob Miller [:rmiller] from comment #7)

Hrm... I don't think there's any way to do this w protodash...

protodash is just a simple way to serve static content that is located in gcs. You could potentially just use gsutil cli tool to make objects in the gcs bucket public and private on demand.

For now hala might makes sense. I am currently working on adding Marina to hala (bug 1716620). If others need access please ask them to file a bug using the template here https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=81691528#metrics.mozilla.com&hala.data.mozaws.net-NewAccountSetup

You need to log in before you can comment on or make changes to this bug.