Restore inbox OAuth and discover delegated mail sign-in #217
No reviewers
Labels
No labels
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!217
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/inbox-authentik-permissions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
inbox.key.store completes Authentik login but then sends its token directly to Stalwart, bypassing the authentication bridge. Route OAuth discovery and API requests through inbox and verify an authenticated Mailbox/get against the advertised URL.
Lately now asks for an email first and discovers the provider's registered OIDC sign-in through a domain-owned descriptor. Other providers retain password login. Authorization-code PKCE, callback state checks, refresh rotation, and the encrypted vault feed bearer credentials to the shared Swift core. The public app contains no key.store provider special case.
A systemd reconciler translates effective Authentik impersonation permissions into Stalwart mailbox read/flag shares, including manager's contact/privacy mail and billing mail for founder. It preserves manual ACLs, journals owned grants for recovery/revocation, and grants no send-as, deletion, or sharing administration. Stalwart couples seen and keyword flags.
Validation: both Bazel mail test targets pass; modified Swift WebAssembly core and production website build with Nix; Nix unit/routing evaluation passes. A live empty-folder probe passed grant, repeat-run, and revocation and was removed. An unprivileged agent receives forbidden when reading manager mail. The existing founder Chrome session reproduced the original OAuth failure.
KSE-0195 records the decision, rights, safeguards, and rollback. Senior contributor review and acceptance are required before live rollout. Existing mail ACLs and the production app have not been changed. Final gates are founder browser sign-in on inbox and lately.org, shared-account listing, and denial/revocation checks after deployment.
WIP: Restore inbox OAuth and discover delegated mail sign-into Restore inbox OAuth and discover delegated mail sign-in