opensafely-core / sysadmin

Various scripts and tools for administering OpenSAFELY organisation and infrastructure
0 stars 0 forks source link

Migrate infrastructure repositories to opensafely-core organisation #12

Closed bloodearnest closed 3 years ago

bloodearnest commented 3 years ago

We want to move the open source infra projects (e.g. job-runner, job-server, output-publisher, opensafely-cli, etc) into a separate organisation, for a few reasons.

Firstly, it provides a clear security barrier between research studies and operational code. Currently, this is managed through Github's teams via manage-github.py script, but it's not very clean, and increasingly a maintain burden. Moving sensitive repos to an external org means we can differentiate researchers and developers more clearly.

Secondly, it improves our researcher onboarding capabilities. We can more easily add members to opensafely org, and split them into teams with different repo access.

Thirdly, it makes the opensafely organisation all about the users of opensafely, containing just studies and supporting documentation, and the opensafely-core organisation all about the developers of the platform.

Fourthly, it makes things simpler. It reduces the the number of repos in the opensafely org, researchers are less likely to be confused by infra repos, some things are simpler to implement - e.g. updating all repos, or job-server repo selection logic, as it doesn't have to filter out the infra repos.

bloodearnest commented 3 years ago

repositories to be moved

private

missed

other tasks

bloodearnest commented 3 years ago

Migration questions

bloodearnest commented 3 years ago

Migration TODOs (WIP)

madwort commented 3 years ago
  • do we want to move s/master/main at the same time?

looking like a hard no

bloodearnest commented 3 years ago
  • do we want to move s/master/main at the same time?

looking like a hard no

Yeah, lets make the delta as small as possible

madwort commented 3 years ago

update developers local repos

sed -i -e 's/github.com:opensafely/github.com:opensafely-core/' .git/config or sed -i -e 's?https://github.com/opensafely?https://github.com/opensafely-core?' .git/config

madwort commented 3 years ago

@bloodearnest just came across this old ticket - all done I think