Repository navigation
feat(notifications): SMS Factor integration - #846
Merged
Merged
Conversation
SMS Factor (smsfactor.com) joins Twilio and OVH as an SMS provider, on both paths: the instance provider (SP_SMS_PROVIDER=smsfactor, SP_SMS_SMSFACTOR_TOKEN, optional SP_SMS_SENDER) and a per-organization integration (type smsfactor: token, sender, to_numbers) that pages the org's users and its shared recipients. The client follows the provider's Go example: POST https://api.smsfactor.com with a Bearer token, pushtype alert, recipients without the leading +, the body's status field checked (-8 under moderation counts as accepted, never retried). Dashboard form, translations, SMS mode panel, docs and an E2E test included. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #846 +/- ##
==========================================
+ Coverage 89.29% 89.37% +0.07%
==========================================
Files 1351 1353 +2
Lines 138760 139015 +255
==========================================
+ Hits 123903 124240 +337
+ Misses 14848 14766 -82
Partials 9 9
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rors, settings parsing Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb
enabled auto-merge (squash)
November 12, 2026 08:06
Merged
fclairamb
added a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.48.0](v0.47.0...v0.48.0) (2026-11-12) ### Features * lease sizing, Telegram sign-in and four small fixes (2026-11-11 issues) ([#848](#848)) ([9972dde](9972dde)) * **notifications:** SMS Factor integration ([#846](#846)) ([1b68d2a](1b68d2a)) ### Bug Fixes * **deps:** update github.com/dop251/goja digest to f493a2b ([#842](#842)) ([dba208b](dba208b)) * **deps:** update go dependencies (non-major) ([#844](#844)) ([621d492](621d492)) * **deps:** update go dependencies (non-major) ([#847](#847)) ([4bb06f7](4bb06f7)) * **security:** bind JS env and plugin configs, strict re-wrap keys, replay masking of remaining secret inputs, rewrap list cap, secret headers on redirects ([#851](#851)) ([32fd560](32fd560)) * **security:** bind sealed secrets to their target, verify peer re-wraps, drop deleted regions' keys, TLS-only agent server URL ([#840](#840)) ([4b70e46](4b70e46)) * **security:** keep shown-once secrets out of dash0 session replay ([#839](#839)) ([9bb8e8b](9bb8e8b)) * **security:** require a verified email for GitLab sign-in and stop linking existing accounts by email ([#850](#850)) ([1a0cea9](1a0cea9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds SMS Factor as an SMS provider, following their Go example (
POST https://api.smsfactor.com, Bearer token, JSON bodysms.message+sms.recipients.gsm,pushtype: alert). Two paths, like Twilio:Instance provider (server-provided SMS)
SP_SMS_PROVIDER=smsfactor,SP_SMS_SMSFACTOR_TOKEN(secret), optionalSP_SMS_SENDER(registered alphanumeric sender, 1-11 chars) andSP_SMS_SMSFACTOR_BASE_URL(proxy / tests). Only the token is required forActive(): SMS Factor falls back to the account's default sender.server/internal/integrations/smsfactor(standard library only, liketwilioandovhsms): request timeout, HTTP status check, then the body'sstatusfield (the API answers 200 with a negative status):-8(under moderation) counts as accepted and is never retried,sent == 0with status 1 is an error naming the filter counters (invalid, blacklisted, flood, country limit…). Recipients are sent without the leading+.GET /creditsverifies a token.sms.Senderadapter in the provider-neutral seam (NewInstanceSender). No delivery receipts: the campaign body has no per-message callback (documented).Organization integration (bring your own)
smsfactor, settingstoken(secret, encrypted and write-only like Twilio'sauth_token),sender,to_numbers(E.164). Verified against SMS Factor at creation and when the token changes (skipped in test run mode, like Twilio).to_numbers; the SMS bodies are now shared with Twilio (buildSMSBody), the "Reply STOP" footer stays Twilio-only.bring_your_ownfor SMS; voice stays on the instance provider or unavailable). The escalation step no longer requests a Twilio status callback for such sends.data-testidon every field), icon, en/fr/de/es translations, and the SMS mode panel / account notifications page count an SMS Factor integration as the org's own SMS. E2E:create an SMS Factor channel via the form.configuration/sms.md(provider table, instance setup, bring-your-own, troubleshooting) andconfiguration/notifications.md(channel entry with a JSON example); wiki database model.No migration (settings are JSON), no OpenAPI change (the connection type is a free-text field),
server/pkg/clientnot regenerated (batch rule).How to test with a token
SP_SMS_ENABLED=true SP_SMS_PROVIDER=smsfactor SP_SMS_SMSFACTOR_TOKEN=… SP_SMS_SENDER=acme make dev, then add a phone number on a user and send the verification SMS.🤖 Generated with Claude Code