Remove resource if not authorized
What does this MR do and why?
Fix https://gitlab.com/gitlab-org/gitlab/-/issues/471277.
If API(IDE) provides a resource, and if that resource is not authorized, we nullify that and continue the AI completion process, instead of aborting chat.
We also remove the duo_chat_set_warden
feature flag, because this fix requires that to default to true.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Demo (private video) https://youtu.be/v4sy0lm_Qcc
How to set up and validate locally
- Create a group SSO protected project
- Set up IDE to link to GDK
- Clone & open the project in IDE
- In IDE, type 'hihi' in duo chat
- We should receive response
Edited by Mark Chao