From 3b1e7cfc6d65c42b1212bfcd624c260025d8426c Mon Sep 17 00:00:00 2001 From: "jenkins-infra-updatecli[bot]" <101213878+jenkins-infra-updatecli[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:23:06 +0200 Subject: [PATCH] Extend Azure AD Application password validity on `trusted.ci.jenkins.io` (current end date: 2024-09-02T00:00:00Z) (#801) This PR generates a new Azure AD application password with a new end date for the `trusted.ci.jenkins.io` controller (to allow spawning Azure VM agents). Once this PR is merged and deployed with success by Terraform (on infra.ci.jenkins.io), you can retrieve the new password value from the Terraform state with `terraform show -json` then searching for the new password in `values.value` of the `module.controller_service_principal_end_date` section (do NOT save it anywhere!) and (manually) update the trusted.ci.jenkins.io credential named `azure-jenkins-sponsorship-credentials` through the Jenkins UI. Finally, verify both Azure Credential and Azure VM clouds by checking that a click on the "Verify <...>" buttons returns a success, then restart the controller to ensure that the old credential is not kept in cache. ---

Generate new end date for the trusted.ci.jenkins.io controller Azure AD Application password

Update Terraform file `trusted.ci.jenkins.io.tf` with new expiration date

changes detected: path "module.controller_service_principal_end_date" updated from "2024-09-02T00:00:00Z" to "2024-11-20T00:00:00Z" in file "trusted.ci.jenkins.io.tf"

Jenkins pipeline link
---
Updatecli
logo

Created automatically by Updatecli

Options:

Most of Updatecli configuration is done via its manifest(s).

  • If you close this pull request, Updatecli will automatically reopen it, the next time it runs.
  • If you close this pull request and delete the base branch, Updatecli will automatically recreate it, erasing all previous commits made.

Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!

Co-authored-by: Jenkins Infra Bot (updatecli) <60776566+jenkins-infra-bot@users.noreply.github.com> --- trusted.ci.jenkins.io.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trusted.ci.jenkins.io.tf b/trusted.ci.jenkins.io.tf index 2dc3bdd7..5cc7d7e3 100644 --- a/trusted.ci.jenkins.io.tf +++ b/trusted.ci.jenkins.io.tf @@ -43,7 +43,7 @@ module "trusted_ci_jenkins_io" { controller_service_principal_ids = [ data.azuread_service_principal.terraform_production.id, ] - controller_service_principal_end_date = "2024-09-02T00:00:00Z" + controller_service_principal_end_date = "2024-11-20T00:00:00Z" controller_packer_rg_ids = [ azurerm_resource_group.packer_images["prod"].id ]