feat(gsm): restrict unauthorized inbound SMS sessions - #376
Open
Adamskiee wants to merge 10 commits into
Open
Conversation
Adamskiee
force-pushed
the
feature/gsm-unregistered-warning
branch
from
August 16, 2026 03:10
48ab98a to
4b69d6b
Compare
Implemented unregistered user warning and rate limiting for the GSM module. Added new environment variables for configuring queue sizes, daily send limits, sender daily limits, cooldown seconds, and log retention. Updated serial worker and api to support the new features. Updated relevant documentation.
Adamskiee
force-pushed
the
feature/gsm-unregistered-warning
branch
from
August 16, 2026 04:38
4b69d6b to
d41f0a1
Compare
… /has-permission.
…pdate persistence docs.
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.
Description
Fixes an authorization gap where any external number could message any SAPOT user through the gateway. Now, external numbers can only reach users who have explicitly messaged them first (outbound permission).
Changes
sms_outbound_permissiontable.POST /grant-permissionupon successful outbound SMS.POST /grant-permissionandGET /has-permission.NEWsessions and unauthorized[target]selection./gsm/inbound) verifies permissions before processing.Notes
Resolves all findings from the SMS authorization plan.