Open Enterprise
Browse topics
DocumentationDeployment

Compatibility and deprecation policy

Open Enterprise uses Semantic Versioning 2.0.0. This page defines the public contracts that a version number describes. The v1 plan (docs/v1-plan.md) requires this policy before the 1.0.0 release.

Version numbers

A release number has the form MAJOR.MINOR.PATCH. Release candidates add a suffix, for example 1.0.0-rc.1.

From 1.0.0:

  • A major release can contain breaking changes to a public contract.
  • A minor release adds compatible features and deprecations.
  • A patch release contains compatible fixes only.

Before 1.0.0, a minor release (for example 0.5.0 to 0.6.0) can contain breaking changes. The changelog lists each breaking change and its migration steps. A patch release before 1.0.0 contains compatible fixes only.

The runtime, the PDP, the TypeScript SDK, and the administration portal share one version number. The Helm chart has its own version in its Chart.yaml.

Public contracts

HTTP API under /v1

The contract is the generated OpenAPI document in spec/openapi.yaml. It covers paths, methods, request and response fields, status codes, the error envelope, and the credential scopes that each operation requires.

Compatible changes:

  • A new operation or path.
  • A new optional request field or query parameter.
  • A new response field.
  • A new value in a field that the documentation describes as open, such as an event type.

Clients must ignore response fields that they do not know. Removing or renaming a field, making an optional input required, changing a field type, or changing the meaning of a status code is a breaking change.

TypeScript SDK

The contract is the set of exports from @open-enterprise/sdk and their documented behavior. This includes the exported types generated from the OpenAPI document. Adding exports, optional parameters, or optional fields is compatible. Removing or renaming an export, adding a required parameter, or narrowing an accepted type is a breaking change.

Configuration file

The contract is the runtime YAML configuration schema. The examples in deployments/ show it in use, and enterprise-runtime check-config validates it. The runtime rejects unknown fields. A minor release can add optional fields with defaults that keep the earlier behavior. A configuration that uses a new field therefore loads only on the release that added it or a later one. Removing a field, renaming a field, making a field required, or changing a default in a way that changes behavior is a breaking change.

Rust embedding

The contract covers the documented enterprise_runtime::embedding exports and their public method signatures, errors, and lifecycle behavior. It includes the credential and authorization behavior of Access, root route composition, worker supervision, and shutdown ownership. The Rust embedding guide defines host and storage responsibilities. The version rules in this policy apply to changes in that surface. Provider traits, AppState, and other internal Rust APIs remain outside this contract.

Commands and metrics

The contract covers the runtime command names and arguments, including the operator commands enroll, account, and identity-migration and their JSON output, the readiness responses, and the metric names and labels in run the runtime. Adding a command, a metric, or a label value is compatible. Removing or renaming a command, a metric, or a label is a breaking change.

Local account pages and email

The runtime-served paths under /auth/local and /account, their form field names, and the email template names and placeholders are a contract for deployments that brand or replace them. The page markup, wording, and styles are not. The amr and acr values that local sign-in records are a contract, because permission policies match them.

Event and webhook payloads

The contract covers the event envelope, each event type's payload schema, and the webhook request format. The webhook format includes the webhook-id, webhook-timestamp, and webhook-signature headers and the signature scheme.

The schemaversion field identifies the payload contract. Compatible payload changes, such as a new optional field, keep the same schema version. An incompatible payload change uses a new schema version and requires a major release from 1.0.0. New event types can appear in a minor release. Consumers must ignore event types and fields that they do not know.

Database migrations

Migrations are forward-only. Each release applies its new migrations in order and never edits or removes a released migration. The project does not ship down migrations. To return to an earlier release, restore a backup taken before the upgrade. See backup and restore.

The database schema itself is not a public contract. Applications and tools must use the HTTP API and must not read or write runtime tables directly.

Not covered

These items can change in any release:

  • Log messages, log fields, and trace attributes.
  • The HTML pages of the administration portal and the Fastify SaaS example, and the markup and wording of the runtime's local account pages.
  • The Compose files, fixtures, and development credentials.
  • Internal Rust crate APIs outside the documented embedding surface. This page does not yet define rules for the provider interfaces in enterprise-core.

Deprecation policy

A deprecation marks a part of a public contract for removal.

  1. A minor or major release announces the deprecation in the Deprecated section of the changelog. The entry names the replacement, if there is one.
  2. The reference documentation marks the item as deprecated.
  3. The deprecated item keeps working for the rest of that major version.
  4. A later major release can remove it. The changelog lists the removal under Removed with migration steps.

Before 1.0.0, the project follows the same steps, but a later minor release can remove a deprecated item. Security fixes are an exception. A release can remove or restrict an insecure behavior without a deprecation period. The changelog then explains the change under Security.

Supported upgrade path

Upgrade one minor version at a time, in release order. For example, upgrade 0.5.x to 0.6.x, then 0.6.x to 1.0.0. Within a minor version, you can move to any later patch release. Skipping a minor version is not tested. Downgrades are not supported.

Read the changelog entries for every version between your current and target versions before you start. Upgrade the runtime describes the procedure.

Search documentation