Skip to content

Analysis and summary report of the issues related to "Hostname", "Admin Console" and "Proxy" problems #20571

Closed

Description

@andre-nascimento6791

Description

As some complimentary actions to solve the Issue #14666, this task aims to achieve:

  • A deeper analysis of each issue aggregated under the umbrella Issue Admin console not loading and hostname related issues #14666; and

  • Create and fulfill a spreadsheet showing clearly and in a summarized way the following info about each Issue investigated:

    • Issue Id;
    • Issue Title;
    • Issuer Username;
    • Brief Issue Description;
    • Possible Cause of the Problem;
    • Proposed Solution/Workaround in Issue's Comments;
    • Status;
    • Additional Notes.
  • The spreadsheet link must be disclosed to all team members in order to allow a shared collaboration and transparency.

Activity

  1. added
    kind/bug
    priority/important
    area/admin/ui
    area/dist/quarkus
    on May 25, 2023
  2. added this to the 22.0.0 milestone on May 25, 2023
  3. andre-nascimento6791 commented on May 26, 2023

    @andre-nascimento6791
    ContributorAuthor
  4. abstractj commented on May 31, 2023

    @abstractj
    Contributor

    Find the spreadsheet draft at:

    docs.google.com/spreadsheets/d/1PH7BVYpO1GXWIh3Mm8Q_G0pKGlR3VSwZyJn1CyM3oCs/edit?usp=sharing

    [WIP]

    @andre-nascimento-rh it seems you need to make the access to the spreadsheet public

  5. andre-nascimento6791 commented on Jun 5, 2023

    @andre-nascimento6791
    ContributorAuthor

    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.

  6. abstractj commented on Jun 5, 2023

    @abstractj
    Contributor

    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.

    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

  7. andre-nascimento6791 commented on Jun 6, 2023

    @andre-nascimento6791
    ContributorAuthor

    @abstractj , fixed.

    Thanks.

  8. vmuzikar commented on Jun 6, 2023

    @vmuzikar
    Contributor

    @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?

  9. abstractj commented on Jun 6, 2023

    @abstractj
    Contributor

    @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?

    +1 @andre-nascimento-rh that would be fantastic to understand what are the next steps.

  10. removed
    kind/bug
    on Jun 6, 2023
  11. andre-nascimento6791 commented on Jun 7, 2023

    @andre-nascimento6791
    ContributorAuthor

    @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:

    1. Discuss improving variable names to try to make them clearer, simpler and more concise;

    2. 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;

    3. Improve error messages in the Backend and Frontend to make them clearer, more useful and relevant;

    4. 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.

    WDYT?

    Thanks.

  12. vmuzikar commented on Jun 7, 2023

    @vmuzikar
    Contributor

    @andre-nascimento-rh Thanks for the summary.

    1. 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).

    1. 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.

    1. 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?

    1. 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?

  13. andre-nascimento6791 commented on Jun 8, 2023

    @andre-nascimento6791
    ContributorAuthor

    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.

  14. vmuzikar commented on Jul 10, 2023

    @vmuzikar
    Contributor

    The analysis is done and visible in the linked spreadsheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/admin/uiarea/dist/quarkuskind/taskpriority/importantteam/cloud-native

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions