Resources

Changelog

ulex's release history: what changed, what is deprecated, and what an agent needs to know about each version. Semantic versioning, wire-stability guarantees, and the deprecation timeline.

ulex follows semantic versioning for the wire contract, not the marketing version. A minor version never removes a public field, and a major version never surprises you.

#Versioning policy

ChangeVersion bumpMigration window
a new endpoint, tool, event, or error codeminornone. Additive
a new optional response fieldminornone. Existing clients ignore it
a new enum value in a responseminornone. Clients must handle unknown values
a new required request fieldmajor6-month deprecation
a removed or renamed public fieldmajor6-month deprecation, with a __DEPRECATED__ warning for 3 of them
a changed field typemajornever. A new field, a backfill, a dual-read, then a major
a removed webhook eventmajor6 months at warning level
a narrowed enum in a requestmajor6 months
a changed default that alters behaviourmajor6 months
a security fixpatch, or minor if it needs a config changedocumented in the entry
a bug fixpatchnone

CI enforces wire compatibility checks on public schemas and enums before release.

#Reading a version

text
2025.9.1
  │  │  └── patch   bug fix, no behaviour change
  │  └───── minor   additive: new endpoints, tools, events, optional fields
  └──────── major   a breaking wire change. Read the migration guide first

Check x-ulex-version headers or pin your CI to a minor version when validating API behavior.


#Unreleased

These entries record recent control plane changes and API behavior on https://ulexid.com, and several of them correct a claim rather than add a capability — which is why the "Removed" and "Corrected" groups are larger than usual.

Resolves S1. prompt=consent was validated at the protocol layer and then ignored, no consent record was persisted, consent_required was unreachable, and a third_party application — the kind that receives a pairwise sub, and therefore someone else's software — was issued tokens with zero user interaction.

Added

  • GET /oauth2/consent and POST /oauth2/consent. A third_party application cannot be issued an authorization code until a person approves it. The screen names the application and describes each scope in words rather than listing identifiers.
  • Grants are persisted per (user, application) and are a ceiling: a later request for scopes beyond the grant is a new decision, and prompt=consent re-asks even when a matching grant exists. Approval widens a grant; nothing narrows one.
  • prompt=none answers consent_required and issues no code and no token, and the error names the scopes that are not yet approved.
  • Refusal is a decision, not a failure: the client gets error=access_denied at its own redirect_uri with its own state, and no grant is written.
  • consent.granted, consent.denied and consent.revoked audit actions. A refusal leaves no state behind, so without its own action "the user was never asked" and "the user said no" would be indistinguishable in the log.
  • The approval is bound to one pending authorization request: the whole request travels inside an HMAC-signed token, is re-validated from scratch on the decision, must come from the session it was bound to, must come from this origin, and is single-use.
  • The federation callback now gates on consent too, and sets the session cookie on that path. It mints from a session created by an upstream IdP, so it was the easiest way to get a token for a third-party client without asking anyone — and a federated sign-in previously left a session the browser never learned about, which is why cross-application SSO stopped at the first federated application.

Corrected

  • login_required, consent_required, interaction_required, account_selection_required, mfa_required and step_up_required now answer 401 on the OAuth surface. core/errors.ts assigned every one of them a 401 and three documents published the same, but a default: 400 in the OAuth error renderer swallowed the whole set — so the server said 400 while the documentation said 401, and four e2e assertions had recorded the bug rather than the contract. A client that branches on the status will see 401 where it saw 400.

#Organization isolation and SSO enforcement

Added

  • Enforced organization.sso_only (F7): At session creation, direct password and social logins are refused with 403 access_denied (sso_required). Authentication must use an enterprise SSO connection permitted by the organization (connection_id or default_connection_id).
  • Most-restrictive rule across memberships: If a user belongs to multiple organizations and at least one enforces sso_only: true, password sign-in is refused, and the connection used must be permitted by all sso_only organizations the user belongs to.
  • Enforced organization.allow_profiles_outside_organization (F7): At user creation/joining (JIT provisioning, SCIM provisioning, portal invitations, and member addition), when false (default), the user's email domain must match an active verified domain (domain.state === 'verified') belonging to the organization, else 403 access_denied.

#Federation

Added

  • Upstream OIDC: GET /oauth2/connections/{id}/authorize and /callback. Discovery validation, PKCE, id_token verification against the IdP's own JWKS, and JIT provisioning. Eight strategies: oidc, google_oidc, microsoft_oidc, entra_oidc, okta_oidc, github_oidc, apple_oidc, generic_oauth2.
  • ulex as a SAML service provider: GET /saml/connections/{id}/sso and POST /saml/connections/{id}/acs.
  • /auth/{appId} renders one button per active federated connection. Federation was reachable by URL and not by clicking; an operator with a real IdP configured sent their own users to a password prompt.
  • parseSamlSigningKey, exported from @ulex/protocol, accepting a PEM certificate, a bare base64 certificate, or a bare SPKI.

