Rotate Auth integration service account keys
Terraform can be used to rotate service account keys.
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_key#example-usage-creating-and-regularly-rotating-a-key
Somebody/something needs to run terraform plan ... && terraform apply ... to do the checks though.
If we do not rotate the keys, our build will fail every ~90 days.
I think you want something like:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_scheduler_job
Though now you want to think about what service account will run that job, and what permissions it will need to have.
Added the rotation in terraform, and instructions for how to run it.
I did not set up a scheduled job to do this. Unassigning, and leaving open.
@PhongChuong / @dbolduc can we close this?
Yes, we can close. Here is a successful run of terraform for rust-auth-testing triggered by the Scheduler job.
https://pantheon.corp.google.com/cloud-build/builds;region=us-central1/56d43a7a-6e22-4e17-908c-c667498b0dec?project=rust-auth-testing