Closed Bug 1712808 Opened 5 years ago Closed 5 years ago

Grant Outreachy Intern external gmail access to AI Jupyter Notebook.

Categories

(Data Platform and Tools Graveyard :: Operations, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ccd, Unassigned)

Details

Intern will be performing work on this AI Notebook server:

Outreachy NDA doesn't grant intern LDAP access. Therefore, external gmail access must be used for intern to have access the notebook link.

Thanks!

This is going to require some investigation as previous Outreachy interns we've granted access to were provided LDAP credentials. Membership in groups that grant access to moz-fx-data-bq-data-science is currently restricted to accounts associated with LDAP. I will need to know e.g. if the Outreachy NDA covers access to mozilla-confidential data sources (implied by LDAP credentials).

What is the time frame for this access? I expect at least a week of delay in processing this request because it is novel and has policy implications. It would be much simpler from an access perspective if the intern was provided LDAP credentials.

Unfortunately, Outreachy changed their policy and didn't allow interns to be granted LDAP credentials.

The focus on the NDA is very similar to what was used in the Internet Outages project, where external collaborators were granted access to Mozilla private data via external gmail accounts. The design is for the intern to have access to our data at the client level. Therefore, I believe this should cover mozilla-confidential. I am working getting a copy of the final NDA, which I will send over to you (Wesley Dawson). In the meantime, I have set you a copy of an intermediate version to assess if this will work.

Would it be possible to expedite this process, once the final NDA is sent? The intern started this week, and is in limbo until the server can be accessed.

I'm not a lawyer and I don't think my assessment of the NDA really matters. If you could get a director or somebody from legal to comment on this bug indicating this access is permissible using a personal gmail address that would be the easiest way to move forward.

The difference between this access and Internet Outages is scope; write access to moz-fx-data-bq-data-science and read on all mozilla-confidential data sources is considerably broader than read access to a single dataset. Additionally, the current mechanism for granting access to data science includes some elevated permissions, namely access to stripe datasets from https://bugzilla.mozilla.org/show_bug.cgi?id=1665179 that are workgroup-confidential. I will probably need to create a separate subgroup of data science for this intern, add that group to mozilla-confidential, and grant access to the data science project for this subgroup to avoid granting access to stripe data. I can work on this once I have confirmation on the above.

Would it be simpler to create a new project, and limit access to specific BigQuery datasets in that project? The ultimate goal is to

  1. Provide access to the intern to a configurable AI Jupyter Notebook. Leif (in data science) and I will be configuring the notebook instance - not the intern.
  2. That can access derived BigQuery tables.

There is no need for the intern to have broad access across our BigQuery infrastructure. Nor is the moz-fix-data-bq-data-science project needed. I used it because I have permissions to create AI Notebooks in this project. Sorry for complicating matters.

I can generate the derived tables that the intern will query within this notebook.

If not, I can move forward with getting a Director to reply to this bug.

Thanks!

Would it be simpler to create a new project, and limit access to specific BigQuery datasets in that project?

I think this is probably a good idea. The policy issue remains, as your export of data from the main projects into the new project would be subject to the same access policies that govern the main projects.

I'm going to recommend you follow the procedure in https://github.com/mozilla/data-docs/blob/main/src/cookbooks/gcp-projects.md for creating a prototype sandbox project for the intern to use. That's constrained and time-boxed. While all service accounts within the project would be granted access to mozilla-confidential by default, we could potentially constrain that access if we wanted to (since the policy issue remains I don't think it matters one way or the other).

So in summary, I think you should use a separate project for this access (to avoid the stripe issues and to ensure proper cleanup of resources post internship) but I would still like some clarification from somebody on whether the NDA covers the data in question.

I spoke with :oremj and he believes we should require director and/or legal approval for this access. Since we don't control the gmail account we can't enforce e.g. MFA and that is a particular concern when accessing our GCP infrastructure. It also increases the likelihood that we should constrain this access as much as possible to the single project, removing full access to mozilla-confidential even if it is allowed by NDA.

Additionally I'm going to ask :ajvb to weigh in from an opsec perspective. Previously I've worked with :ajvb to clear granting mozilla foundation accounts access to gcp infrastructure. :ajvb, do you have an particular concerns about granting a non-corporate managed email access to infrastructure? If this access is approved, should we formulate or include separate auditing procedures for monitoring this access?

Flags: needinfo?(abahnken)

This request is on Emily Litka's radar, Emily can you confirm here once we're good to go from the legal front?

Flags: needinfo?(emily)

Here is the bug for a new GCP project.

I'm surprised to hear that we cannot give interns LDAP access. This is something that in my mind should've been raised well in advance, as it is a significant change from how we work with intern access controls.

(In reply to Wesley Dawson [:whd] from comment #6)

I spoke with :oremj and he believes we should require director and/or legal approval for this access. Since we don't control the gmail account we can't enforce e.g. MFA and that is a particular concern when accessing our GCP infrastructure. It also increases the likelihood that we should constrain this access as much as possible to the single project, removing full access to mozilla-confidential even if it is allowed by NDA.

I completely agree here. If we must go with a @gmail.com account, then I'd vote for a separate project that is tightly scoped.

Additionally I'm going to ask :ajvb to weigh in from an opsec perspective. Previously I've worked with :ajvb to clear granting mozilla foundation accounts access to gcp infrastructure. :ajvb, do you have an particular concerns about granting a non-corporate managed email access to infrastructure? If this access is approved, should we formulate or include separate auditing procedures for monitoring this access?

I don't have any additional concerns from what you've already raised. I would definitely want legal's sign off on this as well.

I'm not sure we'd want to formulate anything at this moment, as in my mind these (giving access to a GSuite user outside of MoFo, MoCo, and Pocket) should be very rare cases and handled as one-offs with great care.

In regards to additional auditing, probably not. It depends on what we do in the end. If we can give very tightly scoped access then we may not need it. I'd say we revisit auditing after we decide how we are going to approach this.

Flags: needinfo?(abahnken)

This is something that in my mind should've been raised well in advance, as it is a significant change from how we work with intern access controls.

Agreed, I'm not pleased that we're blocking an intern from being able to work but this really should have been raised at an earlier point. From comment #2 it appears this was a change on Outreachy's side, not ours.

I think to be abundantly cautious I'm going require approval from the following before proceeding:

Emily Litka - Legal
Aaron Blew - IT/SRE
Katie Parlante - Data Science

After which we can proceed with the provisioning of a project per bug #1713005. I will need to add an exclusion in provisioning logic to prevent service accounts in this project from having access to mozilla-confidential, and any other additional measures. Once that's in place, we can add the gmail account access to the specific project, and Corey and Lief will be responsible for populating derived data within it.

Flags: needinfo?(kparlante)
Flags: needinfo?(ablew)

NDA + Data Access and Use Agreement signed and completed

Signing off,
E

Flags: needinfo?(emily)

Approved, Katie

Flags: needinfo?(kparlante)

I'm approving for this one specific instance. Any future requests like this must have a similar review applied to them.

Do we have a contact at Outreachy? I'd like to make contact with them to better understand this change.

Flags: needinfo?(ablew)

Karen Sandler (karen@sfconservancy.org) and Sage Sharp (organizer@outreachy.org) are our contacts in regards to the request for a modified NDA.

https://bugzilla.mozilla.org/show_bug.cgi?id=1713005#c2 for instructions on how to move forward with migrating to the newly provisioned and mostly sequestered notebook instance.

The specific access is granted and :SuAnn and :ablew are handling procedural followups.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Product: Data Platform and Tools → Data Platform and Tools Graveyard
You need to log in before you can comment on or make changes to this bug.