Corrected

  • POST /connections/{id}/verify was a config inspection checking that issuer was non-empty. It now fetches and validates the discovery document, caches the endpoints on success only, parses the pinned SAML certificate to a usable key, and probes sso_url. It was the documented gate on going live, so "verified" and "the IdP answers" were the same claim and only the first was true.
  • ulex_verify_connection reported the discovery fetch as skipped with the detail "verified by the auth service at login time". Nothing did. Both surfaces now call one implementation.
  • A SAML connection could not verify any assertion: serialiseSubElement's two depth counters could never agree for a nested element, so signatureElementXml was always null. Unit tests stayed green because nothing asserted on it for a nested assertion.
  • JIT-provisioned users had an empty groups claim for every strategy, including SAML and OIDC.

Removed

  • /saml/sp/metadata published a descriptor naming ACS and SLO endpoints that were not mounted, with an empty certificate. A metadata import is one-way, so an operator's console reported success and breakage appeared later as a sign-in failure. Both SAML metadata endpoints now refuse rather than claim. ulex does not act as a SAML IdP.

#Authentication policy

Added

  • GET/PUT /api/v1/auth-policy and ulex_get_auth_policy / ulex_update_auth_policy. There was no route to read or write the record, so every field below was configurable and inert.
  • password_policy_not_met (400), naming every unmet rule at once.
  • auth_policy.updated and auth_policy.ip_blocked audit actions.
  • policy.set[] on every read, so a value an operator chose is distinguishable from a default.

Changed

  • password.min_length and the four require_* flags are enforced where a human chooses a password. The only password rule the product enforced was a hardcoded min(8) in a request schema.
  • All of session is enforced. idle_timeout_seconds was hardcoded to 7 days and reauthenticate_after_seconds to 24 hours while remaining settable to anything.
  • blocked_ip_ranges is enforced on every authenticated request, not the sign-in form, so it cannot be walked around via the token endpoint or refresh rotation.
  • application.cross_app_sso_enabled is enforced on session reuse.
  • A session records the application that created it, in application_ids. It started empty, which meant endSessionEverywhere never reached the application a person actually signed in to, and cross_app_sso: false could not be enforced on the first reuse.

Removed

  • auth_policy.allowed_countries. It could not be implemented honestly: the only data source is CloudFront-Viewer-Country, and the distribution sets no origin request policy that overwrites a viewer-supplied one. An allowlist built on that looks enforced, passes an audit, and is defeated by one request header.

Not enforced, and now documented as such

auth_policy.mfa.*, password.max_age_days, and password.forbid_reuse_count are stored and returned but do nothing. mfa.mode: "required" does not require a second factor.

#Fixed

  • ulex_update_auth_policy and PUT /api/v1/auth-policy could not be called at all against a deployed environment. Both read the stored policy, merged the request onto it, and re-parsed the merge through authPolicySchema — which is strict. The DynamoDB read returned the row's internal entity discriminator alongside the record, so the parse failed before the write: internal_error from the MCP tool, and 400 validation_failed from REST quoting 'entity' back at a caller who never sent it. The in-memory store never writes a discriminator, so no local test could see it. The read projector now removes it, rather than the schema being loosened to tolerate it — strict schemas are what catch the next storage bug. The issue was reproduced and verified against the live DynamoDB store.
  • ulex_search_audit_logs returned an empty page for every query, including one with no filters at all, on DynamoDB. It selected audit rows by the same internal discriminator the read projector had just removed, comparing a column the projected record no longer had. The log an auditor asks for first read as a tenant with no history. The kind filter now runs before the projection, where it can see the column.
  • policy.set[] reported a block as deliberately configured when it was byte-for-byte the product default, so a tenant that had never chosen session.cross_app_sso was recorded as having chosen it. The comparison was JSON.stringify, justified as safe because schema output has a stable key order — which is true of two schema outputs and of nothing else, and a stored record is not one. Equal content is now equal text whatever order the keys arrive in. The same comparison existed twice, in the REST route and in ulex_get_auth_policy, and the two disagreed about the same tenant; both are fixed.
  • GET /api/v1/organizations/{id}/domains returned an empty list for an organization that owns a verified domain, and sign-in through that organization was refused with access_denied naming a domain policy the tenant had satisfied. An organization foreign-key partition in DynamoDB is shared by its memberships, groups, domains, connections and audit rows, and the read sent limit as a DynamoDB Limit and then filtered the returned page by kind — so limit bounded the rows scanned and the filter discarded all of them. Deterministic on every call, and worse as the organization accumulated rows. limit is now the number of rows returned; the same fix applies to organization-filtered group, connection and audit-event reads, and a partition too large to read raises rather than reporting a short page.
  • Mock sign-in answered "no such user" for an address the tenant had been given. The login page searched the tenant's connections for the seed address by reading one page, so the answer depended on how many connections the tenant held — and list returns the oldest first, which is exactly the page a freshly-created connection is not on. A tenant past 100 connections could not sign in with any address seeded since it crossed that mark. It now pages to exhaustion, and raises rather than reporting a size limit as a missing address.
  • ulex_list_tools reported a tool surface of zero. setToolCatalogue existed and was never called from anywhere in the repository, so an agent asked to enumerate the tools before planning was told there were none.
  • Admin console live API contract (F9). The console now checks all 42 endpoint bindings against the complete router using their effective paths, distinguishes /api/v1 resources from issuer-root OIDC/status routes, uses tenant-wide discovery and JWKS documents, and lists SCIM users through directory_id. API-key hashes and directory credential ciphertext are redacted. Audit facets remain client-derived, and webhook secrets are never revealed (rotation is the recovery path). Fixtures are explicit in mock mode; only request-local timeout/5xx failures can fall back, each is logged and reported by /api/health, and 404/client/auth/rate-limit errors remain visible.
  • introspection was unauthenticated, making it a token-validity oracle reachable across tenants through an unverified iss.
  • DynamoDB users.list ignored its search argument, so a search returned every user.
  • A cross-tenant connection id and a nonexistent one were distinguishable.
  • connection_not_active was documented by name in openapi.json and nothing could raise it.
  • Certificates could not expire in the SAML policy: ulex uses the pinned certificate as a public key, and a key does not expire. The docs promised a 30-day warning from a check that never existed.

