Closed Bug 1899833 Opened 2 years ago Closed 2 years ago

Requesting deployment GitHub user in mozilla-fakespot org named fakespot-deploy

Categories

(mozilla.org :: Github: Administration, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rvasilyev, Assigned: ctb)

Details

Name: Fakespot Deploy
Mozilla Email: no email if possible
Github Profile link: no profile if possible
Github Team(s) REQUIRED: dependency-deployment

No longer depends on: 1898618

Hi Roman, so GitHub best practices are always apps and actions. But if that's not possible, there are other options, depending.

However "bot" accounts (which are just GitHub accounts that don't actually have a real human - and in our case, LDAP - behind them) can't be members of an org, because they can't SAML in. So that's not a direct option.

We have several uses (Jira Sync is one) where there is a "bot" account, and that account is simply added to the repositories in question by a repo admin as an outside collaborator. (Which sounds like you have to do something special, but you just invite the account in).

However, in order to maintain access - DO NOT have the account simply be associated by your email address - SecOps wrote up a nice doc on best practices for creating shared accounts. (Making sure the email associated with it is a Google group with all interested parties in it, storing passwords and MFA in a shared vault, etc.), see https://mozilla-hub.atlassian.net/l/cp/yA16Eim1 for more guidance.

Assignee: nobody → cbrentano
Status: NEW → ASSIGNED

Thank you for quick reply. Sounds like we can create github app in https://github.com/mozilla-fakespot org. Just can't find this option, can somebody lead me first time with it?

A request to install Fakespot Deployment has been submitted on the @mozilla-fakespot account.
but: This app will have read access to public resources
We need read access to private resources

Thanks Roman, since this is a brand new app it's going to need SecOps to do an RRA, especially since it needs access to private repos.

Hal & Clovis -- Passing this to you for review/RRA/etc.

Flags: needinfo?(hwine)
Flags: needinfo?(cfoji)

let me put request for shared user fakespot-deployment@mozilla.com, but also I need access to it's email account

Make sure you check the instructions above for setting up a Google Group for the service account. That will provide you with an email address for the group.

:rvasilyev -- we have some confusion here. It's either a GitHub App, or it's a bot account -- it can't be both. Please clarify, or consult with SRE to determine an appropriate approach for your needs.

FYI :dlactin is working on standard deploy apps for SRE - can you coordinate with him, please, to see if the same approach works for FakeSpot?

Flags: needinfo?(rvasilyev)
Flags: needinfo?(dlactin)

thank you for recommendations, I think we will go with "shared service account" for now, if something goes wrong we will try "GitHub App"

Flags: needinfo?(rvasilyev)

Unfortunately, we won't be able to use the same approach here.

They would have to investigate and change the action used to pull ruby gems from private repos to accommodate authorization via the GitHub app. It's likely something worth investigating in the future, but going the shared service account path would get them unblocked faster.

Flags: needinfo?(dlactin)

:rvasilyev -- please remember to notify security of the bot account

Flags: needinfo?(rvasilyev)

Thank you for all advices, "bot account" works fine in our deployments, so I think we can close this ticket, or if I still not notified some people please lead me here.

Flags: needinfo?(rvasilyev)

As long as you've setup the bot account to be shared per the directions from comment 1, and notified security - I think you're good to go.

Clearing needinfos, and closing out.

But if you need any assistance, let us know.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(hwine)
Flags: needinfo?(cfoji)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.