Skip to main content
Version: Next

Endpoints

Restrict access to your Secured Signal API.

Default

Secured Signal API acts as a proxy, this means any and all the Signal CLI REST API endpoints are available, because of security concerns the following endpoints are blocked:

Endpoint
/v1/configuration/v1/unregister
/v1/devices/v1/contacts
/v1/register/v1/accounts
/v1/qrcodelink

Customize

You can modify endpoints by configuring access.endpoints in your config:

settings:
access:
endpoints:
allowed:
- /v2/send
blocked:
- pattern: /v1/register
matchType: prefix
- pattern: /v1/unregister
matchType: prefix
- pattern: /v1/qrcodelink
matchType: prefix
- pattern: /v1/contacts
matchType: prefix

Match Types

Available options for matchType are:

Value TypeMatch TypeNotes
stringequalspattern ~= stringcase-incensitive
stringcontainspattern.Contains(string)case-incensitive
stringprefixstring.StartsWith(pattern)case-incensitive
stringsuffixstring.EndsWith(pattern)case-incensitive
stringregexexample: [^\S] only non-whitespaceregex
stringglobexample: [abc] only a|b|cglob-style pattern
warning

Remember that some symbols have special meanings in regex, a good rule of thumb is:

  • If it is a special character, it probably needs to be escaped (/)
  • Otherwise test your pattern on a regex testing site

Behavior

AllowBlockResult
/v2/sendOnly /v2/send allowed
/v1/receiveAll allowed, except /v1/receive
/v2/send/v2/.* (regex)Only /v2/send allowed

Rules

  • Default: allow all
  • Allow rules exist: default block
  • Only block rules exist: default allow
  • Explicit allow overrides block