Skip to content

Fix workspaces frontend auth feature flag

Chad Woolley requested to merge caw-rd-fix-fe-auth-feature-flag into master

Issue: Fix workspaces frontend auth feature flag (#460999 - closed)

What does this MR do and why?

In ca40cadf file ee/app/controllers/remote_development/workspaces_controller.rb, the frontend remote_development_namespace_agent_authorization feature flag check incorrectly used the user as the actor actor instead of the root namespace.

This MR fixes that to use group actor, not user.

Since we don't know the group until the user selects a project, this had to be done as a new API call from the frontend code.

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.

How to set up and validate locally

Set the remote_development_namespace_agent_authorization feature flag on and off for a root group, and observe that the new and old auth scheme is used.


closes Fix workspaces frontend auth feature flag (#460999 - closed)

Edited by Chad Woolley

Merge request reports