#2025.9.1 — current

Added

  • x-ulex-mcp-tool on every operation in openapi.json, so a REST-first agent can find the tool that wraps each endpoint.
  • ulex_describe_environment and ulex_get_docs tools.
  • X-Ulex-Correlation-Id is now stored on auth_attempt, not only on audit_event.
  • deps.signature_example in the POST /webhooks response, so you can assert against a real signature in a test.

Changed

  • The 429 hint now always parses as Retry after Ns. on REST, MCP, and SCIM.
  • deployment.progress_percent is rounded to the nearest 5. Poll on state.

Fixed

  • POST /scim/v2/Bulk could return a 409 for the whole request when one operation collided. It now returns 200 with the failure in Operations[], per RFC 7644 §3.7.
  • refresh_token reuse detection was not revoking the family when the replay came from a different client_id. It does now.
  • A SAML assertion with an AudienceRestriction containing multiple audiences is accepted if any one matches. Previously it required an exact single match.

Action required: none.


#2025.8.0

Added

  • ulex_add_domain, ulex_verify_domain and ulex_list_domains.
Warning

Corrected in Unreleased: this entry also listed ulex_remove_domain and two REST routes. Neither exists. Domains are MCP-only today — see Capability status and api-reference/organizations.

  • scim_bulk_exceeded with status 413, so an over-sized Bulk is distinguishable from a bad one.
  • ulex_get_sync_status returns stats.groups_synced.

Changed

  • connection.state gained expired and error. A connection whose SAML certificate expired now moves to expired rather than staying active and failing every login.
  • POST /connections/{id}/verify always returns 200. Read valid and checks[]. It previously returned 409 when checks failed.

Migration: if you branched on a 409 from verify, branch on valid instead.

bash
curl -sS -X POST "$BASE/connections/$CON_ID/verify" -H "$AUTH" | jq -r .valid

#2025.7.0

Added

  • mcp.tool_invoked webhook event.
  • actor_type: "agent" on every MCP-initiated audit event, so an agent's footprint is queryable.
  • RFC 9728 protected-resource metadata at /.well-known/oauth-protected-resource, with a WWW-Authenticate header on an unauthenticated POST /mcp.
  • ulex_mint_access_token sets amr: ["urn:ulex:amr:simulated"] and acr: "urn:ulex:acr:simulated".

Changed

  • Refresh tokens rotate on every use. A replay revokes the entire family_id and returns invalid_grant with family_revoked: true.

Migration: the important one. If your refresh handler retries on a network timeout, it will now kill the token family.

ts
// Before: retry on timeout. Now: introspect first.
async function refresh(rt: string) {
  const state = await introspect(rt, "refresh_token");
  if (state.active) return state;            // the request actually landed
  throw new UlexError("invalid_grant", "the family was revoked; start a new login");
}

Also: reject tokens whose acr is urn:ulex:acr:simulated in production. See Authorization.


#2025.6.0

Added

  • ulex_bootstrap_app: application, organization, domain, connection, admin user, membership, group, directory, SCIM token and webhook in one idempotent call.
  • ulex_reset_tenant with keep_api_keys.
  • ulex_search_audit_logs with 17 filters and chain_head.

