You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Analysis and summary report of the issues related to "Hostname", "Admin Console" and "Proxy" problems #20571
@vmuzikar => Would you be able to provide some summary and suggested actions to help to resolve the hostname issues? @abstractj => that would be fantastic to understand what are the next steps.
The summary:
When reading the issues related to the umbrella issue number #14666 and filling out the spreadsheet aforementioned, I noticed that a large part of the complaints and "pains" are due to misunderstanding or confusion in the use of variables:
KC_HOSTNAME_URL;
KC_HOSTNAME_PORT;
KC_HOSTNAME_ADMIN;
KC_HOSTNAME_ADMIN_URL;
KC_HTTP_ENABLED;
KC_HOSTNAME_STRICT;
KC_HOSTNAME_STRICT_HTTPS;
KC_PROXY;
In addition to the inherent difficulties in how to properly configure the Proxy, headers forwarding, and details regarding HTTPS/TLS/Certificates, depending on each scenario and environment on the User/Developer side.
IMHO, the suggested actions to minimize such problems would be:
Discuss improving variable names to try to make them clearer, simpler and more concise;
Improve the documentation by including examples of real-world configurations based on the most common scenarios. Include examples with snippets from Dockerfiles, docker-compose and Kubernetes deployment files;
Improve error messages in the Backend and Frontend to make them clearer, more useful and relevant;
Include a Wizard option in the kc.sh | kc.bat CLI tool, in which the User can answer objective questions about their scenario and at the end the tool shows the recommended configuration for the variables described above. See more in the open discussion here.
Discuss improving variable names to try to make them clearer, simpler and more concise;
Do you have anything specific in mind? In any case, this would be a breaking change and it would require a proper deprecation process (which we still need to figure out).
Improve the documentation by including examples of real-world configurations based on the most common scenarios. Include examples with snippets from Dockerfiles, docker-compose and Kubernetes deployment files;
That makes sense to me. I think we can omit specific examples for Docker and K8s (as it would be probably out of scope for docs and rather suitable for a Quickstart). I'd focus on configuration via CLI (as we do for most parts of the docs) but mention some specific use cases from the issues you analysed maybe.
Improve error messages in the Backend and Frontend to make them clearer, more useful and relevant;
Could you please elaborate? The root cause of the issues is that some resources can't be loaded in browser, if I understand correctly. What is your proposal around error messages in these cases?
Include a Wizard option in the kc.sh | kc.bat CLI tool, in which the User can answer objective questions about their scenario and at the end the tool shows the recommended configuration for the variables described above. See more in the open discussion here.
That sounds like a bigger task which would have to be done as a follow-up.
In the context of Keycloak 22, I think we could go with option 2. We could reconsider other options based on feedback we receive after that. WDYT?
I'm working on improvements on docs and I hope to create a DRAFT PR in the next days to let the Team already able to provide some feedback against the changes.
Activity
andre-nascimento6791 commentedon May 26, 2023
Find the spreadsheet draft at:
https://docs.google.com/spreadsheets/d/1PH7BVYpO1GXWIh3Mm8Q_G0pKGlR3VSwZyJn1CyM3oCs/edit?usp=sharing
[WIP]
abstractj commentedon May 31, 2023
@andre-nascimento-rh it seems you need to make the access to the spreadsheet public
andre-nascimento6791 commentedon Jun 5, 2023
I finished the first round of fulfillment on the aforementioned spreadsheet.
@abstractj , @vmuzikar and @keycloak/cloud-native , please take a look and feel free to comment out, collaborate and improve.
Thanks.
abstractj commentedon Jun 5, 2023
It seems that the link is broken, but I was able to access the spreadsheet by going to https://docs.google.com/spreadsheets/d/1PH7BVYpO1GXWIh3Mm8Q_G0pKGlR3VSwZyJn1CyM3oCs/edit?usp=sharing
andre-nascimento6791 commentedon Jun 6, 2023
@abstractj , fixed.
Thanks.
vmuzikar commentedon Jun 6, 2023
@andre-nascimento-rh Thank you for the update. I'll go through the report in the spreadsheet.
Would you be able to provide some summary and suggested actions to help to resolve the hostname issues?
abstractj commentedon Jun 6, 2023
+1 @andre-nascimento-rh that would be fantastic to understand what are the next steps.
andre-nascimento6791 commentedon Jun 7, 2023
@vmuzikar =>
Would you be able to provide some summary and suggested actions to help to resolve the hostname issues?@abstractj =>
that would be fantastic to understand what are the next steps.The summary:
When reading the issues related to the umbrella issue number #14666 and filling out the spreadsheet aforementioned, I noticed that a large part of the complaints and "pains" are due to misunderstanding or confusion in the use of variables:
In addition to the inherent difficulties in how to properly configure the Proxy, headers forwarding, and details regarding HTTPS/TLS/Certificates, depending on each scenario and environment on the User/Developer side.
IMHO, the suggested actions to minimize such problems would be:
Discuss improving variable names to try to make them clearer, simpler and more concise;
Improve the documentation by including examples of real-world configurations based on the most common scenarios. Include examples with snippets from
Dockerfiles,docker-composeand Kubernetes deployment files;Improve error messages in the Backend and Frontend to make them clearer, more useful and relevant;
Include a Wizard option in the
kc.sh | kc.batCLI tool, in which the User can answer objective questions about their scenario and at the end the tool shows the recommended configuration for the variables described above. See more in the open discussion here.WDYT?
Thanks.
vmuzikar commentedon Jun 7, 2023
@andre-nascimento-rh Thanks for the summary.
Do you have anything specific in mind? In any case, this would be a breaking change and it would require a proper deprecation process (which we still need to figure out).
That makes sense to me. I think we can omit specific examples for Docker and K8s (as it would be probably out of scope for docs and rather suitable for a Quickstart). I'd focus on configuration via CLI (as we do for most parts of the docs) but mention some specific use cases from the issues you analysed maybe.
Could you please elaborate? The root cause of the issues is that some resources can't be loaded in browser, if I understand correctly. What is your proposal around error messages in these cases?
That sounds like a bigger task which would have to be done as a follow-up.
In the context of Keycloak 22, I think we could go with option 2. We could reconsider other options based on feedback we receive after that. WDYT?
andre-nascimento6791 commentedon Jun 8, 2023
Ok, @vmuzikar, I've got it and makes sense.
I'm working on improvements on docs and I hope to create a DRAFT PR in the next days to let the Team already able to provide some feedback against the changes.
Thanks.
vmuzikar commentedon Jul 10, 2023
The analysis is done and visible in the linked spreadsheet