Feat(Q): Identity provider info and FE for AmazonQ admin
- Feature branch: DRAFT: Amazon q spike (!174614 - closed)
- Side note: This was originally developed in a private fork by GitLab team members in collaboration with Amazon's team.
What does this MR do and why?
This MR sets up the FE for the Amazon Q admin settings. It also adds the IdentityProviderPayloadFactory which is used to pull information needed to register an Amazon identity provider.
Screenshots or screen recordings
| When not connected | When connected |
|---|---|
![]() |
![]() |
How to set up and validate locally
Prerequisites:
- You'll need to make sure you have an Ultimate license and AI features setup on your GDK. See these instructions.
- For now, you'll need to ensure that
CLOUD_CONNECTOR_SELF_SIGN_TOKENS=1is set.
Instructions for these changes:
- Enable the feature flag
amazon_q_integrationwithFeature.enable(:amazon_q_integration)in a rails console - Visit Admin > Settings > General and look for
GitLab Duo with Amazon Qsection. Click View configuration setup. - Review that the page loaded with no errors.
To test this view for when Amazon is connected:
-
Start a rails console with
rails c. -
Update the
Ai::Settings.instancerecord with something like (2is just an arbitrary user ID):Ai::Setting.instance.update(amazon_q_role_arn: 'test-arn', amazon_q_service_account_user_id: 2, amazon_q_ready: true)
Please note: It's expected that the FE buttons don't work right now. This is behind a feature flag and the functionality will be included in a future MR. See parent MR for more context.
Edited by Paul Slaughter

