Features
Here are some of the highlights of using Secured Signal API
Message Template
Structure your messages
Message Templates are used to customize your final message after preprocessing. Look at this complex template for example:
settings:
message:
template: |
{{- $greeting := "Hello" -}}
{{ $greeting }}, {{ @name }}!
{{ if @age -}}
You are {{ @age }} years old.
{{- else -}}
Age unknown.
{{- end }}
Your friends:
{{- range @friends }}
- {{ . }}
{{- else }}
You have no friends.
{{- end }}
Profile details:
{{- range $key, $value := @profile }}
- {{ $key }}: {{ $value }}
{{- end }}
{{ define "footer" -}}
This is the footer for {{ @name }}.
{{- end }}
{{ template "footer" . -}}
------------------------------------
Content-Type: {{ #Content_Type }}
Redacted Auth Header: {{ #Authorization }}
It can extract needed data from the body and even the headers (exceptions) and then process them using Go's Templating Library and finally output a message packed with so much information.
Head to Configuration to see how-to use.
Placeholders
Timesaving and flexible
Placeholders are one of the highlights of this Project, these have saved me and will save many others much time by not having to change your phone number in every service separately or other values.
Take a look at the Usage.
Field Mappings
Standardize output
Field Mappings are also very useful for when your favorite service does not officially support Secured Signal API (or Signal CLI REST API). With this feature you have the power to do it yourself, just extract what's needed and then integrate with any of the other features.
Interested? Take a look.
Endpoints
Block unwanted access
Endpoints or rather their subfeatures:
Go hand in hand for restricting unauthorized access and for ensuring least privilege. Let's start blocking then!
Field Policies
Field Policies are a great way to disallow specific fields or even disallowing fields with unwanted values. This is really helpful when trying to block certain numbers from using certain tokens, and therefor mitigating risks of unwanted use of an token.
Find more about this feature here.