Files
puter/src
Daniel Salazar 57a29999e3 feat: phase 1 canonical app origin resolution (#2624)
* feat: phase 1 canonical app origin resolution

Adds cache-first canonical app uid resolution for origin-based auth flows with oldest-app selection and deterministic fallback, plus regression tests for hosted/non-hosted canonicalization behavior.

* refactor: use kv singleton for origin local cache

Replaces AuthService app-origin local canonicalization Map cache with kvjs singleton keys, applies TTL via EX on writes, and rotates local cache namespace on version bumps to avoid broad clears.

* refactor: target origin cache invalidation

Removes global app-origin cache version bumps and invalidates canonical origin cache entries by affected app index URLs from app.changed payloads. Also emits app and old_app data on update events for targeted invalidation.

* fix: avoid invalid old_app owner field in app change event

Removes owner_user_id access from AppES old_entity event payload because the entity model does not expose that property, fixing AppService comp upsert regression tests.
2026-03-09 16:32:32 -07:00
..
2026-03-09 12:49:14 -07:00