Skip to content

Add task to inform Dedicated about critical security release

What does this MR do and why?

Describe in detail what your merge request does and why.

Add task to inform Dedicated about critical security release.

Critical security issue

Critical security patch release: 16.0.2, 15.11.6, 15.10.8

First steps

  • Set the Due date on this issue with the planned Security publish date
  • Disable Omnibus nightly builds by setting the schedules to inactive: https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipeline_schedules. This prevents us accidentally revealing vulnerabilities before the release.
  • Post a message on the #quality Slack channel to notify the Quality team that a security release is in progress:

Hello team, the security release has started (<link_to_this_issue>) and Omnibus nightly builds are now disabled. The GitLab ChatOps bot will post a notification to this channel when the security release is complete.

  • Ensure that Canonical, Security and Build repositories are synced:

    # In Slack
    /chatops run mirror status
  • Post a comment on https://gitlab.com/gitlab-jh/gitlab-jh-enablement/-/issues/112 to notify JiHU of the upcoming security release.

  • Post a message on the #g_engineering_productivity channel to let them know that the secuirty release preperation has started. EP will use this information to quickly respond to pipeline failures to keep us unblocked

  • Post a message on the #g_runner Slack channel to notify the Runner team that a security release is in progress and that it will be published on the due date.

  • Verify if there are security fixes for projects under GitLab managed versioning model. If there are, adjust this issue following the instructions.

  • Post a message to #g_dedicated-team channel in Slack to inform about this critical security release. Dedicated will need to make a plan to patch their installations.

One day before the due date

  • Determine the security release manager from the schedule. Look for the security release manager of the latest released monthly version
  • Post the following message to #sec-appsec in Slack: <security-release-manager> We are starting the [security release](<link to this issue>), aiming for release tomorrow. Please create a blog post MR on gitlab-org/security/www-gitlab-com.
  • Once the blog post MR has been created by the security release manager, add a link to it here: https://gitlab.com/gitlab-org/security/www-gitlab-com/-/merge_requests/
  • Fetch the list of non-security MRs that will be included in these releases:
    /chatops run release pending_backports
    • Crosslink the list to #sec-appsec letting the security release manager these should be included in the blog post.
  • Merge critical security merge requests using the UI.
    • Enable "Squash commits" option when merging.
  • Cherry-pick the security fixes into the auto-deploy branch that is running on production.
  • Wait for the tests on the auto-deploy branch to pass. This ensures that when we tag, we tag the security commits; not older commits.
  • Deploy all the fixes to production.
  • Merge all backports into the appropriate stable branches (if required)
  • Ensure tests are green in CE and green in EE
    # In Slack:
    /chatops run release status --security
  • If all the security issues have been deployed to production, consider tagging.

On the Due Date

Packaging

  • Ensure tests are green in CE and green in EE
    # In Slack:
    /chatops run release status --security

For the next task: Waiting between pipelines is necessary as they may otherwise fail to concurrently push changes to the same project/branch.

  • Tag the 16.0.2 security release, and wait for the pipeline to finish: /chatops run release tag --security 16.0.2

  • Tag the 15.11.6 security release, and wait for the pipeline to finish: /chatops run release tag --security 15.11.6

  • Tag the 15.10.8 security release, and wait for the pipeline to finish: /chatops run release tag --security 15.10.8

  • Check that EE and CE packages are built:

Deploy

Release

  • Publish 16.0.2 via ChatOps:

    /chatops run publish --security 16.0.2
  • Publish 15.11.6 via ChatOps:

    /chatops run publish --security 15.11.6
  • Publish 15.10.8 via ChatOps:

    /chatops run publish --security 15.10.8
  • Notify AppSec counterparts they can submit the blog post to https://gitlab.com/gitlab-com/www-gitlab-com/

  • Verify that the check-packages job completes:

  • Verify that Docker images appear on hub.docker.com: EE / CE

  • Deploy the blog post

  • Create the versions:

Final steps

  • Sync default branches for GitLab, GitLab Foss, Omnibus GitLab and Gitaly, via ChatOps:

    # In Slack
    /chatops run release sync_remotes --security
  • Verify all remotes are synced:

    # In Slack
    /chatops run mirror status

    If conflicts are found, manual intervention will be needed to sync the repositories.

  • Close the security implementation issues

    # In Slack
    /chatops run release close_issues --security
  • Notify engineers the security release is out (blog post link needs to be replaced with the actual link):

    /chatops run notify ":mega: GitLab Critical Security Release: 16.0.2, 15.11.6, 15.10.8 has just been released: <blog post link>! Share this release blog post with your network to ensure broader visibility across our community."
  • Enable Omnibus nightly builds by setting the schedules to active https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipeline_schedules

  • In case it was disabled, enable the Gitaly update task.

  • Close the critical security tracking issue

Normal security issue

Security patch release: 16.0.2, 15.11.6, 15.10.8

First steps

  • Set the Due date on this issue with the planned Security publish date
  • Disable Omnibus nightly builds by setting the schedules to inactive: https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipeline_schedules. This prevents us accidentally revealing vulnerabilities before the release.
  • Post a message on the #quality Slack channel to notify the Quality team that a security release is in progress:

