feat: OIDC group-to-role mapping and various improvements#4
Closed
pezzking wants to merge 1 commit intoleonmeijer:mainfrom
Closed
feat: OIDC group-to-role mapping and various improvements#4pezzking wants to merge 1 commit intoleonmeijer:mainfrom
pezzking wants to merge 1 commit intoleonmeijer:mainfrom
Conversation
OIDC Group Mapping: - Add automatic role assignment based on OIDC group membership - Support global admin groups via OIDC_ADMIN_GROUPS env var - Add OIDC_ROLE_CLAIM config for custom group claim name - Add OIDC_SYNC_ROLES_ON_LOGIN to sync roles on every login - New Settings > OIDC Groups page for UI configuration - Support both env var config and per-environment database config - Auto-create database record when saving with global OIDC config Backend: - Add group mapping fields to oidc_providers table (migration 007) - Update auth service with group extraction and role mapping logic - Add OIDC provider CRUD endpoints for environment configuration - Make PULSAR_CLUSTER configurable via environment variable Frontend: - Add OIDCSettingsPage for group mapping configuration - Add OIDC Groups navigation item in sidebar - Update API hooks and types for OIDC provider config Documentation: - Update README with OIDC group mapping documentation - Add .env.example with all configuration options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OIDC_ADMIN_GROUPSenv varFeatures
OIDC Group Mapping
OIDC_ROLE_CLAIM, default:groups)developers→developer,platform-team→admin)is_global_admin=Trueto usersOIDC_SYNC_ROLES_ON_LOGIN)New Environment Variables
OIDC_ROLE_CLAIMgroupsOIDC_ADMIN_GROUPSOIDC_SYNC_ROLES_ON_LOGINtruePULSAR_CLUSTERstandaloneChanges
Backend
oidc_providerstable (migration 007)GET/POST/PUT/DELETE /{env_id}/oidc-provider)Frontend
OIDCSettingsPagefor configuring group mappingsDocumentation
.env.examplewith all configuration optionsTest plan
OIDC_ADMIN_GROUPS=adminsand verify users in that group become global adminsOIDC_SYNC_ROLES_ON_LOGIN=trueto verify role removal when user leaves group🤖 Generated with Claude Code