Hide token selector for service accounts bypass option
What does this MR do and why?
This code change temporarily disables a token selector feature in a security policy editor interface. The developers added a flag called showTokenSelector that's set to false, which hides the token selection functionality from users. They also removed token-related code from the service account creation process and updated tests accordingly. The comments indicate this is a temporary measure while they wait for the backend system to be ready to handle token processing, with plans to re-enable the feature later once the backend work is complete.
References
Screenshots or screen recordings
| Description | UI |
|---|---|
| Service account without tokens | service acccounts.mov |
How to set up and validate locally
Enable feature flag:
Feature.enable(:security_policies_bypass_options)
- Secure -> Policies
- New merge request approval policy
- Open Advanced settings
- Click add exception button
- Select
Service accountsoption - If you dong't have service accounts go to settings service accounts, create severa
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #557057 (closed)