Changed

  • Users are tenant-global. user.organization_id was removed; use GET /users/{id}/memberships. This has been the documented model since 2025.1.0, but the field is now gone rather than deprecated.

Migration:

ts
// Before
const orgId = user.organization_id;

// After
const { data: memberships } = await tools.ulex_list_organization_members({ organization_id: orgId });

#2025.5.0

Added

  • PUT /groups/{id}/members as a documented replace, not an append.
  • group.source: "rule" for groups created by an email or email-domain match.
  • auth_policy.mfa.mode: "adaptive" with trigger_on_new_device, trigger_on_ip_change, trigger_on_high_risk.
Warning

Corrected in Unreleased: these fields are still not enforced. There is no risk engine behind adaptive, and mode: "required" does not require a second factor — ulex requires one from any user who has a verified one. This entry recorded a schema addition as though it were a behaviour change, which is the error this changelog is supposed to prevent.

Changed

  • ulex_set_group_members replaces the member set. Appending now requires a read first.

Migration:

ts
// Before: assumed append
await tools.ulex_set_group_members({ group_id, user_ids: [newUserId] });

// After
const current = await tools.ulex_list_groups({ organization_id });
await tools.ulex_set_group_members({ group_id, user_ids: [...currentMemberIds, newUserId] });

#2025.4.0

Added

  • SCIM 2.0: ServiceProviderConfig, Schemas, ResourceTypes, Users, Groups, PatchOp, Bulk, and ListResponse.
  • The scim_generic and ulex_mock directory providers.
  • dir: "ulex_mock" produces a deterministic directory for tests.

Changed

  • POST /webhooks rejects unknown event names at create time instead of silently dropping them.

Migration: check that every event name you subscribe to is in the catalogue. A typo used to be a silent no-op; it is now a 400.


#2025.3.0

Added

  • SAML 2.0 as an IdP: GET /applications/{id}/metadata and GET /applications/{id}/secret.
  • SAML 2.0 as an SP: config.strategy: "saml" with ACS, SLO, and IdP-initiated SSO.
  • ulex_get_saml_sp_metadata, ulex_get_saml_idp_metadata, ulex_get_saml_login_url.

Changed

  • application.slug became immutable. Changing an application's slug would break every client_id-derived URL a customer had bookmarked.

Migration: pick the slug at creation. To rename, create a new application.


#2025.2.0

Added

  • The MCP endpoint: Streamable HTTP at POST|GET|DELETE /api/v1/mcp, protocol 2025-06-18, and ulex mcp serve over stdio.
  • 87 tools. Every REST operation names the tool that wraps it in x-ulex-mcp-tool.
  • ulex_list_tools, which returns the live manifest with full JSON Schemas.

Changed

  • deployment.environment accepts short environment codes such as prod. It previously accepted the environment slug values.

Migration:

ts
// Before
await tools.ulex_deploy({ application_id, environment: "production" });

// After
await tools.ulex_deploy({ application_id, environment: "prod", confirm_production: true });

#2025.1.0

The first public release.

Added

  • Organizations, domains, users, groups, memberships.
  • mock_sso, password, magic_link, otp_email connections.
  • OAuth 2.1 with PKCE, refresh rotation, introspection, revocation, JWKS.
  • The hosted sign-in UI.
  • The immutable, hash-chained audit log.
  • Webhooks with 34 events.
  • Idempotency keys, cursor pagination, and the single error envelope.
  • The simulation endpoints.

Notable design decisions, stated so you can rely on them

DecisionConsequence for you
users are tenant-globalone human, many customers, via memberships
the environment is derived from the credentialnever send one; there is no parameter
retryable is a closed setthe only backoff signal you need
secrets are returned oncestore them in the call that created them
a new connection is draftactivate it, or every login is 403 connection_not_active
the audit log has no update or delete pathif you need a shorter log, ulex is the wrong tool

#Deprecation timeline

Nothing is currently deprecated. When something is, it appears here with a warning-level log line, a __DEPRECATED__ field on responses, and a date.

The policy: 6 months between the first deprecation notice and the removal, and the notice appears in the changelog, in the OpenAPI description, and in the docs_url of any error that touches the surface.

SurfaceDeprecatedRemovalReplacement
—none——

See Deprecations for the full policy and the previous deprecations that have already been removed.

#Getting notified

ChannelCadenceHow
Changelog RSSon releasehttps://docs.ulexid.com/resources/changelog.xml
Emailon releasethe address on your tenant, in the dashboard
Webhookon releasesubscribe to application.updated and read the changelog in the payload's metadata
The x-ulex-version response headerevery calllog it; a mismatch between your SDK and the server is a common bug
bash
curl -sS -D- -o /dev/null "$BASE/health" | grep -i x-ulex-version

#Reference