Changelog
This file records notable changes to Open Enterprise. Its format follows Keep a Changelog 1.1.0. Version numbers follow Semantic Versioning 2.0.0. The compatibility policy defines what a version number promises.
The release workflow publishes the notes under the heading that matches the tag.
[Unreleased]
This release, planned as 0.6.0, includes local identity, native full permissions, direct SAML, service accounts, general SCIM, issuer operations and a reusable React console.
The embedded engine handoff (docs/vendor-embedded-enterprise-handoff.md) defines the added product scope.
The compact installation uses the application, Rust runtime with static UI, and PostgreSQL.
The v0.6 identity handoff (docs/v0.6-identity-handoff.md) and the OAuth, MCP, and OIDC handoff (docs/oauth-mcp-oidc-handoff.md) record its scope.
This greenfield implementation changes the original migration definitions, including machine, SAML, directory schema and OAuth state.
Use fresh disposable databases for development; older checksum versions are not upgrade paths.
Read the breaking changes before you upgrade.
Added
- Native full permission evaluation with revision checks and typed organization-owned service accounts.
- Scoped API keys, confidential
client_credentials, live introspection gates and machine API/MCP examples. - Direct SAML SP with maintained XML signature validation, pinned rollover certificates and PostgreSQL replay records.
- Typed SCIM schema extensions, compound queries, sorting, projections, atomic PATCH, ETags and bounded bulk operations.
- Each issuer resource is an AuthZEN decision point for MCP tool calls, following the COAZ-MCP binding.
tool_permissionsmaps tool names to permissions, andPOST {issuer}/oauth/resources/{id}/access/v1/evaluationpermits atools/callwhen the person holds that permission in the organization they approved. - A directory can map a SCIM group to a team the application already has (
group_teams), so the group's members get the team's roles and shares without the application re-creating them, and lose them when they leave the group. The portal's directory form has the new mapping. - Email-first sign-in:
POST /v1/auth/discoveryreturns a link to a runtime page that asks for a work email and continues into the SSO of the organization that verified its domain. Without a match the browser returns to the application witherror=sso_not_configured. The SDK addsclient.auth.discover. - A native SAML connection can name its IdP metadata URL (
metadata_url) instead of carrying the XML. The runtime fetches it over public HTTPS when the draft is saved and every hour while the version is active, applies changed signing certificates on its own, and shows on the Single sign-on page why a fetched document was not applied. - A directory credential can expire:
expires_in_days(1 to 730) onPOST .../directories/{dir}/credentialssetsexpires_at, SCIM requests with the credential get 401 after that time, and the portal offers 90 days or one year. - Turning local sign-in off (
local_login: disabled) is refused when it would lock the organization out: when the person making the change signed in with a password, or when no active owner can sign in with SSO. - Two approvals of one OAuth consent form that arrive at the same time issue one grant instead of two; the second waits for the first and answers like a repeated submission.
- Verified domains renew on their own: in the last seven days of the 30-day lease the runtime checks the TXT record again and extends the lease while it still matches, and the portal shows why a renewal failed.
- Testing beyond the unit tests (
docs/testing.md): property tests for the OAuth grant lifecycle, delegation and SCIM visibility, requirement tables for the OAuth issuer, OpenID provider and relying party, SAML SP and security signals thatscripts/test.shchecks against the tests, libFuzzer targets for the parsers of untrusted input (scripts/fuzz.sh), mutation testing (scripts/mutants.sh), MCP client profiles (npm run conformance:mcp) and the OpenID Foundation suite (scripts/conformance-openid.sh). - Confidential issuer clients can authenticate with
client_secret_postas well asclient_secret_basic, as OpenID Connect certification requires. A request that uses both is refused. - An issuer client's
pkcesetting can beoptionalinstead of the defaultrequiredfor a confidential identity-only client, so OpenID Connect relying parties that don't send PKCE, such as the OpenID Foundation conformance suite, can sign in. Their OpenID Connect requests may leave out both PKCE and thenonce, and a code issued without a challenge refuses acode_verifier. - A comparison page (
docs/comparison.md) sets Open Enterprise next to Keycloak Organizations, Zitadel, Tesseral and SSOReady, with sources. - A threat model (
docs/threat-model.md) lists what the runtime protects, who it defends against and the risks that stay with the deployment, and SECURITY.md says which security reviews the project has had. enterprise-runtime migrateruns without the 10-second request statement limit, waits at most five seconds for a lock and retries up to five times, so migrations don't stall the requests of replicas that are still running. The upgrade guide has a section on upgrading without downtime.- Audit streams (
/v1/organizations/{org}/audit-streams) send an organization's audit entries to a SIEM endpoint in signed batches of up to 100, in commit order, with retries that resend the same batch. - Sign-ins are audited:
auth.login.succeededcommits with each login code, andauth.login.failedrecords a refused callback with the identity provider failure oraccess_denied. - Broker mode:
POST /v1/auth/exchange/profileredeems a login code for the verified user, membership, connection and authentication methods without creating a runtime session, for applications that keep their own users and sessions. - A service key with
subscriptions:writecan manage an organization's webhook subscriptions, so an application receives SCIM directory changes without the admin portal.include_profileadds each user's current profile to user events in those deliveries. GET /v1/eventsreads one feed across every organization a service may act on,GET /v1/events/statelists their current state in pages without the 10,000-resource cap, andPOST /v1/event-subscriptionsregisters a webhook that says when to poll. With the newprofiles:readscope,profile=trueadds each user's email, verification, display name and external ID to user events, and a profile change is now auser.updated.@open-enterprise/sdk/synckeeps organizations, users and memberships in the application's PostgreSQL withVendorSync.- Operators can turn enterprise administration on and off for an existing organization through
/v1/operator/organizations/{org}/administrationor the console's new Organizations panel, without a configuration change or restart. The panel andGET /v1/operator/organizationslist organizations with their sign-in and directory health, and/admin/sign-in?organization=<ID>lets a customer's administrators open the admin portal without the application backend. - An SSO configuration's
jit_rolegives people who sign in without a membership that role, when they come through the organization's own connection or a verified email domain. POST /v1/operator/user-importsimports users from an application's own table, matching them by external ID and then email, with optional Argon2 password hashes and memberships. Users carry the newexternal_id, and a successful sign-in now replaces a hash made at another cost.- Every SCIM directory accepts the RFC 7643 enterprise User extension, including Entra ID's bare-string
managervalue, and the provisioning docs cover Entra setup withaadOptscim062020. - SCIM groups hold up to 50000 members instead of 1000. Membership changes write only the changed rows, a
removeonmemberswith a value list removes only those members, and Groups queries withexcludedAttributes=membersskip member lists. - The Single sign-on page lists the SAML entity ID, ACS URL and OIDC redirect URIs with copy buttons, and the configuration API returns them in
service_provider. - A
configuration.certificate_expiringevent goes out 90, 60 and 30 days before an organization's SAML connection runs out of valid signing certificates, and the Single sign-on page shows the expiry date. - Native SAML stores the email and display name from common assertion attributes. An email from an organization's own identity provider, SAML or OIDC, is kept only when its domain is verified by that organization.
- Organization admins see why a SAML sign-in or login test was refused, plus the last success and failure count for the active connection, on the Single sign-on page and in the configuration API.
- The issuer serves RFC 9728 protected resource metadata for each registered resource at
/oauth/resources/{id}/metadata. - Operator credential expiry/overlap, separate short-lived operator browser authority and backend-only introspection-secret delivery.
@open-enterprise/react: shared console and feature panels, Base UI controls, scoped light/dark themes and typed vendor replacements.- Compact Compose and Helm defaults, real installed-package journeys and offline older-snapshot credential invalidation.
Breaking
- Customer-managed OIDC connections now use a redirect URI for each organization:
/v1/auth/callback/{organization_id}and/v1/administration/callback/{organization_id}. Register both URIs with every existing customer OIDC client before you upgrade. Static and SAML connections keep the shared callback. - The SDK moved webhook verification to the
@open-enterprise/sdk/webhooksentry point.verifyWebhookandcreateWebhookSignaturenow use Web Crypto and return promises. - A policy draft that was never active activates only at the permission revision it was created from. Otherwise the runtime returns 409; create a new draft from a current export.
Security
- The runtime checks the RFC 9207
issresponse parameter, so one customer IdP cannot answer a login started for another. - The SSRF filter checks IPv4 addresses embedded in NAT64 and 6to4 addresses, and rejects other IPv6 forms of private ranges. The customer OIDC client no longer uses a proxy.
- The Keycloak adapter sets
trustEmail: falseon customer IdPs. The newfirst_broker_login_flowsetting names a broker flow that never links a customer identity to an existing account. The runtime logs a warning when a production broker uses Keycloak's built-in flow. - A delegated administrator cannot change the role or status of a member with more organization-wide authority, including authority from role assignments and directory groups. Reactivation and role changes also require the target's resource grants and relationships. Suspension does not, so a delegate can offboard a member who holds shares the delegate cannot open.
- A directory that the deployment configuration assigns to one organization cannot be claimed by another.
- Imported subject attributes get the importing actor as their source and a fresh observation time.
- With role-only authorization, organizations whose policy has deny or require rules fail closed.
- A customer issuer cannot replace a login connection that receives security signals.
- Feed cursors use an HKDF-derived key instead of the master encryption key.
- A registration confirms an address only when its owner opens the link and chooses the password there, so preclaiming someone else's address gives no access.
- Password resets, factor recovery, and account disablement raise a credential epoch, so proofs and exchanges that started earlier fail even if they finish later.
- Audit events for permission changes identify the changed object and its previous state, and list attribute names without values.
- SCIM filters, sorting, and projections treat sub-attributes of a
returned: neverorwriteOnlyattribute as protected, so a filter cannot read them one character at a time. - The issuer no longer redirects to a Client ID Metadata Document's redirect or post-logout URI before the person acts, so it is not an open redirector.
A narrower
client_metadata_documents.resourceslist, orenabled: false, now also applies to metadata clients stored earlier and ends their grants for removed resources. - A delegate who could not configure a directory's role mapping can no longer issue or rotate its SCIM credentials.
- With role-only authorization, changing a role or sending an invitation requires every permission of the granted role and of the member's current role.
- Explicit tenant IDs in deployment configuration are reserved for provisioning by an authorized service. Self-service owner onboarding refuses those IDs.
- Configuring a first-login SSO role requires authority over both the existing role and its replacement. Activation rechecks the administrator's permissions. A provider change requires pending customer sign-ins to restart and expires exchange codes from the retired provider.
- Stored customer OIDC secrets are bound to the tenant, secret reference, issuer and client ID. Re-enter older unbound secrets in a new draft.
- Customer OIDC discovery checks every request, including the JWKS download, before it is sent, so a discovery document cannot point the runtime at a private address.
ID tokens with an
azpclaim for another client are refused. OIDC discovery documents, signing key sets and token responses are each limited to 1 MiB. - SAML trusts only the certificates and SSO URL that metadata inspection checked, and ignores elements from other XML namespaces. A SAML response that repeats the subject attribute is refused.
- SSF discovery requires the JWKS and management endpoints to use the transmitter issuer's origin.
X-Forwarded-Forentries with a port no longer let a client choose its own address, and throttles count IPv6 clients by /64 network.- The second factor locks after 100 consecutive wrong codes, and Argon2id parameters below the OWASP cost are refused outside development.
- The OAuth token, revocation, introspection and AuthZEN endpoints share a 50-check burst per source network and refill one fresh credential check every 18 seconds across all replicas. A recently confirmed credential proceeds directly to live verification on any network. New or rotated credentials need an available slot.
- A SCIM attribute that is always returned no longer returns its
neverorwriteOnlysub-attributes, and responses drop stored keys that no schema defines. - SCIM PATCH bounds the memory used to expand updates. Requests over budget return HTTP 413 and preserve the resource version. An oversized user can still be deactivated.
- Local sign-in cookies use
Secureand the__Host-prefix for every valid spelling of the HTTPS scheme. - The Fastify reference app checks permissions for each integrations panel and consumes OIDC logout confirmation state once, preserving the independent workspace session.
- A loopback redirect URI matches a registered one on any port only when it is itself a valid redirect URI, so one with a password, a tab or a leading space is refused.
Added
- An optional OAuth 2.0 authorization server and OpenID provider (
issuer): authorization code with PKCE, rotating refresh tokens, RFC 8707 resource indicators, RFC 9068 access tokens, introspection, revocation, discovery, ID tokens, UserInfo, and RP-initiated logout. People sign in with local accounts, OIDC connections, or brokered SAML, choose an organization, and approve each client, organization, and resource. The OAuth guide covers configuration and operations. - Clients from the configuration file, the operator API (
/v1/operator/oauth/*), and Client ID Metadata Documents, and a resource registry with scopes and introspection credentials. - A connected-applications page for people, organization grant and client-block APIs with the
applications:readandapplications:writeoperations, and a Connected applications page in the administration portal. - Persistent RS256 signing keys shared by every replica, with operator rotation and revocation;
enterprise-runtime reencryptalso re-seals them. - Lifecycle events
oauth_grant.created,oauth_grant.revoked,oauth_client.blocked, andoauth_client.allowed. - The Express example acts as an OpenID Connect relying party with
openid-client, and protects a projects API and an MCP server with the issuer's tokens. npm run test:e2e:oauth,test:e2e:oauth:external, andtest:e2e:oauth:samldrive the issuer withopenid-client,jose, and the MCP SDK client against local accounts, Keycloak, and brokered SAML; CI runs all three.- Local accounts: email and password sign-in, registration, email confirmation, password reset, and email change, on pages the runtime serves without scripts.
local_authenticationconfigures them; local accounts explains each setting. - Registration policies
public,invitation, andclosed, and onboarding: a service withcreated_organizationslets a new customer create an organization they own, with its owner session, in one call. enterprise-runtime enroll --initial-ownersets up an organization's first owner without an identity provider or SMTP.- TOTP two-step verification with ten single-use recovery codes,
amrandacrvalues for each sign-in method, and an organization setting that requires it for local sign-in. - Account security pages for password, email, two-step verification, sessions, and linked SSO identities, opened from the application with
client.account.createEntry. Sensitive changes need a sign-in from the last five minutes. - An organization login policy (
enabled,recovery_only,disabled) at/v1/organizations/{id}/login-policy, migration progress at/v1/organizations/{id}/identity-migration, and a Sign-in policy page in the administration portal. - Identity linking with proof from both sides, and operator bulk migrations with a dry-run plan, resumable runs, and conflict reports. The provider-migration runbook covers the move to SSO and back.
- Operator credentials (
operators) for/v1/operator/*, and theenroll,account, andidentity-migrationcommands. - An SMTP outbox with leased delivery, exponential retries, delivery diagnostics, and replaceable plain-text templates.
- Throttles for passwords, second factors, registration, resets, links, and messages, shared by every replica through PostgreSQL.
compose.local.yamlruns the runtime, PostgreSQL, a development inbox, and the example without Keycloak or Dex.deployments/compose.migration.yamldemonstrates the move from local accounts to Keycloak and back.npm run test:e2e:localandnpm run test:e2e:migrationdrive them in a browser, and CI runs both.- The Express example signs people in with local accounts, lets new customers create a workspace, and opens the account pages.
enterprise-runtime migrateapplies migrations with a separate database role.storage.migrate_on_startup: falsemakes replicas only check that the schema is current.enterprise-runtime reencryptseals stored secrets again with the current master key after a rotation.previous_secret_key_envsin theeventsandadministrationsections names the keys that still open old values.server.metrics_portserves Prometheus metrics: request latency by route template, job runs, webhook outcomes, the database pool and the security signal inbox.- Every response carries
x-request-id. The runtime keeps a valid inbound ID and joins a W3Ctraceparenttrace. storage.max_connectionssets the database pool size.server.shutdown_grace_secondsbounds how long shutdown waits for requests and webhook deliveries in flight.- Policy activation accepts
without_comparisonto roll back to a previously active version while the PDP is unavailable. The SDK addspermissions.policies.rollbackWithoutComparison. - The SDK reports
requestIdon errors, retries transport errors, timeouts, 429 and 503, and adds cursor pagination and anEventPoller. - The admin portal reads
PORTAL_TRUST_PROXYbefore it trusts forwarded headers. - The Express example serves several organizations with
ENTERPRISE_ORGANIZATION_IDS. - A Helm chart, CI with pinned actions and cargo-deny, a release workflow, and backup and upgrade guides.
Changed
- The runtime listens before its dependencies are ready.
/readyzreturns 503 with the startup step it waits on, and startup retries while PostgreSQL or an identity provider is unavailable. A migration history that does not match the build still stops startup. - SIGTERM stops new connections and background jobs, then waits for work in flight.
- Webhook delivery runs up to 32 deliveries at a time on each replica.
- Access evaluation reads a consistent snapshot without locking the organization, and reuses the compiled permissions until the revision changes.
- Cleanup and retention delete in batches, and one replica at a time runs each job.
- A security signal that keeps failing backs off, and after eight attempts it is set aside, logged and audited instead of blocking later signals.
- SCIM filters accept operators and boolean literals in any case, and Entra string booleans.
Security event tokens accept the
application/secevent+jwtmedia type in any case. - Bearer credentials accept the scheme in any case and have one length limit everywhere.
- Organization row locks use
FOR NO KEY UPDATE, so account-wide revocation cannot deadlock with logins in another organization. enterprise-runtime reencryptalso reseals TOTP seeds and queued account messages.- Recovery codes carry 120 bits: 24 characters in six groups of four.
- A 401 from the API carries
WWW-Authenticate: Bearer, and a request that times out gets 503 instead of 408. - SSF receivers ignore unknown members of a complex subject and accept a fractional
iat. - Client ID Metadata Documents are on by default and take effect once
client_metadata_documents.resourceslists a resource. Until then, discovery does not advertise them and the runtime fetches no documents. - A refresh token presented again within
refresh_reuse_grace_seconds(30 by default) of its rotation gets a new token pair instead of revoking the grant, while no newer token of the grant has been used. A client that lost the response or two tabs refreshing at once no longer end the grant. - An authorization request without
resourcegets the client's resource when the client may use only one. - A store failure during code redemption returns 503 instead of
invalid_grant, so clients retry instead of restarting the authorization. - A double click or back-button resubmission of the approval form still finishes the sign-in: while the client has not redeemed its code, each repeat replaces it with a fresh one.
After redemption, a repeat sends
invalid_requestto the client instead of showing the "Sign-in expired" page. http://localhostredirect URIs count as loopback, with any port at request time, like127.0.0.1and[::1].
Fixed
- A SCIM filter treats
notas an operator only before(, as RFC 7644 section 3.4.2.2 defines it, sonot eq "x"filters on an attribute namednotinstead of failing. - Successful password sign-ins no longer count toward the local sign-in limits, which locked out a person who signed in 11 times in 15 minutes from one address. Only failed attempts count, as NIST SP 800-63B section 5.2.2 describes.
- Signed session revocations apply while a security event stream is still being verified.
- Deleting a SCIM group that a deny or require rule names keeps the restriction.
The group returns with the restriction when the directory re-creates it with the same
externalId. - Organizations with more than 4096 members no longer fail authorization.
- The administration browser test uses the broker issuer from the deployment configuration.
- Native SAML no longer refuses every login when the IdP metadata still lists an expired certificate next to a valid one. Only certificates inside their validity period verify responses, and each expired one is logged as a warning.
- A security signal that fails while several workers process the inbox counts as one failed attempt, not one per worker.
- An OIDC sign-in callback without
issis refused when the issuer's discovery metadata setsauthorization_response_iss_parameter_supported, as RFC 9207 requires. The runtime also checks an error response's issuer before it records the error as the identity provider's. - A refresh retried inside the grace window replaces the earlier response's refresh token, so a grant never keeps two live chains; the earlier access token works until it expires. The database allows one code per grant and one refresh token per generation, a revoked grant gets no fresh code, and a storage conflict during code redemption returns 503.
- A SCIM extension attribute that is always returned stays in the response when
attributesnames other attributes.
[0.5.0] - 2026-11-08
This release adds lifecycle events and reliable application integrations.
It also contains the v0.1 to v0.4 capabilities that the v1 plan (docs/v1-plan.md) lists as the feature baseline.
The v0.5 plan (docs/v0.5-plan.md) records its scope and verification.
The database schema includes migrations 0001 through 0007.
Added
- Versioned lifecycle events for user provisioning, activation, suspension, and deactivation. Events also cover memberships, group memberships, role assignments, resource grants, relationships, policy activation, sessions, SSO connections, directories, and organization configuration. Each event has a stable ID and references its organization, actor, and resource.
- An organization-scoped Events API with cursors, type filters, retention, and replay. An expired cursor returns an explicit error instead of skipping events. Event retention is separate from audit retention and defaults to 90 days.
- Signed webhook delivery with retries, backoff, request timeouts, per-endpoint delivery limits, and destination restrictions. Failed deliveries stay visible and support authorized replay within retention. Delivery is at least once. Consumers deduplicate by event ID and use resource versions to reject stale updates.
- Transactional publication: each runtime state change and its publication record commit in the same database transaction.
- Administration portal support for subscriptions, signing-secret rotation, delivery history, and replay.
- TypeScript SDK event types, cursor pagination, and webhook signature verification.
- An application outbox in the Express example. Business changes and pending audit records share one transaction in the application database.
- The
eventssection in the runtime configuration. Itssecret_key_envandprevious_secret_key_envssettings name the master keys for signing keys and cursors.