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
- Semantic Code Search epic: Semantic search: chat with your codebase (gitlab-org#16910)
- Semantic Code Search doc: https://docs.gitlab.com/user/gitlab_duo/semantic_code_search/
- Related bug/issue submitted by Duo Core user: Semantic code (ActiveContext Code) search index... (#588259 - closed)
Screenshots or screen recordings
N/A
How to set up and validate locally
Check the update in Rails.
-
Set
GITLAB_SIMULATE_SAAS=0in your GDK/Rails environment variable -
Update your add-on to only have
duo_coreGITLAB_SIMULATE_SAAS=0 bundle exec 'rake gitlab:duo:setup[duo_core]' -
Generate a JWT token
token = Gitlab::AiGateway.cloud_connector_token('generate_embeddings_codebase', User.first) -
Decode the token
decoded_hash = JWT.decode(token, nil, false) -
Verify that the scopes include the
generate_embeddings_codebaseunit primitivedecoded_hash.first['scopes'].include?('generate_embeddings_codebase') => trueAdditional 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.