Hello team, the security release has started (<link_to_this_issue>) and Omnibus nightly builds are now disabled. The GitLab ChatOps bot will post a notification to this channel when the security release is complete.

  • Ensure that Canonical, Security and Build repositories are synced:

    # In Slack
    /chatops run mirror status
  • Post a comment on https://gitlab.com/gitlab-jh/gitlab-jh-enablement/-/issues/112 to notify JiHU of the upcoming security release.

  • Post a message on the #g_engineering_productivity channel to let them know that the secuirty release preperation has started. EP will use this information to quickly respond to pipeline failures to keep us unblocked

  • Post a message on the #g_runner Slack channel to notify the Runner team that a security release is in progress and that it will be published on the due date.

  • Verify if there are security fixes for projects under GitLab managed versioning model. If there are, adjust this issue following the instructions. This is to synchronize the GitLab and the GitLab runner security release in case there is one planned.

  • Modify the dates below to accurately reflect the plan of action.

  • Verify pipelines on default and stable branches on GitLab are green:

  • Verify pipelines on the GitLab projects are green:

Early-merge phase

Up until the 27th, or one day before the Security Release due date

  • Merge the merge requests targeting default branches

    # In Slack
    /chatops run release merge --security --default-branch
  • Verify if a Gitaly security fix is included in the upcoming security release, if it is, follow the How to deal with Gitaly security fixes guide.

On the 27th (one day before due date)

If this date is on a weekend, do this work on the next working day.

  • Determine the security release manager from the schedule. Look for the security release manager of the latest released monthly version

  • Post the following message to #sec-appsec in Slack: <security-release-manager> We are starting the [security release](<link to this issue>), aiming for release tomorrow. Please create a blog post MR on gitlab-org/security/www-gitlab-com.

  • Once the blog post MR has been created by the security release manager, add a link to it here: https://gitlab.com/gitlab-org/security/www-gitlab-com/-/merge_requests/

  • Fetch the list of non-security MRs that will be included in these releases:

    /chatops run release pending_backports
    • Crosslink the list to #sec-appsec letting the security release manager these should be included in the blog post.
  • Check that all MRs merged into the default branch have been deployed to production:

    # In Slack:
    /chatops run auto_deploy security_status

    NOTE: This only checks gitlab-org/security/gitlab. If other projects have security MRs you should verify those manually.

  • Make sure to execute the post-deploy migration pipeline to ensure that all post-deploy migrations have been executed: /chatops run post_deploy_migrations execute

  • Unlink any security issues that are not ready from the security release tracking issue (in gitlab-org/gitlab), and post a comment listing the issues that have been removed, why they have been removed (the reason returned by the run release merge command), and ping the authors. Make sure to complete this step before merging backporta to avoid picking up unexpected changes

  • Merge backports and any other merge request pending:

    # In Slack:
    /chatops run release merge --security
  • Ensure all Merge Requets associated with Implementation Issues with label reduced backports are merged

  • If any merge requests could not be merged, investigate what needs to be done to resolve the issues. Do not proceed unless it has been determined safe to do so.

  • Ensure tests are green in CE and green in EE

    # In Slack:
    /chatops run release status --security
  • If all the security issues have been deployed to production, consider tagging.

On the Due Date

Packaging

  • Ensure tests are green in CE and green in EE
    # In Slack:
    /chatops run release status --security

For the next task: Waiting between pipelines is necessary as they may otherwise fail to concurrently push changes to the same project/branch.

  • Tag the 16.0.2 security release, and wait for the pipeline to finish: /chatops run release tag --security 16.0.2

  • Tag the 15.11.6 security release, and wait for the pipeline to finish: /chatops run release tag --security 15.11.6

  • Tag the 15.10.8 security release, and wait for the pipeline to finish: /chatops run release tag --security 15.10.8

  • Check that EE and CE packages are built:

Deploy

Release

  • Publish 16.0.2 via ChatOps:

    /chatops run publish --security 16.0.2
  • Publish 15.11.6 via ChatOps:

    /chatops run publish --security 15.11.6
  • Publish 15.10.8 via ChatOps:

    /chatops run publish --security 15.10.8
  • Notify AppSec counterparts they can submit the blog post to https://gitlab.com/gitlab-com/www-gitlab-com/

  • Verify that the check-packages job completes:

  • Verify that Docker images appear on hub.docker.com: EE / CE

  • Deploy the blog post

  • Create the versions:

Final steps

  • Sync default branches for GitLab, GitLab Foss, Omnibus GitLab and Gitaly, via ChatOps:

    # In Slack
    /chatops run release sync_remotes --security
  • Verify all remotes are synced:

    # In Slack
    /chatops run mirror status

    If conflicts are found, manual intervention will be needed to sync the repositories.

  • Close the security implementation issues

    # In Slack
    /chatops run release close_issues --security
  • Notify engineers the security release is out (blog post link needs to be replaced with the actual link):

    /chatops run notify ":mega: GitLab Security Release: 16.0.2, 15.11.6, 15.10.8 has just been released: <blog post link>! Share this release blog post with your network to ensure broader visibility across our community."
  • Enable Omnibus nightly builds by setting the schedules to active https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipeline_schedules

  • In case it was disabled, enable the Gitaly update task.

  • Close the old security release tracking issue and create a new one:

    # In Slack
    /chatops run release tracking_issue --security
  • Ping the next set of release managers on the upcoming security release issue and ask them to set the intended security release due date. If needed, suggest a possible due date based on the current release activities.

  • Check all new tags have synced to Canonical

  • Link the new security release tracking issue on the topic of the #releases channel, next to Next Security Release.

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports