Bug 57642 - umc/http/session/timeout has no effect on SAML sessions
Summary: umc/http/session/timeout has no effect on SAML sessions
Status: NEW
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-07 14:41 CEST by Finn David
Modified: 2025-04-17 14:51 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of 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.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): SAML
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 Finn David univentionstaff 2024-10-07 14:41:16 CEST
#
# Environment
#

UCS: 5.0-9 errata1126
Installed: admin-dashboard=3.0 admindiary-backend=1.0 admindiary-frontend=1.0 fetchmail=6.3.26 keycloak=25.0.1-ucs2 letsencrypt=2.0.0-2 mailserver=12.0 nextcloud=28.0.7-0 office365=5.10 ox-connector=2.2.13 oxseforucs=7.10.6-ucs11 prometheus-node-exporter=2.0.1 samba4=4.16 self-service=5.0 self-service-backend=5.0 4.4/prometheus=2.35.0-5


#
# Description
#

Adjusting the UCR-variable 'umc/http/session/timeout' doesn't have any effect. I tried obscure values like '10' and restarted the UMC after the change. The change is reflected in the file '/var/www/univention/meta.json' but a timeout is not happening.
Comment 1 Jan-Luca Kiok univentionstaff 2024-10-11 15:16:38 CEST
Thanks for the report.
By change I just read that `umc/http/session/timeout` is ignored when using SAML (I guess because in that case the `umc/saml/assertion-lifetime` is relevant), can you tell me how you logged in?
Comment 2 Finn David univentionstaff 2024-10-11 15:32:25 CEST
Addendum:

The problem does NOT occur when using the local login:
https://primary.tierheim.intranet/univention/login/?location=/univention/portal/

BUT when using SAML SSO (which currently is configured to use Keycloak):
https://primary.tierheim.intranet/univention/saml/?location=/univention/portal/
Comment 3 Marius Meschter univentionstaff 2024-10-11 16:45:15 CEST
umc/http/session/timeout is only relevant for plain login. For SAML umc/saml/assertion-lifetime changes the validity of the lifetime of the SAML assertion. However this also doesn't affect the session lifetime, since there is a invisible renewal of this assertion in the UMC. The actual session length here is given by the IDP (SimpleSamlPHP or Keycloak)