Skip to content
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

Set sslRequired=NONE by updating DB #283

Merged
merged 1 commit into from
May 29, 2020
Merged

Set sslRequired=NONE by updating DB #283

merged 1 commit into from
May 29, 2020

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented May 28, 2020

Reference issue

https://issues.redhat.com/browse/CRW-765

What does this PR do

Set ssl_required to NONE for master realm using db query instead of admin scripts.
Restarts keycloak pod to reload keycloak

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Copy link
Contributor

@davidfestal davidfestal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK for me. Just asked a question on a detail.

@@ -67,7 +67,7 @@ func GetKeycloakProvisionCommand(cr *orgv1.CheCluster, cheHost string) (command
"$realmDisplayName", realmDisplayName,
"$keycloakClientId", keycloakClientId,
"$keycloakTheme", keycloakTheme,
"$cheHost", cheHost,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that it was passed as an argument because at the point in time, the status was still not updated with the last changes (http to https for example) ?
Maybe a dumb question, but still asking ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so.
Previously it was

	cheHost := instance.Spec.Server.CheHost
	keycloakProvisionCommand := deploy.GetKeycloakProvisionCommand(instance, cheHost)

I think it is just some leftovers.

@tolusha tolusha merged commit b9fe55c into master May 29, 2020
@tolusha tolusha deleted the sslrequired branch May 29, 2020 13:31
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.

None yet

3 participants