Add service accounts options to a police drawer
What does this MR do and why?
This code change adds a new feature to display service account exceptions in a security policy interface. It creates a collapsible section that shows which service accounts are exempt from certain security policies. When users expand this section, it automatically loads the full account details (like names) from the server, but if that fails, it falls back to showing just the account IDs. The feature includes proper loading states, error handling, and comprehensive tests to ensure it works correctly in various scenarios. This enhancement helps users better understand which service accounts have exceptions to their security policies.
References
Screenshots or screen recordings
| Description | UI |
|---|---|
| Accounts option | service accounts.mov |
How to set up and validate locally
-
Enable feature flag
Feature.enable(:security_policies_bypass_options_tokens_accounts) -
Go to Secure -> Policies
-
New approval policy
-
Add exceptions for service accounts in advanced section (Policy Exception settings)
-
Save policy
-
Go back to policy list, click on updated policy, check exception section in a policy drawer
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 #558885 (closed)