Repository navigation
feat: add privileged_session_max_age to the kratos_info library - #772
Merged
Merged
Conversation
This was referenced Oct 13, 2026
feat: add Bring Your Own SSO behind byosso_enabled
canonical/identity-platform-login-ui-operator#543
Draft
nsklikas
force-pushed
the
kratos-info-privileged-session-max-age
branch
from
October 23, 2026 11:57
b4445d5 to
6e17c8b
Compare
nsklikas
force-pushed
the
kratos-info-privileged-session-max-age
branch
2 times, most recently
from
November 19, 2026 13:59
6fae23b to
0b39cd1
Compare
nsklikas
marked this pull request as ready for review
November 20, 2026 10:19
nsklikas
force-pushed
the
kratos-info-privileged-session-max-age
branch
from
November 20, 2026 12:28
0b39cd1 to
c87925b
Compare
natalian98
approved these changes
Nov 23, 2026
The provider can publish the age of a privileged session, and the requirer reads it with the rest of the data. The field is optional, so a provider that does not pass it publishes what it published before. LIBPATCH 7.
nsklikas
force-pushed
the
kratos-info-privileged-session-max-age
branch
from
November 23, 2026 14:36
c87925b to
1ada1b8
Compare
nsklikas
enabled auto-merge
November 23, 2026 14:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
kratos_infoLIBPATCH 7, the library file alone.The provider can publish the age of a privileged session (
privileged_session_max_age), and the requirer reads it with the rest of the data. The charm on the Istio track publishes the field (#774), and the login UI's charm reads it (canonical/identity-platform-login-ui-operator#543).Why
With Bring Your Own SSO, the login UI lets a user remove an SSO sign-in from their account (Connected accounts). Kratos does not do this removal: the login UI asks the SSO service, which removes the link through Kratos's admin API. So Kratos does not check the age of the session, and the login UI must do it as Kratos does for its own unlink: a session older than
privileged_session_max_agemust sign in again first.The login UI must use the same value as Kratos. With a different value, it asks for a new sign-in where Kratos does not, or it lets an older session remove a sign-in when Kratos refuses the same session for its own unlink. The login UI's charm reads the value from this relation, and it does not enable Bring Your Own SSO without it.
Good to know
main. The argument is optional: a provider that does not pass it publishes exactly what it published before, andmaindoes not pass it.main. This library has always changed onmainfirst, andmainreleases it to Charmhub. With the patch on the track only, the next change of the library onmainwould take the same patch number for other content.Tests
The repository's unit tests and lint pass with the new library file. The field has no test here, because nothing on
mainuses it; #774 tests it.