Bug 57687 - Keycloak: Use cases does not specify to configure keycloak/server/sso/fqdn on non keycloak servers
Summary: Keycloak: Use cases does not specify to configure keycloak/server/sso/fqdn on...
Status: RESOLVED DUPLICATE of bug 57195
Alias: None
Product: UCS manual
Classification: Unclassified
Component: General
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Docu maintainers
QA Contact: Docu maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-22 11:05 CEST by Fabian Schneider
Modified: 2024-10-22 11:13 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024100821000089
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Schneider univentionstaff 2024-10-22 11:05:36 CEST
Currently the documentation specifies e.g. in 'External FQDN different from internal UCS name' for 'Each Keycloak instance in your UCS domain' to perform the following configuration:

SSO_FQDN="sso.internet.domain"
ucr set keycloak/server/sso/fqdn="${SSO_FQDN}"

This is also mandatory on replica and non-keycloak systems, otherwise tools like univention-keycloak will result in the following error message:

root@ucs-replica:~# univention-keycloak get-keycloak-base-url
HTTPSConnectionPool(host='ucs-sso-ng.univention-school.intranet', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError("hostname 'ucs-sso-ng.univention-school.intranet' doesn't match either of 'ucs-primary.univention-school.intranet', 'ucs-primary'")))
ERROR: Could not connect to keycloak server on https://ucs-sso-ng.univention-school.intranet/:

        HTTPSConnectionPool(host='ucs-sso-ng.univention-school.intranet', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError("hostname 'ucs-sso-ng.univention-school.intranet' doesn't match either of 'ucs-primary.univention-school.intranet', 'ucs-primary'")))

Please check the UCR settings for keycloak/server/sso/fqdn and keycloak/server/sso/path,
and make sure that keycloak and apache are running on the keycloak server!
Comment 1 Fabian Schneider univentionstaff 2024-10-22 11:09:32 CEST
might be fixed by https://forge.univention.org/bugzilla/show_bug.cgi?id=57459, depending on the implementation. As the exact case / issue differs and there is no patch available, this is a separat report regarding the documentation update.
Comment 2 Jan-Luca Kiok univentionstaff 2024-10-22 11:13:33 CEST
I have moved the information to Bug 57195, let's consolidate everything there.

*** This bug has been marked as a duplicate of bug 57195 ***