Adding a new team member to the Modernisation Platform
There are a few things to do when a new team member joins:
- Add them to the team page
- Add them to our GitHub team
If they need access to our AWS landing zone:
- (Optional) Add them as a superadmin to our AWS landing zone
Adding them to the team page
To add them to our team page, update the file at source/team/team.html.md.erb with:
- their name and job title
- an updated count of team members
Submit a pull request and when it’s merged, they will appear on our team page.
You can view a sample PR in case you get stuck.
Adding them to PagerDuty
User details and on-call rotas are held in the pagerduty_users secret in AWS Secrets Manager, not in the repository. Follow the steps in the PagerDuty Terraform README to add them and put them on the rota, then run the terraform-pagerduty.yml workflow manually from main to apply the change.
Changing the rota shifts who is on call. Applying updates the existing PagerDuty schedules in place, but the rotation is calculated from a fixed start date (
rotation_virtual_start, 2022-07-25) and each person’s position in the list. Reordering, adding or removing anyone inrotasorocto_platform_operationstherefore changes who is on call, including for the current week. The Terraform plan shows only(sensitive value), so it will not reveal this.
- Make rota changes during working hours and tell the team beforehand, so anyone whose on-call slot moves is aware.
- Before applying, note who is currently on call in the PagerDuty schedules for “Modernisation Platform (primary)” and “(secondary)” (and the OCTO Platform Operations schedules if changed).
- After applying, check the same schedules again. If the current or next on-call person is not who was agreed, fix the order in the secret and re-run the workflow, and let the people affected know.
Adding them to our GitHub team
To add them to our GitHub team, update the file at terraform/github/locals.tf with:
- their GitHub username either in:
- the
general_memberslist, if they don’t need access to AWS - the
engineerslist, if they do need access to AWS via AWS SSO
- the
If they are a GitHub organisation owner, add them to the maintainers list too. This is because GitHub will return their role as a maintainer, because GitHub organisation owners always have those permissions.
You can view a sample PR in case you get stuck. Please note that the sample PR is on the modernisation-platform repository, but the change needs to be made on the modernisation-platform-github repository.
Adding them as a superadmin in our AWS landing zone
To add them as a superadmin in our AWS landing zone, add their firstname.lastname in the modernisation-platform-terraform-iam-superadmins main.tf file.
You can optionally add a Keybase username to obtain the initial password as a PGP encrypted output.
You can view a sample PR in case you get stuck.
Once your PR has been merged, create a new GitHub release for the IAM superadmins module sample release.
In your local Modernisation Platform repository clone:
- Update the module reference sample PR
cdinto modernisation-platform/terraform/modernisation-platform-account- Run
terraform planwith your superuser credentials to check the new user will be successfully added - Complete a pull request to allow the CI workflow to conduct
terraform applyand add the new IAM user.
Once their IAM user has been created, log into the AWS console yourself and:
- switch into the
superadminrole in the Modernisation Platform account - go to their IAM user in IAM Users
- go to the Security Credentials tab
- call the user and assign an MFA device with them
- configure console access with an autogenerated password and require a password reset on their next login