feat: rename uiScopes to uiScope and add loadUser OIDC option#91
Merged
Merged
Conversation
Reviewer's GuideRenames the OIDC UI scopes configuration and helper from plural to singular and introduces a new Helm value and template helper to control a UI_LOAD_USER environment variable for the server deployment. Flow diagram for updated OIDC Helm values to server environmentflowchart LR
subgraph Values
v_uiScope[oidc.uiScope]
v_loadUser[oidc.loadUser]
end
subgraph Templates
t_uiScope[trustification.oidc.uiScope]
t_loadUser[trustification.oidc.loadUser]
end
subgraph ServerDeployment
e_uiScope[env UI_SCOPE]
e_loadUser[env UI_LOAD_USER]
end
v_uiScope --> t_uiScope --> e_uiScope
v_loadUser --> t_loadUser --> e_loadUser
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Renaming
oidc.uiScopes→oidc.uiScope(andUI_SCOPES→UI_SCOPE) is a breaking change for existing values files; consider keepinguiScopesas a deprecated alias (or mapping it in the templates) to preserve backward compatibility. - The
trustification.oidc.loadUserhelper applies| quote, whiletrustification.oidc.uiScopeis quoted at the call site; for consistency and easier reuse, consider removing the quoting from the helper and quoting only where the value is injected into the YAML.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Renaming `oidc.uiScopes` → `oidc.uiScope` (and `UI_SCOPES` → `UI_SCOPE`) is a breaking change for existing values files; consider keeping `uiScopes` as a deprecated alias (or mapping it in the templates) to preserve backward compatibility.
- The `trustification.oidc.loadUser` helper applies `| quote`, while `trustification.oidc.uiScope` is quoted at the call site; for consistency and easier reuse, consider removing the quoting from the helper and quoting only where the value is injected into the YAML.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0f3100b to
6658e11
Compare
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.
Added
loadUserand updateduiScopeSummary by Sourcery
Rename the OIDC UI scopes configuration to a singular UI scope and introduce a configurable option to control loading of the OIDC user in the server deployment.
New Features:
loadUserOIDC option wired through to theUI_LOAD_USERenvironment variable.Enhancements:
uiScopesHelm value and helper touiScopeand update server deployment to use theUI_SCOPEenvironment variable instead ofUI_SCOPES.