Iss11579 hostname strict https contexts fix#11823
Iss11579 hostname strict https contexts fix#11823DGuhr wants to merge 2 commits intokeycloak:mainfrom
Conversation
based on the table i'll add in a comment. Closes keycloak#11579
7ee66e4 to
2fdd1cc
Compare
| } | ||
|
|
||
| @Test | ||
| @Launch({ "start-dev", "--hostname=mykeycloak.127.0.0.1.nip.io", "--proxy=edge", "--hostname-strict-https=true" }) |
There was a problem hiding this comment.
this test made no sense anymore, bc strict https and proxy=edge is not valid.
|
The image EDIT: I now also tested with HTTPS internally between Keycloak and proxy. Setting |
|
to get a cross-link (thought that was done automatically): This PR is on hold atm. See the discussion here: #11856 |
|
closed, superseeded by #11872 |
UPDATE: to get a cross-link (thought that was done automatically): This PR is on hold atm. See the discussion here: #11856
This Draft PR should finally get rid of all the
HOSTNAME_STRICT_HTTPSissues.As said e.g. in #11579, the aforementioned config property was never meant to be visible to users. But as a matter of fact we messed up and it is now needed for many environments to actually work the way it is expected.
I would also love to get some feedback if this configuration would work for ppl without setting
hostname-strict-https=falsemanually.While I work on a way to automate this feedback, I uploaded an image containing these changes to quay.io, so feel free to try it out and provide feedback.
docker pull quay.io/dguhr/keycloak:test.This PR removes the need to set this property completely, it is "moved under the hood" depending on the rules in the following table:
Assumption: Keycloak gets started in production mode with http enabled. So invoked using:
kc.sh start --http-enabled=truefollowed by the configuration values you see in the table.