Duo Chat in UI: Error Returned From Chat When Viewing Project Issue as Non-Member
Summary
Environment: GDK (self-managed)
GitLab Version: GitLab Enterprise Edition 16.8.0-pre 6d421113
When viewing a public issue in a public project, if a user who is not a member of that project tries to send a message to Duo Chat, they will receive an error Error: The resource that you are attempting to access does not exist or you don't have permission to perform this action
Steps to reproduce
- Log into GDK as User A
- Create a new public group and project
- Create a new issue in the project
- Log out and log in as a new user, User B
- Visit the issue that was just created as User B
- Open up Duo Chat by clicking Help > GitLab Duo Chat from the left sidebar
- Type any prompt, ex:
Write a linear search method in Ruby
What is the current bug behavior?
An error will display in the chat UI: Error: The resource that you are attempting to access does not exist or you don't have permission to perform this action
What is the expected correct behavior?
An error should not display and the user should receive a response to their prompt
Relevant logs and/or screenshots
Screen_Recording_2024-01-16_at_6.34.26_PM
Note: I did not see any additional logs get printed at the time of this error with tail -f gitlab/log/llm.log