Security Model
Security failures in AppCore usually begin as boundary confusion: a manifest accidentally contains a secret, a retry is accepted twice, a peer request is replayed with a different body, or an update artifact is trusted because the path looked familiar.
AppCore security is a set of boundaries rather than a single feature. The runtime validates manifests, scopes tokens, redacts diagnostics, protects replay windows, bounds files and payloads, and keeps secret material out of manifests.
Why are signed tokens not secret containers?
Runtime tokens use signed claims. A token proves integrity and issuer policy; it should not be treated as an encrypted container. Secrets and private keys must not be placed in manifests, URLs, logs, or debug output.
Gateway and Peer RPC credentials are scoped to peer purpose. Gateway connection credentials are short-lived, single-use, and bound to connection identity. Peer RPC request tokens can be bound to the hash of an envelope.
Where is replay blocked?
Replay protection appears in multiple layers:
- command idempotency keys prevent repeated client commands;
- sync sequences and checkpoints prevent duplicate replication records;
- peer RPC nonces prevent reused envelopes;
- gateway connection
jtivalues prevent reused connection credentials; - update build IDs and version checks prevent reactivating the active artifact under a new path.
What does filesystem security cover?
Runtime file formats reject symlinks and path traversal where the provider owns the boundary. Several stores use owner-only directories or files on Unix, explicit locks, bounded reads, temporary files, atomic replacement, and parent-directory sync.
This does not make an unsafe host safe. If the operating system account is compromised, local runtime files can be attacked outside AppCore's process.
Why does DNT bind context?
DNT protects portable files by authenticating the header and encrypting payload plus encrypted metadata. Because the header includes application ID, optional tenant ID, content type, codec ID, key ID, and schema version, an envelope cannot be moved across those contexts without failing verification.
Why does update security combine policy and bytes?
Update security combines descriptor policy, cryptographic authenticity, artifact byte limits, SHA-256 integrity, immutable staging, activation health checks, and rollback.
Unsigned local artifacts are not a production default. They require a dedicated compile-time feature and strict local file validation.
Limitations
- AppCore does not provide OAuth.
- It does not provide production TLS termination for every deployment shape.
- It does not provide a managed production vault.
- Hardware-backed keys are not a 1.0 release-candidate guarantee.
- AppCore does not define domain authorization policy.
- It cannot protect local files from a compromised host operating system account.
Continue with providers.