-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add oidc configuration #1826
base: main
Are you sure you want to change the base?
Add oidc configuration #1826
Conversation
16b6926
to
1141f24
Compare
It was a decision not to expose authentication settings in values.yaml, b/c this is considered "day-2" settings, that admin will handle it after Harbor is installed. Similarly, we chose not to enable user to setup LDAP in values.yaml, such configuration can only be made by providing a JSON string in "configureUserSettings" |
This feature can be helpful with fully automated deployments and gitops environments like flux. I also added functionality to use exitsting incluster secret values. |
@reasonerjt please consider this feature, it helps in automated deployments regularly |
Not so long ago, CONFIG_OVERWRITE_JSON was introduced, to support upfront Harbor configuration. IMO it is also difficult to justify why 90% of harbor users, who install harbor via Helm Chats should not be able to use this feature, |
OIDC configuration is not daytwo in the world of gitops ... the only reason one would think that is if they are not using argocd/flux/kapp ... I most humbly wish to plant the seed that folks may wish to give argocd a try as you will definately like it, definitely start using it, and then you will definitely want to update the helm charts to work in a gitops manner... and you will love it... there's no question it is the right direction. This used to be in the helm chart in a comment:
|
Signed-off-by: Кунгуров Макар Евгеньевич <[email protected]>
…espace Signed-off-by: Кунгуров Макар Евгеньевич <[email protected]>
1a35a24
to
0ea36dd
Compare
@Vad1mo fixed unit test for trimmed json. Helm trims all the whitespace and line breaks, so it breaks tests |
Added oidc configuration in helm chart. User can provide existing client secret or insert it explicitly in values.
All configuration specified will be merged with configureUserSettings json and passed to CONFIG_OVERWRITE_JSON variable.
Additionally json merge provides validation of configureUserSettings, preventing passing invalid json into it.