Repository navigation
Conversation
This was referenced Oct 13, 2026
Merged
Contributor
Terraform Format and Style 🖌
|
nsklikas
force-pushed
the
bring-your-own-sso
branch
from
October 13, 2026 16:05
6a54627 to
78198f1
Compare
nsklikas
force-pushed
the
bring-your-own-sso-spec
branch
from
October 13, 2026 16:05
6977cc9 to
12de7c0
Compare
This was referenced Oct 13, 2026
nsklikas
force-pushed
the
bring-your-own-sso
branch
from
October 13, 2026 17:08
78198f1 to
9cb9ac7
Compare
nsklikas
force-pushed
the
bring-your-own-sso-spec
branch
from
October 13, 2026 17:08
12de7c0 to
601c473
Compare
nsklikas
force-pushed
the
bring-your-own-sso
branch
from
October 13, 2026 18:26
9cb9ac7 to
ebc5beb
Compare
nsklikas
force-pushed
the
bring-your-own-sso-spec
branch
from
October 13, 2026 18:26
601c473 to
f6f2205
Compare
nsklikas
added a commit
that referenced
this pull request
Nov 17, 2026
## What Brings the Istio track up to date with `main`. The track left `main` in June and lacked its 139 commits since. The tree of this branch is `main` as it is today with the track's one change kept: the public route over `istio-ingress-route` (#465), with its tests, its migration document and its OpenSpec files. One merge commit; its message lists the eight files that both sides had changed. What the track's charm gets from `main`: - **The image `identity-platform-login-ui:v0.28.0`** (the track pinned v0.27.0), and with `tenant-service-info` the workload gets `TENANT_SERVICE_GRPC_ADDRESS` instead of `TENANTS_SERVICE_URL`, which v0.28.0 does not read. - **Bases**: `ubuntu@22.04:arm64`, `ubuntu@26.04:amd64` and `ubuntu@26.04:arm64`, next to `ubuntu@22.04:amd64`. - **The `uv` build**, and the dependency updates since June (`lightkube` 1.0, `pydantic` 2.14, `tenacity` 9.2). - **CI**: the shared workflows at v1.17.0, `use-charmcraftcache: false`, the OpenSpec check and the drift job. Without the charmcraftcache setting a pull request against the track cannot build today (charmcraftcache finds no cache for it). ## Good to know - **How to read it.** Compare the branch with `main`: the difference is the Istio change and the track's own OpenSpec prompts and skills, 32 files. For the source files, the fixtures and the tests, that difference is exactly the track's own patch. - **Two things a plain merge would have got wrong:** - `charmcraft.yaml`: `main` has a `templates` part that primes `templates/`. The track deleted the only template with the Traefik route, so the directory does not exist and the part is dropped. This is from reading how charmcraft primes a missing path: the build job of this pull request is its proof. - `pyproject.toml`: `charmlibs-interfaces-istio-ingress-route==1.0.2` replaces `jinja2`, as the track's `requirements.txt` had it. Nothing in `src/` imports `jinja2`. - **`ci.yaml` keeps the track's `"**"`** for the base branches of pull requests. `main`'s `"*"` does not match `track/istio`. - **The integration tests are the track's.** `main`'s revision pin is for the Traefik charm, which they do not deploy. `main`'s test helpers constrain the model to the host's architecture, and the Istio charms have only amd64 revisions on `2/stable`: on an arm64 runner the track's tests cannot deploy them. - **The release files are `main`'s.** The manifest says 2.4.0, where the track had 2.2.1 and never cut a release. 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**: `openspec validate --all --strict` fails for the track's specification `istio-public-route` as it did before (it has no Purpose section); `main`'s OpenSpec check validates active changes only and passes. #542 gives that file its header. - **It replaces #539**: the image pin and the Tenant Service address that pull request picked from `main` come with this merge. The Bring Your Own SSO pull requests are stacked on this one: #542, then #543. ## Tests - Lint passes. 27 unit tests pass (the track has 27, `main` 21). - In CI the charm builds and the integration tests pass (MicroK8s, with `istio-k8s` and `istio-ingress-k8s`). Not deployed with the rest of the platform.
The option `byosso_enabled` turns on the login UI's "Bring Your Own SSO": tenants sign their members in with their own OIDC identity provider, and each tenant's MFA policy replaces the platform-wide rule. It is off by default, and with it off the charm plans the layer it planned before. The feature needs the tenant-service-info, sso-service-info and kratos-info integrations, a Kratos charm that publishes the age of a privileged session, and Kratos with verification and without OIDC-WebAuthn sequencing. While one of them is missing the charm reports it and plans nothing, so the running workload stays as it is. The charm tells Kratos over ui-endpoint-info whether the feature is on (login_ui_endpoints LIBPATCH 6), and writes nothing while it is blocked on the feature. It passes the age of a privileged session on from kratos-info, and it adds the route /api/v0/sso/complete. The sso_service_info library is a Python package of canonical/sso-service-operator, installed from git at a pinned commit, because Charmhub takes no new libraries.
nsklikas
force-pushed
the
bring-your-own-sso
branch
from
November 17, 2026 13:39
ebc5beb to
1aad706
Compare
nsklikas
force-pushed
the
bring-your-own-sso-spec
branch
from
November 17, 2026 13:39
f6f2205 to
66ed413
Compare
nsklikas
added a commit
to canonical/kratos-operator
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
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
Lets an operator turn on the login UI's Bring Your Own SSO (canonical/identity-platform-login-ui#993): tenants sign their members in with their own OIDC identity provider, and each tenant's MFA policy replaces the platform-wide rule. Off by default. Stacked on the specification, #542: read that first. This pull request shows only the code. Under the specification is #545, which brings the track up to date with
main.byosso_enabled. It needs thetenant-service-info,sso-service-infoandkratos-infointegrations, a Kratos charm that publishes its privileged session age, and Kratos withenable_verificationand without OIDC/WebAuthn sequencing: the two conditions Kratos's charm refuses the feature on.sso-service-info(requirer): the SSO Service's gRPC address.ui-endpoint-infogainsbyosso_enabled(login_ui_endpointsLIBPATCH 6):"true"or"false"as the option says. kratos-operator configures Kratos from it (feat: configure Kratos for multitenancy from the login UI's relation kratos-operator#774).KRATOS_PRIVILEGED_SESSION_MAX_AGEcomes fromkratos-info(privileged_session_max_age, LIBPATCH 7). For a Kratos charm that does not publish it the charm blocks and says to refresh Kratos./api/v0/sso/complete, where a sign-in through a tenant's identity provider that started outside an app's login ends.oauthrelation.With the option off
The charm plans the layer it plans today. Four things change all the same: the route
/api/v0/sso/completeis on the gateway,ui-endpoint-infocarriesbyosso_enabled: "false", the charm has thesso-service-infoendpoint (in the Terraform module's outputs too) and does not use it, and the charm cannot be built without the git dependency below.Good to know
ui-endpoint-info: what Kratos was told stays, and a Kratos that relates meanwhile is told nothing until the block clears. Otherwise the field is written after each plan, and with the endpoints when a requirer relates or the public route changes, so it can come before the workload runs the feature.session.whoami.required_aal: aal1: its/sessions/whoamiand its session list accept a session that has one factor, where they answered 403 for an account with a second factor. The login UI asks for the second factor itself before it accepts a sign-in; anything else that relied on Kratos for it (an Oathkeepercookie_sessionauthenticator, for instance) no longer gets it.sso_service_infois not fetched withcharmcraft fetch-lib: the charm depends on the packagesso-service-info, pinned inpyproject.tomlanduv.lockatcanonical/sso-service-operator@02c6895, the tip of feat: add the sso-service charm sso-service-operator#4, andgitis added to the build packages. The pin has to be redone once that pull request merges.identity-platform-login-ui:v0.28.0, which does not have the feature and ignoresBYOSSO_ENABLED. On that image the option would report Active and tell Kratos"true"while the login UI applies the platform's MFA rule; with Kratos ataal1a password sign-in of a user with a second factor then ends in a 403 at consent. The pin has to move, in this pull request, to the login UI release that contains feat: add Bring Your Own SSO behind BYOSSO_ENABLED identity-platform-login-ui#993.tenant-service:v0.2.0, and no release has the two services the login UI calls with the feature on (feat: add tenant SSO policy, sign-in context and pending invitations tenant-service#140). On such an image this charm reports Active, Kratos is switched toaal1, and every tenant lookup answersUnimplemented: nobody signs in to an app. Nothing here can detect it; the pin in the Tenant Service's charm has to move first.byosso_enabledfrom the relation data, so Kratos would stay ataal1under a login UI that expects Kratos to ask for the second factor. For the moment between this charm's hook and Kratos's the same holds when the option is turned off.main, as a pull request with the library file alone:login_ui_endpointsLIBPATCH 6 (feat: add byosso_enabled to the login_ui_endpoints library #541), askratos_infoLIBPATCH 7 does (feat: add privileged_session_max_age to the kratos_info library kratos-operator#772). The libraries have always changed there first, andmainreleases them to Charmhub.Tests
sso_service_infolibrary. As proposed, the charm decides from its configuration and relations and installs the library from git: that has unit tests only.main's code and itsuvbuild (chore: merge main into track/istio #545). On that base the charm's source for this change is unchanged, 50 unit tests pass, and the build'suv syncwas run with the pinned package: it needsgit, which is whygitis in the build packages. The charm was not deployed on that base.