Skip to content

Update signing keys to 4096bit

What does this MR do and why?

We increase the key length for ci_jwt_signing_key and ci_job_token_signing_key from 2048bit to 4096bit.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Example below:

  1. Connect to Gitlab Database and check if the key is in the database

    SELECT encrypted_ci_jwt_signing_key FROM application_settings; SELECT encrypted_ci_job_token_signing_key FROM application_settings;

  2. You can update the exiting key as already described here https://docs.gitlab.com/ee/ci/secrets/id_token_authentication.html#troubleshooting

   key = OpenSSL::PKey::RSA.new(4096).to_pem

  ApplicationSetting.find_each do |application_setting|
    application_setting.update(ci_jwt_signing_key: key)
  end
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading