---
title: "Secrets & runtime delivery"
description: "Installation-bound secrets, AES-256-GCM, TPM-sealed keys, idempotent OIDC delivery and the no-plaintext boundary."
url: "https://rumahl.com/developers/secrets"
section: "Identity & security"
group: "Platform"
updated: "20 October 2026"
---

# Secrets & runtime delivery

> Installation-bound secrets, AES-256-GCM, TPM-sealed keys, idempotent OIDC delivery and the no-plaintext boundary.

**Area:** Identity & security  
**Group:** Platform  
**Updated:** 20 October 2026  
**Reading time:** 7 min  
**HTML:** https://rumahl.com/developers/secrets

## Boundary

Secrets live separately from the platform snapshot, app manifest, operation journal and normal app storage. Each record is bound to a complete AppIdentity and a validated namespaced purpose.

## Encryption

- Every value is encrypted independently with AES-256-GCM and a random 96-bit nonce.
- Authenticated data includes format version, secret ID, app identity, purpose, key ID and creation timestamp.
- SQLite stores metadata, key ID, nonce and ciphertext — never the root key.
- The 256-bit root key comes from a SecretEncryptionKeyProvider.
- Tpm2UnsealKeyProvider invokes a fixed absolute tpm2_unseal executable without a shell and accepts exactly 32 bytes.
- Missing keys and authentication failures fail closed.

## Delivery

Confidential OIDC clients are registered by storing the generated secret, persisting only its digest, verifying declaration-derived metadata on replay, and delivering the same value through the privileged runtime channel before the journal step becomes applied.

```text
operation + installation + client identity
        │
        ▼
decrypt stored OIDC secret
        │
        ▼
Unix peer-credential authenticated delivery
        │
        ▼
installation namespace read-only secret mount
```

## Non-negotiables

- No secret in the manifest, platform snapshot, React bundle, command line or environment variables.
- No secret in logs or error messages.
- Runtime adapters must acknowledge an identical replay and reject changed material.
- Update-time credential rotation and its rollback policy remain open work.
