Skip to content

R2Devops 1.31.1 Release

Docker Image Versions

  • Backend: v1.29.0
  • Frontend: v1.27.4

Chart Helm Version

v0.19.2

πŸ”’ New Authentication System

The old authentication system, previously implemented with Ory Kratos, has been replaced with a simpler and more straightforward system.

πŸ”„ Migration for Self-managed instance

To upgrade from a self-managed R2Devops instance in version < 0.31.0 to a version >= 0.31.0, you need to do some manual steps. Here what's you need to do depending of your installation method:

- Docker compose installation

  1. Go to your installation folder
    cd <path>/r2devops
    
  2. Update your repository
    git pull
    
  3. Update your .env file
    1. Update FRONTEND_IMAGE_TAG to v1.27.4
    2. Update BACKEND_IMAGE_TAG to v1.29.0
    3. Move the client_id value from the GITLAB_OIDC variable to a new variable nammed GITLAB_OAUTH2_CLIENT_ID
    4. Move the client_secret value from the GITLAB_OIDC variable to a new variable nammed GITLAB_OAUTH2_CLIENT_SECRET
    5. Remove the variables GITLAB_OIDC, KRATOS_DB_PASSWORD, KRATOS_SECRETS_COOKIE, KRATOS_SECRETS_CIPHER, KRATOS_SECRETS_DEFAULT, KRATOS_DOMAIN, KRATOS_PATH, KRATOS_URL, KRATOS_DB_USER, KRATOS_DB_NAME and KRATOS_DSN
    6. Create a new variable SECRET_KEY with the result of openssl rand -hex 32 as value
  4. Update your .docker/r2devops/config.json file
    1. Remove the line containing the key apiUrlIdentities
  5. Update your GitLab application
    1. Find your R2Devops application in GitLab. It is generally stored in the admin section or in a settings of a group
    2. Edit your application
      1. Update Redirect URI with following addresse (replace <your-domain>): https://r2devops.<your-domain>/api/auth/gitlab/callback
      2. Update scopes by checking api and unchecking everything else
      3. Save it
  6. Restart R2Devops
    docker compose up -d --remove-orphans
    

- Docker compose with custom certs installation

  1. Go to your installation folder
    cd <path>/r2devops
    
  2. Update your repository
    git pull
    
  3. Update your .env file
    1. Update FRONTEND_IMAGE_TAG to v1.27.4
    2. Update BACKEND_IMAGE_TAG to v1.29.0
    3. Move the client_id value from the GITLAB_OIDC variable to a new variable nammed GITLAB_OAUTH2_CLIENT_ID
    4. Move the client_secret value from the GITLAB_OIDC variable to a new variable nammed GITLAB_OAUTH2_CLIENT_SECRET
    5. Remove the variables GITLAB_OIDC, KRATOS_DB_PASSWORD, KRATOS_SECRETS_COOKIE, KRATOS_SECRETS_CIPHER, KRATOS_SECRETS_DEFAULT, KRATOS_DOMAIN, KRATOS_PATH, KRATOS_URL, KRATOS_DB_USER, KRATOS_DB_NAME and KRATOS_DSN
    6. Create a new variable SECRET_KEY with the result of openssl rand -hex 32 as value
  4. Update your .docker/r2devops/config.json file
    1. Remove the line containing the key apiUrlIdentities
  5. Update your GitLab application
    1. Find your R2Devops application in GitLab. It is generally stored in the admin section or in a settings of a group
    2. Edit your application
      1. Update Redirect URI with following addresse (replace <your-domain>): https://r2devops.<your-domain>/api/auth/gitlab/callback
      2. Update scopes by checking api and unchecking everything else
      3. Save it
  6. Restart R2Devops
    docker compose -f compose.custom_certs.yml up -d --remove-orphans
    

- Kubernetes installation

  1. Update the helm repository
    helm repo update
    
  2. Only if you use secrets: add new keys secret-key, gitlab-oauth2-client-id and gitlab-oauth2-client-secret in your secret named r2devops-secret as described in the first point of "Secrets" section of the documentation
  3. In your custom value file:
    1. Update it as described in the first point of "R2Devops" section of the documentation
    2. Remove the top-level key kratos and everything after that
  4. Update your GitLab application
    1. Find your R2Devops application in GitLab. It is generally stored in the admin section or in a settings of a group
    2. Edit your application
      1. Update Redirect URI with following addresse (replace <your-domain>): https://r2devops.<your-domain>/api/auth/gitlab/callback
      2. Update scopes by checking api and unchecking everything else
      3. Save it
  5. Run the helm upgrade (replace both values <your-namespace> and <custom-value-file-path> before running the command)
    helm upgrade -n <your-namespace> --install r2devops r2devops/r2devops -f <custom-value-file-path>.yaml
    

πŸ—ΊοΈ Analysis Dashboard Roadmap

Explore the future enhancements planned for the Analysis Dashboard by referring to the newly added Roadmap.

Dashboard Analysis roadmap

πŸ”§ Minor Updates and Improvements

  • A new column listing replacement candidates for hardcoded jobs has been added in the maintainability tab of the dashboard.
  • Tally forms will now open in a new tab instead of being embedded within the platform.
  • Added tags filter for containers in the Security / Containers tab.
  • External links to GitLab projects are now provided every time they are listed.