Repository navigation
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
multitenancy-spec
branch
from
October 13, 2026 16:05
083a19a to
fe35601
Compare
nsklikas
force-pushed
the
multitenancy-from-login-ui
branch
from
October 13, 2026 16:05
f663c30 to
c814ed9
Compare
This was referenced Oct 13, 2026
nsklikas
force-pushed
the
multitenancy-from-login-ui
branch
from
October 13, 2026 17:05
c814ed9 to
8786a90
Compare
nsklikas
force-pushed
the
multitenancy-spec
branch
from
October 13, 2026 17:05
fe35601 to
0f8e17b
Compare
nsklikas
force-pushed
the
multitenancy-from-login-ui
branch
from
October 13, 2026 18:26
8786a90 to
d283902
Compare
nsklikas
force-pushed
the
multitenancy-spec
branch
from
October 13, 2026 18:26
0f8e17b to
4a99563
Compare
nsklikas
added a commit
that referenced
this pull request
Oct 23, 2026
## What Brings the Istio track up to date with `main`. The track left `main` in June and lacked its 181 commits since. The tree of this branch is `main` as it is today with the track's one change kept: the ingress over `istio-ingress-route` (#660), with its tests and OpenSpec files. One merge commit; its message lists the six files that both sides had changed. What the track's charm gets from `main`: - **The Kratos image 26.2.0** (the track pinned 25.4.0). - **Bases**: `ubuntu@22.04:arm64`, `ubuntu@26.04:amd64` and `ubuntu@26.04:arm64`, next to `ubuntu@22.04:amd64`. - **`ui-endpoint-info`** is limited to one integration, and the charm reconfigures when it is removed. - **The `uv` build**, and the dependency updates since June (`ops` 3.9, `lightkube` 0.22, `pydantic` 2.14). - **CI**: the shared workflows at v1.17.0, `use-charmcraftcache: false` and the workflow permissions. Without them a pull request against the track cannot build today (charmcraftcache finds no cache for it), and a manual run of `publish.yaml` fails to start. ## Good to know - **How to read it.** Compare the branch with `main`: the difference is the Istio change alone, 28 files. For five of the six files that both sides had changed, that difference is exactly the track's own patch. Only `tests/unit/test_charm.py` needed work: `main`'s two new tests for `ui-endpoint-info` used the Traefik template mock that the track removed. - **`ci.yaml` keeps the track's `"**"`** for the base branches of pull requests. `main`'s `"*"` does not match `track/istio`. - **The release files are `main`'s.** The manifest says 2.4.2, where the track had 2.2.1, so a release from the track would continue `main`'s numbers. To decide: whether the track keeps a version line of its own. - **One more commit, in the integration tests**: they deployed the Istio control plane and its gateways at the same time. The gateway charm lists Istio's AuthorizationPolicy resources in its first hooks, and when those ran before `istio-k8s` had installed the CRDs the hook failed and the tests had no gateway address. The tests now wait for the control plane first. - **Merge it with a merge commit, not a squash**, so that `main`'s history is in the track and the next merge of `main` is small. - **Not changed**: `README.md` still documents the Traefik integrations (the track never updated it), and `openspec validate --all --strict` fails for the track's two specifications as it did before (they are in delta format). - The Bring Your Own SSO pull requests are stacked on this one: #773, then #774. ## Tests - Lint passes. 220 unit tests pass under `main`'s `-Werror`: the track's 218 and `main`'s 2 new ones. - In CI the charm builds. The integration tests were not run locally (`main` did not change them). Not deployed.
When the login UI publishes `byosso_enabled: "true"` over ui-endpoint-info (login_ui_endpoints LIBPATCH 6), the charm configures Kratos for it, with no new option: - session.whoami.required_aal is aal1, with TOTP and recovery codes enabled whatever enforce_mfa and enable_local_idp say, because the login UI then applies each tenant's MFA policy itself; - registration login hints are on; - the verification page is shown after a registration through an external provider. Multitenancy needs enable_verification and no OIDC-WebAuthn sequencing. With any other configuration the charm blocks, plans nothing and leaves kratos-info as it was. Without the flag the rendered configuration is what it was, but for one line: the age of a privileged session is set explicitly (1h, Kratos's default) and published in kratos-info (LIBPATCH 7), where the login UI reads it.
nsklikas
force-pushed
the
multitenancy-spec
branch
from
October 23, 2026 11:57
4a99563 to
95fbf60
Compare
nsklikas
force-pushed
the
multitenancy-from-login-ui
branch
from
October 23, 2026 11:57
d283902 to
8d4dd8d
Compare
nsklikas
added a commit
that referenced
this pull request
Nov 23, 2026
## What `kratos_info` LIBPATCH 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_age` must 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 - **Nothing changes for this charm on `main`.** The argument is optional: a provider that does not pass it publishes exactly what it published before, and `main` does not pass it. - **Why on `main`.** This library has always changed on `main` first, and `main` releases it to Charmhub. With the patch on the track only, the next change of the library on `main` would take the same patch number for other content. - Nothing has to merge before this, and it can merge at any time. ## Tests The repository's unit tests and lint pass with the new library file. The field has no test here, because nothing on `main` uses it; #774 tests it.
nsklikas
added a commit
to canonical/identity-platform-login-ui-operator
that referenced
this pull request
Nov 23, 2026
## What `login_ui_endpoints` LIBPATCH 6, the library file alone. The provider can say whether the login UI runs Bring Your Own SSO (`byosso_enabled`, `"true"` or `"false"`). The charm on the Istio track publishes the field (#543), and kratos-operator's reads it (canonical/kratos-operator#774). ## Good to know - **Nothing changes for this charm on `main`.** The field is optional: a provider that does not set it publishes exactly what it published before, and a requirer reads a missing value as off. `main` does not set it. - **Why on `main`.** This library has always changed on `main` first, and `main` releases it to Charmhub. With the patch on the track only, the next change of the library on `main` would take the same patch number for other content. - Nothing has to merge before this, and it can merge at any time. ## Tests The repository's unit tests and lint pass with the new library file. The field has no test here, because nothing on `main` uses it; #543 tests it.
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
When the login UI says it runs Bring Your Own SSO, the charm configures Kratos for it. Stacked on the specification, #773: read that first. This pull request shows only the code. Under the specification is #776, which brings the track up to date with
main.There is no new option: the login UI's charm publishes
byosso_enabledoverui-endpoint-info(login_ui_endpointsLIBPATCH 6, canonical/identity-platform-login-ui-operator#543), and while it is"true"the charm sets these together. The code calls the group multitenancy.session.whoami.required_aal: aal1, with TOTP and recovery codes enabled as methods whateverenforce_mfaandenable_local_idpsay/sessions/whoamiselfservice.flows.registration.login_hints: trueshow_verification_uihook after a registration through an external providerGood to know
required_aal: aal1is not per caller:/sessions/whoami, the session list and the check after a login all accept a session with one factor, where an account with a second factor got a 403. Anything that relied on Kratos for the second factor (an Oathkeepercookie_sessionauthenticator throughsessions_endpoint, for instance) no longer gets it.enable_verification=Trueandenable_oidc_webauthn_sequencing=False, andenforce_mfais ignored. With any other configuration the charm blocks, plans nothing and leaveskratos-infoas it was, so a running Kratos and what its requirers were told stay as they are. A workload container that is replaced meanwhile gets no layer: Kratos stays down there until the block clears. The login UI's charm refuses the feature on the same two conditions, so the block is reached only by changing these options once the feature is on.selfservice.flows.settings.privileged_session_max_ageis now set explicitly, to Kratos's own default (1h), and published inkratos-info(LIBPATCH 7). The login UI needs the same age and reads it from there.enforce_mfa=False, TOTP and recovery codes leave the configuration, while Kratos remembers which accounts enrolled one. Those accounts are asked for a second factor with no method left to give it, untilenforce_mfais set or their second factor is reset (reset-identity-mfa).enable_local_idp=Falsethe template renders neither the verification flow nor thecodemethod, so the verification page after an OIDC registration has nothing to show, and a person whose address the provider did not confirm gets an error at every sign-in. The check passes all the same. Either the charm blocks on it too, or the template renders both under multitenancy. Not built.byosso_enabled), because the login UI's charm also uses the word multitenancy for the tenants it reads from the Tenant Service.main, each as a pull request with the library file alone:kratos_infoLIBPATCH 7 (feat: add privileged_session_max_age to the kratos_info library #772) andlogin_ui_endpointsLIBPATCH 6 (feat: add byosso_enabled to the login_ui_endpoints library identity-platform-login-ui-operator#541). They have always changed there first, andmainreleases them to Charmhub.Tests
kratos-info.main's code and Kratos 26.2.0 (chore: merge main into track/istio #776). On that base the charm's source for this change is unchanged, 234 unit tests pass, and the keys the change sets were checked against the configuration schema of Kratos 26.2.0. It was not deployed on that base.