Skip to content

Integrate SyncD with reusable IAP grant management and notifications - #725

Merged
michielbdejong merged 2 commits into
mainfrom
codex/syncd-iap-control-panel
Nov 9, 2026
Merged

michielbdejong merged 2 commits into
mainfrom
codex/syncd-iap-control-panel

Conversation

@michielbdejong

@michielbdejong michielbdejong commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

SyncD now manages remote IAP access from its existing local control panel. Provider credentials stay at the proxy, imported records/history stay in local PostgreSQL, and the reusable IAP iframe receives neither keys nor device tokens.

Behavior

  • Add explicitly approved connections:manage (selected connections), sessions:manage (this owner's client sessions), and notifications:consume permissions. Default/read grants stay unchanged and refresh cannot add authority.
  • Serve a reusable /manage page and module. SyncD's ui --manage obtains a separate foreground management grant and leaves the daemon's Keychain session alone. An exact-origin/window message bridge maps only fixed management actions to the localhost backend.
  • Support notification-only webhook receivers: verify and route the provider body, then discard it before persistence. Retain routing metadata and a fixed change hint. Bind the inbox database to that storage mode to prevent accidental exposure of older raw payloads.
  • Let configured SyncD collections subscribe outbound, schedule work durably before acknowledgement, renew leases and perform a full bootstrap after a gap even when a delta token exists.

Validation

  • Syncables full unit suite: 2,046 passed, three existing native-peer cases skipped. Final focused browser/management/notification/runtime suite: 23 passed, including the additional full-bootstrap regression.
  • Proxy regular unit suite: 174 passed; database-backed device suite: 16 passed; webhook suite: 77 passed, plus the new selected-connection/notification-only access test. Strict all-target/all-feature Clippy, executable build, TypeScript/build, formatting and changelog checks passed.
  • Headless Chromium exercised real local IAP and SyncD servers with PostgreSQL, signed owner approval and actual device grants, using an invented provider connection. Revoking app access traversed the iframe and real management API; no browser page errors. Desktop/mobile screenshots are provided in the maintainer's Codex chat.

Trying and rollout

See syncables/docs/daemon.md and integration-proxy/MANAGEMENT.md. Build both components from this branch. Existing published proxy 0.4.1 does not implement these new scopes/routes. This PR does not publish packages, change live configuration or deploy IAP.

New provider connections still use the existing owner-hub/provider consent flow. Notification source settings are in the local config; a browser editor is not included. Provider hook metadata/secrets and a trusted approval hub/public client registration must be configured. For IAP use a fresh notification-only inbox and do not run older binaries against it.

Preserve the agreed localhost-test and CI gates before deployment; publishing a reviewed proxy release and bumping the SaaS wrapper follow separately.

Michiel de Jong added 2 commits November 6, 2026 20:09
Claude-Session: codex://threads/01a1b0eb-3184-735e-8126-92bb9409f07b
Codex-Session: codex://threads/01a1b0eb-3184-735e-8126-92bb9409f07b
Claude-Session: codex://threads/01a1b0eb-3184-735e-8126-92bb9409f07b
Codex-Session: codex://threads/01a1b0eb-3184-735e-8126-92bb9409f07b
@michielbdejong
michielbdejong merged commit 611d06f into main Nov 9, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant