Skip to content

Simulate warden session for Duo Chat

Mark Chao requested to merge 470043-simulate-warden-in-sesssionless-sidekiq into master

What does this MR do and why?

Simulate warden session for Duo Chat

This ensures IDE chat will not skip group SSO verification.

This is based on !156934 (comment 1973160023).

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

https://youtu.be/T7MyZbEzIYw (private video)

How to set up and validate locally

  1. Enable fix_sso_enforcement_for_web_activity and duo_chat_set_warden feature flags
  2. Create a group, set up group SSO check, create an issue in that group
  3. Set up a test user, which is a member of that group
  4. Create an access token of that user, set it in VS Code
  5. Set up VS Code to link to GDK
  6. In VS Code chat, ask it to summarize the created issue.
  7. The prompt should return an error message

Related to #470043 (closed)

Edited by Mark Chao

Merge request reports