Skip to content

fix: add sso_entra_admin_groups to list field validator#2269

Merged
crivetimihai merged 2 commits intomainfrom
fix/issue-2265
Jan 24, 2026
Merged

fix: add sso_entra_admin_groups to list field validator#2269
crivetimihai merged 2 commits intomainfrom
fix/issue-2265

Conversation

@Lang-Akshay
Copy link
Copy Markdown
Collaborator

Problem

The sso_entra_admin_groups setting was missing from the _parse_list_from_env field validator, despite using Annotated[list[str], NoDecode()] annotation and supporting CSV/JSON format parsing.

All other similar list settings were properly validated:

  • sso_trusted_domains
  • sso_auto_admin_domains
  • sso_github_admin_orgs
  • sso_google_admin_domains
  • insecure_queryparam_auth_allowed_hosts

Solution

Added "sso_entra_admin_groups" to the @field_validator decorator at line 1530, ensuring environment variable values are properly parsed from CSV or JSON format strings.

Impact

  • SSO_ENTRA_ADMIN_GROUPS environment variable now correctly parses CSV and JSON formats
  • Consistent behavior with other list[str] SSO settings
  • Fixes missing validation that could cause parsing failures

Testing

Added test case to verify both CSV and JSON parsing formats work correctly for the field.

Closes #2265

Akshay Shinde and others added 2 commits January 24, 2026 16:36
- sso_entra_admin_groups now properly parses CSV/JSON from environment
- Closes #2265

Signed-off-by: Akshay Shinde <akshayshinde@dhcp-9-162-244-59.mul.ie.ibm.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai merged commit 62062fa into main Jan 24, 2026
53 checks passed
@crivetimihai crivetimihai deleted the fix/issue-2265 branch January 24, 2026 17:49
kcostell06 pushed a commit to kcostell06/mcp-context-forge that referenced this pull request Feb 24, 2026
* fix: add sso_entra_admin_groups to list field validator

- sso_entra_admin_groups now properly parses CSV/JSON from environment
- Closes IBM#2265

Signed-off-by: Akshay Shinde <akshayshinde@dhcp-9-162-244-59.mul.ie.ibm.com>

* style: fix missing blank lines in test_config.py

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>

---------

Signed-off-by: Akshay Shinde <akshayshinde@dhcp-9-162-244-59.mul.ie.ibm.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Akshay Shinde <akshayshinde@dhcp-9-162-244-59.mul.ie.ibm.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE][AUTH]: Add sso_entra_admin_groups to _parse_list_from_env validator

2 participants