This website requires JavaScript.
Explore
Help
Sign In
starred
/
warmbly
Watch
1
Star
0
Fork
0
mirror of
https://github.com/warmbly/warmbly.git
synced
2026-11-17 08:18:51 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
ea202f509d229e468358161fecde2111fdad4a98
warmbly
/
internal
/
config
T
History
Matthew Meszaros
999597508c
feat: provision private three-zone NATS JetStream and add gated Kafka migration readers with compatible codecs
2026-11-02 15:25:15 +01:00
..
auth_rotation_test.go
feat: require a TWOFA_SECRET of at least 32 characters on hosted production, and on self-hosted or development instances keep booting with a short one while logging a warning and raising the twofa_secret_short instance health finding
2026-10-26 06:26:53 +01:00
brand.go
feat: keep every recipient-facing and self-host-facing address on the deployment's own domain: mint unsubscribe links on a workspace's verified tracking domain (served by the tracking service, proxied to the backend that owns the pages), attach RFC 8058 one-click only over https, resolve all branding through config.Brand() gated on SelfHosted() so a self-host's email footer, sign-in links, stats card, API example and public form badge name nobody else, drop the app.warmbly.com fallback from AppBaseURL, blank TRACKING_DOMAIN and FORMS_DOMAIN on core-only installs, and have install.sh offer to configure a fresh interactive install instead of silently defaulting to localhost
2026-09-09 06:34:43 -07:00
campaign_recovery_test.go
feat: recover unknown-outcome send holds automatically by turning campaign send isolation on by default, releasing never-started reservations after 30 minutes, lifting started Unibox, placement and Cloud holds that can never run again (tasks.send_hold_lifted_at, migration 000334) and clearing holds on missing or settled tasks, and replace the provider-confirmation mailbox health message with a no-action-needed one
2026-10-31 09:04:17 +01:00
campaign_recovery.go
feat: recover unknown-outcome send holds automatically by turning campaign send isolation on by default, releasing never-started reservations after 30 minutes, lifting started Unibox, placement and Cloud holds that can never run again (tasks.send_hold_lifted_at, migration 000334) and clearing holds on missing or settled tasks, and replace the provider-confirmation mailbox health message with a no-action-needed one
2026-10-31 09:04:17 +01:00
config_api.go
feat: bound auth login network waits
2026-06-01 16:56:24 +02:00
config_auth_test.go
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
config_auth.go
feat: require a TWOFA_SECRET of at least 32 characters on hosted production, and on self-hosted or development instances keep booting with a short one while logging a warning and raising the twofa_secret_short instance health finding
2026-10-26 06:26:53 +01:00
config_authpolicy.go
feat: make self-hosted onboarding survivable by fixing invite_only, which could not onboard anyone (the accept route is JWT-only, so redeeming the invitation that would create your account required already having one, making the self-host default silently identical to fully closed), threading the invitation token through registration so an invited person lands in the inviting organization instead of a stray workspace, gating SSO just-in-time provisioning behind DISABLE_REGISTRATION (it bypassed the gate entirely, so an instance set to true was still open to anyone the IdP would assert) with SSO_AUTO_PROVISION as the opt-out, correcting the OIDC redirect URL that pointed at /api/v1 against a route at /v1 and 404'd every SSO login, scoping the first-launch exemption so it no longer overrides an explicit lockdown, preserving the remaining TTL when restoring a losing setup token so a public endpoint cannot hold the claim window open forever, replacing a generic 403 with typed registration_invite_only, registration_closed, invitation_invalid, setup_token_invalid and setup_already_complete codes that name the next step, logging why no claim link was issued on an already-claimed instance instead of staying silent, adding a warmblyctl operator CLI (status with health checks and a non-zero exit, reissuable setup-link, user create/list/reset-password/grant-admin/revoke-admin/disable-2fa, hash-password) so a locked-out operator no longer needs hand-written psql, adding read-only instance configuration over 104 environment variables with structural secret redaction and fingerprints, 35 health checks, a database-backed settings tier for the three keys no environment variable owns, hiding the signup form when the config already says invite_only rather than failing the whole form with a toast, and documenting first run, accounts and access, configuration, instance health and troubleshooting alongside the root .env.example the README told operators to write but never shipped (
#114
)
2026-08-16 05:58:11 +02:00
config_databases_test.go
feat: add Terraform AWS hosting with optional Postgres pooling and migration-gated deployments
2026-10-22 08:57:54 +02:00
config_databases.go
feat: add Terraform AWS hosting with optional Postgres pooling and migration-gated deployments
2026-10-22 08:57:54 +02:00
config_email.go
feat: make a custom tracking domain verifiable instead of permanently "Pending DNS": the CNAME target is now this install's TRACKING_DOMAIN rather than a hardcoded t.warmbly.com that resolves nowhere, matching is exact on the label boundary (or on shared addresses, so a provider-flattened CNAME stops reading as no record at all) instead of strings.Contains, and every outcome carries the reason plus what DNS actually returned, including when the tracking host the customer is told to point at has no record of its own; a pasted URL is normalized to its host and a malformed one is rejected up front instead of saved and left pending forever; only a VERIFIED mailbox domain is used at send time with the shared host as the fallback and a campaign-feed entry saying why; pixels and click tickets are built from the configured host, and with none configured mail ships untracked rather than carrying links to another deployment's tracking service; adds GET /emails/:id/track and POST /emails/:id/track/verify plus an hourly re-resolution sweep so a record that propagates later starts being used and one that breaks stops routing links; and scopes the tracking-domain write by organization like the read, which also fixes GET /emails/:id passing a user id to an org-scoped query and 404ing for every caller
2026-08-24 09:02:29 -07:00
config_google.go
Config & Deploy
2026-01-29 08:50:38 +01:00
config_kafka.go
refactor: route worker events and tracking through the event bus
2026-07-20 09:56:16 +02:00
config_log.go
feat: make PostHog the default error tracker across every runtime while keeping Sentry fully supported alongside or instead of it, by turning internal/observability/errs into a two-sink fan-out with a local-log fallback, adding $exception capture to the Go services, the Rust tracking service, the Elixir realtime service and the dashboard, admin and form apps, reporting gin panics with their route, request id, workspace and user, attaching that identity plus a route and failed-request trail to browser exceptions, and wiring POSTHOG_ERROR_TRACKING, the node join env, compose, source-map upload and the docs to match
2026-09-10 19:11:32 +02:00
config_smtp.go
feat: verify the platform SMTP relay certificate on hosted production whatever SMTP_TLS_INSECURE_SKIP_VERIFY says, send the SMTP XOAUTH2 bearer token only over TLS or to a loopback host, and report an ignored relay knob in instance health
2026-10-26 06:25:13 +01:00
config_stripe.go
feat: AI credit economy with monthly plan grants, non-expiring purchased top-ups, and Stripe billing - two-pool credit_ledger (monthly allowance reset each cycle on invoice.paid, purchased pool via checkout mode=payment fulfilled webhook-only), consume drains monthly-then-purchased, 3 fixed top-up packs, /subscription/credits balance+checkout+paginated transactions gated on manage_billing, one-time trial grant, billing credits card with balance ring and pack buttons, credit_purchase/credit_grant audit entities and spine, wired plan.monthly_credits through pg_plan reads/writes, retry-safe webhook idempotency, and an AI credits guide
2026-07-13 17:40:20 +02:00
config_tasks.go
Add sample auth UI theme
2026-02-10 19:30:47 +01:00
config.go
feat: add config.GetBoolPtr returning nil when an optional boolean env is unset, so a caller can fall back to its own default
2026-07-16 06:14:19 +02:00
constants.go
feat: bind every node-only internal call from a credential-authenticated worker to its own assignment (worker id, assigned mailboxes, their organizations, data keys and mailbox or campaign blob keys) via internal/app/nodescope with a 30s per-node cache and indexed point lookups on a miss, keep a moved mailbox in its previous worker's scope for 30 minutes through email_accounts.previous_worker_id and worker_released_at recorded by a trigger (migration 000337), grant an organization to a worker for a credential check, exempt consumers, and document the invariant
2026-10-31 11:38:04 +01:00
dashboard_origin_test.go
feat: carry the password reset token in the emailed link's #session= fragment, have the reset page read the fragment or the query from earlier mail and clear both from the address bar, and forward the unused /auth/login/confirm and /auth/register/confirm pages to the current sign-in and sign-up flow without reading credentials from their query
2026-10-26 06:53:35 +01:00
delegation.go
feat: rebuild mailbox import around column mapping and automatic host and sign-in detection (CSV, XLSX, pasted lists, saved mappings, retryable rows with fixes, migrations 000205-000206), connect whole Google Workspace domains and Microsoft 365 organizations through a proved administrator grant, import from inbox vendors (InboxKit, Zapmail, Mailforge, Infraforge, Maildoso, Cheap Inboxes, ScaledMail) with vendor-managed forwarding and DNS, add a sending domains page with per-domain tracking and verified root redirects, unify Add account into one Google and one Microsoft entry with per-method choices, mark per-mailbox Google sign-in as retiring with in-place moves to the admin grant or an app password, allow the loopback security mode in the credential columns (migration 000207), read semicolon-separated CSVs, and add a mock vendor API to the sandbox
2026-09-23 08:41:01 -07:00
endpoint_storage.go
feat: erase everything a disconnected mailbox leaves behind, revoking its OAuth grant at Google and deleting its stored message bodies through a durable retried queue, cascade the nine mailbox foreign keys that had none so warmup receipts, tampering events and provider message maps stop outliving the mailbox, clear thread labels and snoozes on conversations the delete emptied, make workspace deletion possible at all by cascading the four organization foreign keys with no delete action, and put Disconnect in the mailbox row menu and a Settings danger zone since it was only reachable from the selection bar (
#506
)
2026-09-14 07:55:01 -07:00
endpoints_test.go
feat: restore existing self-host realtime connections through normalized legacy gateway URLs and an authenticated API-origin WebSocket proxy, preserve ticket-bound client IP limits and direct retry fallback, and remember workspace mailbox tag filters across navigation with deterministic default account grouping
2026-10-08 06:57:48 +00:00
endpoints.go
feat: carry the password reset token in the emailed link's #session= fragment, have the reset page read the fragment or the query from earlier mail and clear both from the address bar, and forward the unused /auth/login/confirm and /auth/register/confirm pages to the current sign-in and sign-up flow without reading credentials from their query
2026-10-26 06:53:35 +01:00
ginmode_test.go
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
inbox_test.go
feat: provision onboarding-complete reviewer workspaces with expiring Test access, bounded credits and Test header labels
2026-10-05 16:15:56 +00:00
inbox.go
feat: control Gmail mailbox OAuth per frontend deployment and bind callbacks to allowlisted dashboard origins
2026-10-05 12:16:34 +00:00
inboxtag.go
feat: make automatic inbox tagging atomic live and reviewable in production
2026-09-17 04:57:24 -07:00
node_token.go
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
oauth2.go
feat: build the browser half of social sign-in, which was never wired: GOOGLE_CLIENT_ID was read at boot and made the login screen render a Google button, but the button opened a popup at /auth/google/login which no route served, and authService.GoogleAuth/AppleAuth had no caller anywhere in the codebase; internal/app/socialauth now runs Google and Apple through the flow generic OIDC already used (one-time state, PKCE, nonce, id_token verified against the provider JWKS, identity keyed on issuer and subject, JIT provisioning, the ban and 2FA gates), the redirect URI defaults to API_PUBLIC_URL/v1/auth/<provider>/callback and is logged at boot because registering the dashboard origin instead is the mistake that produces a valid OAuth client and a dead button, /auth/config advertises only providers the backend can actually complete, the SSO landing page no longer swallows a two_fa_required response, and OIDC_PROVIDER_NAME finally reaches the button it documents
2026-08-28 01:33:08 -07:00
providers_migration_test.go
feat: provision private three-zone NATS JetStream and add gated Kafka migration readers with compatible codecs
2026-11-02 15:25:15 +01:00
providers_test.go
feat: verify the platform SMTP relay certificate on hosted production whatever SMTP_TLS_INSECURE_SKIP_VERIFY says, send the SMTP XOAUTH2 bearer token only over TLS or to a loopback host, and report an ignored relay knob in instance health
2026-10-26 06:25:13 +01:00
providers.go
feat: provision private three-zone NATS JetStream and add gated Kafka migration readers with compatible codecs
2026-11-02 15:25:15 +01:00
slack.go
feat: add Warmbly for Slack with the AI assistant in DMs, mentions and the assistant pane, unified inbox threads with reply, AI draft and lead actions, per-category notification routing and DMs, account linking, dashboard Slack settings, manifest and docs
2026-10-03 15:35:11 +02:00
tracking_test.go
feat: make a custom tracking domain verifiable instead of permanently "Pending DNS": the CNAME target is now this install's TRACKING_DOMAIN rather than a hardcoded t.warmbly.com that resolves nowhere, matching is exact on the label boundary (or on shared addresses, so a provider-flattened CNAME stops reading as no record at all) instead of strings.Contains, and every outcome carries the reason plus what DNS actually returned, including when the tracking host the customer is told to point at has no record of its own; a pasted URL is normalized to its host and a malformed one is rejected up front instead of saved and left pending forever; only a VERIFIED mailbox domain is used at send time with the shared host as the fallback and a campaign-feed entry saying why; pixels and click tickets are built from the configured host, and with none configured mail ships untracked rather than carrying links to another deployment's tracking service; adds GET /emails/:id/track and POST /emails/:id/track/verify plus an hourly re-resolution sweep so a record that propagates later starts being used and one that breaks stops routing links; and scopes the tracking-domain write by organization like the read, which also fixes GET /emails/:id passing a user id to an org-scoped query and 404ing for every caller
2026-08-24 09:02:29 -07:00
tracking.go
feat: default tracking hosts to link.<domain>, set one tracking subdomain and redirect website for every domain in mailbox imports and on Sending domains with a per-domain dropdown to override each, add POST /emails/domains/bulk that goes through the inbox vendor's API where it can, add multi-select with check DNS, copy records, CSV export, clear tracking and remove redirect to Sending domains, and fix the sandbox seed's deliverability conflict target
2026-09-25 09:30:36 -07:00