- DATE:
- AUTHOR:
- Ory Team
Ory Network, Ory Hydra, Ory Kratos, Ory Keto v26.4.22 released
Ory Network
Project updates reject the IDs of removed organizations
When you update or import a project, an organization ID that belonged to an
organization you removed from that project can no longer be reused. The request
fails with 400 Bad Request. To create a new organization, omit its id and
Ory generates one. You can still choose the ID of a new organization yourself if
the project has never used it, and keep the IDs of existing organizations.
Choosing the ID of a new organization is deprecated: the response contains a
warning for each such ID.
SAML providers show the ACS URL they use
Each SAML provider on the default engine now shows the ACS URL of its SAML
connection in acs_url, on the shared route and on its own route. The identity
configuration and GET /normalized/projects/{project_id} show it.
Providers on the shared route now have an acs_url too, so an acs_url no
longer means that a provider is on its own route. A provider is on its own route
when Ory created its SAML connection while per-provider SAML ACS URLs were on,
and its provider ID has 4 to 64 characters from A-Z, a-z, 0-9, ., ~,
_ and -. An existing provider that gets its SAML connection from a save that
sets its acs_url is on the shared route.
proxy_acs_url, proxy_saml_audience_override, and
audience_override_base_url keep working, but they will be removed. Read
acs_url and sp_entity_id instead.
Three changes can affect your saves:
Changing
audience_override_base_urlno longer moves the ACS URL of a provider that already has a SAML connection. To move a provider on the shared route to another ACS URL, change itsproxy_acs_url.Providers on the shared route whose IdPs have the same entity ID share one SAML connection, so they must have the same ACS URL, as they must have the same
sp_entity_id. A save that gives one of them another ACS URL, for example a new provider with anotherproxy_acs_url, fails with400 Bad Requestand names the providers.In a project whose plan doesn't include SAML SSO, a save that sets a new
proxy_acs_urlon a provider with a SAML connection on the shared route fails with400 Bad Request. Make the change once the plan includes SAML SSO again.
This is now available on Ory Network.
Ory Hydra
JWT bearer assertions with a cnf claim are rejected
The JWT bearer grant (urn:ietf:params:oauth:grant-type:jwt-bearer) now rejects
an assertion that contains a cnf (confirmation) claim with an invalid_grant
error. A cnf claim binds the assertion to a key, and this grant can't verify
that the client holds that key. Before, Ory ignored the claim and accepted the
assertion.
ID tokens and the userinfo response no longer include a cnf claim, even when
the consent session or the token hook sets one in the ID token claims.
Breaking changes
Token requests with an assertion that contains a cnf claim now fail. Configure
the assertion issuer to leave out the cnf claim from assertions it creates for
Ory.
A cnf claim set in the consent session's id_token or by a token hook no
longer reaches ID tokens or the userinfo response. If a relying party reads that
claim, send the data under a different claim name.
Default scope setting applies only to the Client Credentials grant
When Client Credentials Default Grant Allowed Scope is enabled, a Client
Credentials grant request without the scope parameter receives every scope of
the OAuth2 client. The setting now applies only to the Client Credentials grant.
JWT Bearer grant and Resource Owner Password Credentials grant requests without
scope receive no scopes. To request scopes with these grants, include the
scope parameter in the token request.
Default scope setting applies only to the Client Credentials grant
When oauth2.client_credentials.default_grant_allowed_scope is true, a Client
Credentials grant request without the scope parameter receives every scope of
the OAuth2 client. The setting now applies only to the Client Credentials grant.
JWT Bearer grant and Resource Owner Password Credentials grant requests without
scope receive no scopes. To request scopes with these grants, include the
scope parameter in the token request.
This is now available on Ory Network, for the Ory Enterprise License, and will be part of the next Ory Open Source release.
Ory Kratos
Require a unique ID for every sign-in provider
A sign-in names its provider by ID. Ory Kratos Identities now rejects a sign-in with a provider ID that more than one provider uses. Before, it used the first provider with that ID and ignored the others. OpenID Connect providers and, in the Ory Enterprise License (OEL), SAML providers share one set of IDs.
At startup, Ory Kratos Identities logs a warning that lists every provider ID that more than one provider uses.
Breaking changes
If two providers in
selfservice.methods.oidc.config.providersuse the sameid, every sign-in, registration, and account link with that ID fails with aninvalid_configurationerror. In OEL, the same applies toselfservice.methods.saml.config.providers, and to an OpenID Connect and a SAML provider that share anid. Give each provider its own ID, or remove the providers you don't use. Only the first provider with an ID was used before, so removing the later ones keeps today's behavior.
Imported identity configurations default max_breaches to 0
When you import an identity configuration that doesn't set
selfservice.methods.password.config.max_breaches, Ory Network now stores 0,
the Ory Kratos Identities default, instead of 1. With the password breach
check on, registration and settings then reject a password that appears in any
known data breach. A project set to 0 now keeps 0 when you export its
configuration and import it again. Values that projects already store don't
change. To allow passwords that appear in known data breaches, set
max_breaches in the configuration you import.
Limits on WebAuthn and passkey credentials
Ory Kratos Identities now limits the WebAuthn and passkey credentials an identity can hold:
An identity can hold at most 32 passkeys and 32 WebAuthn credentials. Adding another one in the settings flow fails with a validation error until the user removes one.
The name a user gives a security key (
webauthn_register_displayname) can be at most 128 characters long.Registration and settings flows reject a WebAuthn or passkey credential whose stored data is larger than 16 KiB.
Identities that already hold more than 32 credentials keep working. Their users can still sign in and remove credentials.
This is now available on Ory Network, for the Ory Enterprise License, and will be part of the next Ory Open Source release.
Ory Keto
Keto changes the order of relationship listings
Keto’s HTTP getRelationships operation and gRPC ListRelationTuples method use a new order for listings started in this release.
In an unfiltered listing or a namespace listing without a subject filter, relationships with a subject set appear before those with a subject ID. Keto sorts each group by namespace, object, and relation.
When you filter by a specific subject, Keto sorts by relation, namespace, and object.
Filtering only by object, relation, or both keeps the existing order.
Keto orders objects by their internal IDs.
Breaking changes
Before rolling out this release, upgrade every Keto read replica to v26.4.21. That version accepts page tokens for both listing orders. An older replica can reject a token issued by a newer replica when a client requests the next page.
Keto changes the order of relationship listings
Keto’s HTTP getRelationships operation and gRPC ListRelationTuples method use a new order for listings started in this release.
In an unfiltered listing or a namespace listing without a subject filter, relationships with a subject set appear before those with a subject ID. Keto sorts each group by namespace, object, and relation.
When you filter by a specific subject, Keto sorts by relation, namespace, and object.
Filtering only by object, relation, or both keeps the existing order.
Keto orders objects by their internal IDs.
Breaking changes
There is no intermediate Keto OSS release that accepts both listing orders. During a rolling upgrade, an older replica can reject a token issued by a newer replica when a client requests the next page. To reduce the impact of this error, switch all read traffic to the new replicas at once. Ory OSS does not support full online migrations.
This is now available for the Ory Enterprise License and will be part of the next Ory Open Source release.
Ory Oathkeeper, Ory Polis, Ory Elements, and Ory Terraform
No significant changes in this release.