Update gitlab-cloud-connector gem to 1.44

What does this MR do and why?

Update gitlab-cloud-connector gem to v1.44. This adds duo_core to the list of allowed add-ons for generate_embeddings_codebase unit primitive.

See cloud-connector MR: Allow duo_core add-on for generate_embeddings_c... (gitlab-org/cloud-connector/gitlab-cloud-connector!232 - merged)

References

Screenshots or screen recordings

N/A

How to set up and validate locally

Check the update in Rails.

  1. Set GITLAB_SIMULATE_SAAS=0 in your GDK/Rails environment variable

  2. Update your add-on to only have duo_core

    GITLAB_SIMULATE_SAAS=0 bundle exec 'rake gitlab:duo:setup[duo_core]'
  3. Generate a JWT token

    token = Gitlab::AiGateway.cloud_connector_token('generate_embeddings_codebase', User.first)
  4. Decode the token

    decoded_hash = JWT.decode(token, nil, false)
  5. Verify that the scopes include the generate_embeddings_codebase unit primitive

    decoded_hash.first['scopes'].include?('generate_embeddings_codebase')
    => true

    Additional verification: without the update, this should return false.

MR acceptance checklist

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

Edited by Pam Artiaga

Merge request reports

Loading