jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
16 stars 10 forks source link

[April 2024] Cloudflare API tokens are expired #4024

Closed dduportal closed 5 months ago

dduportal commented 5 months ago

We had a team-calendar alert the 1st of April 2024, shifted to the 2nd of April 2024 (as 1st is a banking day in a lot of locations) alerting us that the Cloudflare token(s) will expire.

These tokens are stored in the private repository https://github.com/jenkins-infra/terraform-states/blob/main/cloudflare/main.tf. It is confirmed that their expiration date is 2024-04-01: they are already expired.

Their purposes are:

=> all of this jobs are failing due to the expiration (see https://matrix.to/#/!JLUOInpEYmxJIYXlzs:matrix.org/$1iM95X460ArJA5h4YKqHAwoLNfjl-tRt_xhkXLFXe9A?via=g4v.dev&via=gitter.im&via=matrix.org)

Todo list:

smerle33 commented 5 months ago

Token renewed in (private repo) https://github.com/jenkins-infra/terraform-states/commit/1912f57c79d9129ae87f471a85b63e0f324980c7 for 3 months

dduportal commented 5 months ago

Updated the credentials with the new token values:

Next step: check jobs are going back to success with the new tokens

dduportal commented 5 months ago

On trusted.ci, both update center (build 887674) and crawler (build 14284) are back to successful state (with the new rotated tokens)

dduportal commented 5 months ago

The jenkins-infra/cloudflare terraform project is back to success when using the new credentials.

dduportal commented 5 months ago

Calendar updated:

dduportal commented 5 months ago

Note: automation is tricky as the jenkins-infra/terraform-states is a private repository which should NOT be accessed in infra.ci (separation of concerns to avoid putting all sensitive terraform data in the same location).

We might want to check GH action on private repository and/or another Jenkins controller