- DATE:
- AUTHOR:
- Ory Team
Ory Hydra, Ory Kratos, Ory Keto, Ory Polis v26.4.21 released
Ory Hydra
Match opaque audience URIs exactly
Ory Hydra now compares a requested audience that is an opaque URI, such as a URN
like urn:example:service-a, against the OAuth 2.0 client's audience allow
list as a whole string. Audiences that are URLs with a host, such as
https://api.example.com/users, keep the existing path prefix matching.
The rule applies wherever audiences are validated: the audience parameter at
/oauth2/auth, the client credentials and resource owner password grants at
/oauth2/token, and the revalidation of requested and granted audiences on
token refresh.
Breaking changes
A request for an opaque audience that is not listed verbatim in the client's
audienceallow list fails withinvalid_request. This includes values that differ only by a suffix or trailing slash, such as requestingurn:example:service-a:childorurn:example:service-a/when the allow list containsurn:example:service-a.Refreshing a token whose requested and granted audience is an opaque URI fails with
invalid_requestuntil the client'saudienceallow list contains that value verbatim.
Add every opaque audience your clients request to the client's audience allow
list exactly as it is requested. Clients whose allow list contains only URLs
with a host are not affected.
Ory Console Lite runs on a read-only root file system
The Ory Console Lite container runs on a read-only root file system, and you can
reach it through kubectl port-forward. It listens on HOSTNAME=0.0.0.0 by
default. If you run Ory Console Lite with host networking, set
HOSTNAME=127.0.0.1 so that it listens on the loopback interface only.
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
Live events report leaked passwords
Ory Kratos Identities now emits LeakedPasswordSubmitted when a password
submitted during registration or in a settings flow appears in known data
breaches, whether or not the password is accepted. PasswordBreachesMin is a
lower bound of how often the password appears: 1, 10, 100, or 1000. In settings,
the event also carries IdentityID and, if set, ExternalID. The password is
never part of the event.
Ory Console Lite runs on a read-only root file system
The Ory Console Lite container runs on a read-only root file system, and you can
reach it through kubectl port-forward. It listens on HOSTNAME=0.0.0.0 by
default. If you run Ory Console Lite with host networking, set
HOSTNAME=127.0.0.1 so that it listens on the loopback interface only.
Report breached passwords at login
Ory Kratos Identities can now look up the password of each login attempt in Have
I Been Pwned. Turn this on with
selfservice.methods.password.config.haveibeenpwned_on_login, which requires
haveibeenpwned_enabled. The lookup runs in the background with a 200 ms
deadline and never makes a login fail. The result is the number of times the
password appears in known data breaches, rounded down to 0, 1, 10, 100, or 1000.
The password and the exact count are never reported.
On Ory Network, live event streams emit
LeakedPasswordSubmittedfor every login submission whose password appears in known data breaches, whether or not the login succeeds. The event carriesPasswordBreachesMinandSelfServiceFlowName, andIdentityIDand, if set,ExternalIDwhen the identifier matches an identity.On Ory Network and in Ory Enterprise License (OEL) deployments, every login
submit,failure, andafterweb hook payload now containspassword_breaches_min, also in projects that do not turn the check on, where it isnull. Web hooks receive it inctx.submission.password_breaches_minatsubmit,ctx.failure.password_breaches_minatfailure, andctx.password_breaches_minatafter. It is alsonullwhen the result is unknown.
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
Ory Console Lite runs on a read-only root file system
The Ory Console Lite container runs on a read-only root file system, and you can
reach it through kubectl port-forward. It listens on HOSTNAME=0.0.0.0 by
default. If you run Ory Console Lite with host networking, set
HOSTNAME=127.0.0.1 so that it listens on the loopback interface only.
This is now available for the Ory Enterprise License and will be part of the next Ory Open Source release.
Ory Polis
A login continued with code_hint needs client credentials at the token endpoint
An application can continue an IdP-initiated login by sending the authorization
code it received as code_hint to /api/oauth/authorize. Ory Polis then issues
a new code without another round trip to the identity provider.
Exchanging that new code at /api/oauth/token now requires the client to
authenticate, as exchanging the IdP-initiated code itself does. A request with a
PKCE code_verifier but no valid client_id and client_secret is answered
with status 401 and invalid_client. PKCE is still checked when the authorize
request carried a code_challenge.
Breaking change
If your application continues IdP-initiated logins with code_hint and
exchanges the code with a code_verifier alone, send its client_id and
client_secret as well. An application that uses the tenant=...&product=...
or dummy client ID sends the value of CLIENT_SECRET_VERIFIER as the secret.
Ory Kratos already sends its client credentials and needs no change.
SCIM user PATCH rejects a path that indexes past the end of an attribute
A SCIM PATCH on a user can name an entry of a multi-valued attribute by its
position, for example emails[1].value. Polis accepted any position, and a
position past the end of the attribute left empty entries before it.
A path may now name an entry the attribute has, or the next one, which adds an
entry. Any other position fails the request with status 400 and scimType
invalidPath, and none of the request's operations are applied. The same
applies to a path that names anything other than a position on a multi-valued
attribute, such as emails.length.
Paths that select an entry by a filter, such as emails[type eq "work"].value,
are not affected. Okta and Microsoft Entra ID use this form.
If you run your own SCIM client and it addresses entries by position, make sure it does not skip positions.
This is now available for the Ory Enterprise License and will be part of the next Ory Open Source release.
Ory Network, Ory Oathkeeper, Ory Elements, and Ory Terraform
No significant changes in this release.