All articles
Back to Developers
Resources & data

Install, uninstall & databases

How the durable operation journal coordinates app databases, runtime preparation, OIDC registration, secrets and the platform snapshot.

8 min read Updated: 21 November 2026
Markdown

Why a journal

Installing an app crosses several persistence boundaries that cannot share one transaction: the platform snapshot, optional app databases, runtime preparation and activation, and optional OIDC registration and secret delivery. rumahl records ordered steps and can resume or compensate after a crash.

Install order

The platform snapshot is always last, so live state cannot advertise resources whose provider step has not completed. App code cannot start before its declared runtime secrets exist.

text
optional app databases
prepare runtime instance and secret namespace
optional OIDC client registration
activate runtime instance
store platform snapshot

Uninstall order

An interrupted uninstall resumes forward. Databases are retained in inaccessible storage; physical deletion is a separate explicit purge policy that is not implemented yet.

text
stop runtime
remove runtime secrets
revoke app grants and network consents
revoke OIDC client
remove prepared runtime
retain app databases
store removed platform snapshot

Crash-visible states

PhaseMeaning
pendingNot started
applyingProvider call may have happened; ambiguous after a crash
appliedProvider confirmed success
compensation-pendingMust be reversed
compensatingReverse call in progress
compensatedReverse call confirmed

App databases

Databases are optional and declared by logical names only. The host path, engine, credentials and connection details belong to the provider, never the manifest.

  • Each active database is addressed by (InstallationId, AppDatabaseId).
  • An app can declare at most eight databases.
  • SQLite is the first local provider; PostgreSQL and native delivery remain separate adapters.
  • A new installation never inherits an old installation’s database.

Current status

Update execution is not connected yet

Install, uninstall, compensation and restart recovery are implemented. Update execution still needs version validation, database backup/migration, health checks and rollback policy.

Need more context? Read the source or open a discussion with the project.

On this page