Commit Graph
90 Commits
Author SHA1 Message Date
Matthew Meszaros 72c0777c33 feat: confirm an agency plan switch only from the price and billing period its preview was made for, let a switch Stripe already holds be previewed and completed, hold keyed requests on agency routes to the agency's staff before any answer is recorded or replayed, and bound the switch locks 2026-11-11 09:18:27 +01:00
Matthew Meszaros a170997c17 feat: bill an agency plan switch at the moment its preview priced it, run one switch per agency at a time, complete a switch Stripe already holds, scope retry keys on agency routes to the agency for staff with no workspace selected, and refresh the open workspace's plan after a switch 2026-11-11 08:57:39 +01:00
Matthew Meszaros a79a196912 feat: add Warmbly for Agencies with a separate agency view, agency accounts, a shared monthly send pool, a shared agency AI balance with per-client caps and transfers, agency billing and top-ups, agency API keys across clients, client mailbox connect links and shareable and scheduled client reports served by a separate portal service on portal domains, white-label branding with a branded client dashboard on agency portal domains and website embeds, copy campaigns and templates across workspaces, and a cross-client inbox 2026-11-10 08:31:31 +01:00
Matthew Meszaros 8586d794cd feat: key OAuth Idempotency-Key records to the access grant, word the idempotency_outcome_unknown guidance around the 24-hour key lifetime and confirming the change did not happen, note that a 429 never clears a recorded outcome and a gateway 5xx leaves the key unused, carry the error code out of the retry example, and bound the live test's wait for a held request 2026-11-09 17:33:28 +01:00
Matthew Meszaros 1e9594f6c0 feat: key Idempotency-Key records to the calling credential and the concrete resource path, record each outcome on a context detached from the request, free the key after a 401/403/429 refusal, and answer 409 idempotency_outcome_unknown after a server error, panic or abandoned request, with live PostgreSQL tests wired into CI and the retry-safety, authentication and error-code docs updated 2026-11-09 17:02:06 +01:00
Matthew Meszaros 29eedfaef3 Merge pull request #1184 from warmbly/feat/gmail-signin-follows-backend
feat: show Google mailbox sign-in whenever the backend allows it and remove the dashboard flag
2026-11-07 10:34:55 +00:00
Matthew Meszaros bc85154d2d feat: show Google mailbox sign-in in the dashboard whenever the backend reports gmail_oauth_connect, removing the WARMBLY_GMAIL_OAUTH_CONNECT and VITE_GMAIL_OAUTH_CONNECT dashboard flag and the assessment-dashboard setup from config, compose files, docs and tests 2026-11-07 11:10:37 +01:00
Matthew Meszaros 1076722d97 feat: add client roles for restricted members: organization_roles.acts_in_scope (migration 000365 widens the access trigger to manage_campaigns and send_campaigns from such roles), a ResourceScopeGate action allowlist for unibox replies, labels, read state, filing, snoozes and scheduled cancels and for granted campaign edits, steps and start/stop, handler checks holding replies to conversations in granted mailboxes and campaign edits off senders, folders, tracking domain, status and workspace step actions, three client role presets in the member access dialog, invite flow and Roles page, scope-aware dashboard controls, tests and docs 2026-11-07 11:01:55 +01:00
Matthew Meszaros 9b0b319ee7 feat: enforce issued password format and add scoped private attachment downloads with restricted runtime TLS ciphers 2026-11-02 13:05:45 +01:00
Matthew Meszaros f400ff3b2b feat: authenticate each fleet node by its own NODE_CREDENTIAL on every node-only internal route (X-Warmbly-Node-Id and X-Warmbly-Node-Credential sent by every worker and consumer client, node id carried in the request context, named in broker access logs and bound to the heartbeat and node env), add NODE_REQUIRE_NODE_CREDENTIAL to refuse the fleet token once every node sends its credential, seed a dev worker credential, and document the rollout 2026-10-31 11:18:51 +01:00
Matthew Meszaros ba32a208fe feat: name the edge and node token route group test distinctly from the node route edge token test 2026-10-26 06:58:50 +01:00
Matthew Meszaros dec13b1503 feat: merge fresh authentication on member, role, billing, credit, API key and webhook routes, reset tokens in the URL fragment, refused repeated OAuth form parameters and the 48-hour invitation and tester expiry cap into the tenant-scoped hosts branch 2026-10-26 06:56:09 +01:00
Matthew Meszaros 75452ada8c feat: merge per-node fleet credentials, the resolved deployment mode in node env, worker env without instance credential keys, hosted-only TLS verification for the platform relay and XOAUTH2, instance-mode credential reseal, broker access logs for node env and cloud-link tokens and the TWOFA_SECRET floor into the tenant-scoped hosts branch 2026-10-26 06:54:44 +01:00
Matthew Meszaros b152336626 feat: state the auth rate limit, login gate, admin second factor, broker access log, outbound webhook URL validation and unibox tag scoping comments as the invariants the code holds 2026-10-26 06:54:02 +01:00
Matthew Meszaros 4ff10e3612 feat: require a fresh confirmation from session callers for member removal, custom role create/edit/delete, subscription checkout, billing portal, plan change and cancel, AI credit checkout and spend settings, pool-link checkout, API key edits and webhook endpoint create/edit, hold the matching assistant tools to the same gate, prompt for it when removing a member in the iOS app, and list every gated route in the endpoints, error-codes, security and assistant docs 2026-10-26 06:53:24 +01:00
Matthew Meszaros 0f1672f728 feat: test that node-only internal routes refuse the edge services' token unless an operator opts in, and that a reply's own-conversation claim never crosses into another workspace holding the same inbox address 2026-10-26 06:52:17 +01:00
Matthew Meszaros f5dadf5f9b feat: load the mailbox through the organization-scoped repository before reading its seed scope when starting or resuming warmup, and add cross-workspace tests for CRM, segments, templates, teams, webhooks, automations, export archives, agent sessions, public object prefixes, node and edge token separation and realtime channel joins 2026-10-26 06:25:04 +01:00
Matthew Meszaros d57973a6d4 feat: answer every realtime HTTP path other than the health probe with an empty 404, and add tests for admin route MFA refusal, Origin never granting API access, and public object directory paths 2026-10-26 06:16:59 +01:00
Matthew Meszaros e44ec03cde feat: render campaign copy once after the A/B variant pick, escape reply template HTML previews in one pass, keep revoked session tombstones for the session cache lifetime and fill the cache with SetNX, refuse realtime socket tickets whose single use cannot be recorded, clear workspace-derived dashboard storage on logout, and add tests for session deadlines, password change revoke order, fresh auth, emailed code budgets, join token rotation, gin release mode, panic bodies and the auth secret floor 2026-10-26 06:13:59 +01:00
Matthew Meszaros 9be5c8a3c3 feat: give API refusals stable codes and actionable messages (attempt_check_unavailable and code_lookup_limited with Retry-After, account and workspace standing codes, session_ended, reset_link_invalid, sessions_not_ended, api_credentials_revoke_unsupported, invitation_expired, image_unreadable and the other image upload codes, own-domain redirects naming the allowed domains, Pipedrive reload guidance, duplicate parameters, structured forms service errors), and show them in the dashboard, admin panel and warmbly CLI 2026-10-23 19:53:03 +02:00
Matthew Meszaros dba87e8d74 feat: merge fail-closed ban and attempt-budget reads, 48-hour invitations and tester passwords with one-click resend, transactional invitation consumption, development-only seeding and redacted log mail links 2026-10-23 16:06:29 +02:00
Matthew Meszaros 9bb0a39e96 feat: answer a repeated single-valued query parameter with 400 duplicate_query_parameter and a repeated Authorization, X-Warmbly-Token, Idempotency-Key or Origin header with 400 duplicate_header on the API and forms service, keep the documented list parameters repeatable, fold X-Forwarded-For lines and read the last line of the other forwarding headers there and in the tracking service 2026-10-23 16:03:06 +02:00
Matthew Meszaros 8d2fd3f1f7 feat: charge every CLI sign-in and warmup pool link code lookup, approval and denial to a 30-per-minute budget per signed-in member that refuses with a retryable 503 when the budget cannot be checked, documented in the endpoint scope map 2026-10-23 15:43:12 +02:00
Matthew Meszaros fdea749005 feat: preserve encrypted credentials and MFA enrollments across staged key rotation with scoped token grace periods 2026-10-22 12:37:19 +02:00
Matthew Meszaros ec46f57d22 feat: redesign the iOS app (inbox with inbox agent drafted replies edited in the full composer, Remie, home, analytics, CRM, contacts, settings hubs, mailbox connect flow covering every dashboard source) and replace Turnstile in the app with Apple App Attest (attested keys in app_attest_keys, challenge and key endpoints, verifyHuman gate on login, registration and password reset, auth config flag, docs and OpenAPI) 2026-10-11 19:00:50 +02:00
Matthew Meszaros 314223345e feat: enforce grant-scoped organization summaries and account-wide workspace creation with target membership checks for limit requests 2026-10-10 10:54:59 +00:00
Matthew MeszarosandDevin AI 9efc162fb8 feat: preserve bounded non-UUID request tracing identifiers in admission diagnostics while rejecting unsafe or oversized values
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-10 06:31:23 +00:00
Matthew Meszaros bb4156cc6a feat: add resource-scoped member access that restricts a member to selected campaign folders, campaigns and mailboxes read-only, enforced in the API route gate, SQL filters, permission trigger, realtime channels and dashboard 2026-10-09 13:34:05 +02:00
Matthew MeszarosandDevin AI d8d537fb9a feat: guard Kafka polling, offset storage and publication against client shutdown and preserve production diagnostics by trimming routine internal lookup access logs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-07 07:52:15 +00:00
Matthew MeszarosandDevin AI dfed1e1593 feat: validate API UUIDs, recover expired Gmail history and guard consumer startup and stale frontend assets
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-07 07:19:15 +00:00
Matthew MeszarosandDevin AI e0f9a55a30 feat: apply shared query validation to the legacy invitation lookup before rate limiting and preserve valid link behavior
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-06 12:52:39 +00:00
Matthew MeszarosandDevin AI 4d3c782ca1 feat: reject unsupported raw API query text before mailbox and campaign searches reach the database
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-06 12:22:33 +00:00
Matthew MeszarosandDevin AI 416c4feee3 feat: prevent private API response storage and remove wildcard CORS from the static Pages dashboard
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-06 12:05:54 +00:00
Matthew MeszarosandDevin AI 849cf18f55 feat: bind password recovery, invitations, mailbox and integration OAuth, referral and billing returns to trusted initiating dashboards
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-05 12:51:37 +00:00
Matthew Meszaros cbee2d3073 feat: answer a node heartbeat sent with INTERNAL_API_TOKEN where NODE_BROKER_TOKEN is required with the node's desired version only, recording nothing, through NodeHeartbeatAuthMiddleware and fleetnode UpdateOnly, so a node on an older release always updates itself onto the broker token without NODE_ACCEPT_INTERNAL_TOKEN, and say so in the configuration and split-deployment docs 2026-10-05 06:54:31 +02:00
Matthew Meszaros ab39429e37 feat: send HSTS from the forms service only on FORMS_DOMAIN and strip it in the installer's Caddy block for customer-owned domains, so no customer apex is pinned to HTTPS 2026-10-04 05:19:22 -07:00
Matthew Meszaros c178dadf81 feat: keep the key and blob brokers on NODE_BROKER_TOKEN only, and let an operator admit INTERNAL_API_TOKEN on the other node routes with NODE_ACCEPT_INTERNAL_TOKEN=true while nodes joined before the split upgrade 2026-10-04 05:18:01 -07:00
Matthew Meszaros cbf0667d8f feat: hold every API key to its creator's current workspace role on each gated route and AI tool, and stop a key, including on the realtime socket, once its creator leaves the workspace (api_key_holder_left) 2026-10-04 05:15:30 -07:00
Matthew Meszaros 5d4b0ad6e5 feat: hold the invite_member, update_member_role and rotate_webhook_secret AI tools to the same recent confirmation their REST routes require, answering reauth_required on /ai/tools and refusing them where no confirmed session exists 2026-10-04 05:14:30 -07:00
Matthew Meszaros 663c3013d1 feat: bind each Remie approval to its tool call and run it once, show every argument and the resolved send on dashboard and Slack approval cards, keep always-allow to settings managers with a revocable list and never for tools that start sending or change access, withhold secrets and unpermitted tool results from the assistant and shared conversations, gate /mcp, /ai/tools and the web and playbook tools on AI_AGENT or use_ai, and scope get_mailbox by organization 2026-10-04 03:45:02 -07:00
Matthew Meszaros e852a106a9 feat: serve every node-only internal route (data keys, message map, sync lookups, worker config, fleet heartbeat) on NODE_BROKER_TOKEN and leave only tracked links, domain redirects, page hits and forms on INTERNAL_API_TOKEN, render nodes only the node token when one is set, and have the installer generate a distinct NODE_BROKER_TOKEN for new installs and its own UPDATER_TOKEN 2026-10-04 03:21:58 -07:00
Matthew Meszaros bf47984cd5 feat: cap every OAuth grant and API key at the delegating member's role (consent narrows scopes and reports the withheld ones, tokens re-check the member's current role at every gate and MCP tool, keys stay within their creator's permissions, mailboxes and IP allowlist), keep OAuth tokens off API key and OAuth app management, require a fresh sign-in to approve an app, revoke a grant whose refresh token is presented twice, count only unexpired grants as installs, seal app webhook secrets under the instance key, name the workspace and flag unverified apps on the consent screen, and let credential managers list and revoke every member's app authorizations 2026-10-04 02:59:10 -07:00
Matthew Meszaros 8bb60e9449 feat: accept only Salesforce domains as an org's API host and call it through the SSRF-guarded client, register the Warmbly Cloud link only on self-hosted instances behind the instance admin with a second factor and dial it through safehttp with fixed error text, keep automation signing secrets in the sealed connection config, answer integration service failures with fixed messages, add security headers to the forms, tracking and docs origins and TLS 1.2+ to the nginx template, compare the captcha bypass in constant time, require TLS 1.2 for IMAP probes, and drop the unused RSA helpers 2026-10-04 02:58:43 -07:00
Matthew Meszaros 610d511307 feat: answer every server-side failure in admin, internal, webhook, warmup routing, Stripe webhook, agent tool and MCP handlers with the fixed internal error and log the detail against the request id, keep correctable webhook and routing refusals as typed errors with their own messages, drop the request URL from MillionVerifier transport errors so the API key never reaches a log or response, and redact :code path parameters in the access log 2026-10-04 02:57:17 -07:00
Matthew Meszaros f0ec39febd feat: scope automation and sequence unsubscribes to the caller's organization, require manage_settings to create, edit, enable or delete automations, run each integration action only on its own provider's connection (400 action_provider_mismatch), refuse org-permission gates when no organization service is wired, read /integrations/bookings like contacts, scope lead claims, research runs and CRM list cursors to the organization, and bind contact note edits to the contact in the path 2026-10-04 02:47:10 -07:00
Matthew Meszaros 75f764dc67 feat: require a verified Cloud Tasks token with a pinned audience on task webhooks, manage_settings on integration OAuth and a fresh membership check at every mailbox and integration OAuth finish, user verification for passkey sign-in, ended sessions before a password reset or ban reports success, and a revoked session when a rotated refresh token is replayed; remove the internal DEK delete route, log credential path parameters by name, hold remote images in received mail until the reader loads them, add Calendly and Cal.com signing keys with inbound URL rotation, keep automation signing secrets out of connection responses, and apply the password rules to the bootstrap password 2026-09-30 06:46:24 -07:00
Matthew Meszaros b3518dd775 feat: resolve the unibox contact panel's sender through the thread's campaign send when the reply comes from an address that is not a contact (alias, second domain, forward, or another workspace mailbox), via thread_id and account_id on GET /contacts/lookup with a match field, gated on unibox access and the API key mailbox allowlist, show a Replied from line and keep a loaded contact on a failed refetch, skip every workspace mailbox when picking the other party, apply the same match to Pause follow-ups when answering the sender, and document it 2026-09-28 09:03:19 -07:00
Matthew Meszaros 1b45c630bb feat: end a removed member's sessions and OAuth app grants through a removal hook detached from the request, refuse OAuth tokens whose holder is no longer a member, clear and detach a session selection that outlived its membership, gate subscription checkout, portal and cancel on manage_billing in the API and the dashboard, re-read org channel permissions live on member, role and ownership changes and withhold gated events while they cannot be read, drop the unrouted GitHub releases webhook handler, and correct v1 and release trigger paths in the docs 2026-09-26 22:07:54 -07:00
Matthew Meszaros 2df8991db5 feat: scope every session request to a workspace its user is still a member of, deselect a removed member's workspace on all their sessions, disconnect their realtime sockets on removal, and correct the singular /organization paths in the API docs 2026-09-26 21:18:49 -07:00
Matthew Meszaros 5b16a09b02 feat: write public objects without a canned ACL so a bucket whose ownership is owner-enforced still stores avatars, form assets, OAuth logos and email-body images, give the passkey login challenge its own per-IP budget separate from the one password sign-in draws on, and surface the API's own message at upload and passkey call sites instead of a generic sentence 2026-09-20 15:40:52 +02:00