Channel security
For Admins

Channel security

How SupportHub hides channel passwords and tokens, checks incoming webhooks and limits where the widget can be used from.

Passwords and tokens in settings

  • Channel fields holding passwords, secrets and tokens (the bot token, IMAP and SMTP passwords and others) reach the interface masked as “••••••••”. The owner and admins see the mask. Regular operators don't get these fields at all.
  • Saving a channel with the mask or an empty field keeps the stored value. To change a password or token, type the new one.
  • A saved password stays only while the route to the server is the same: the same host (the port and path in the address don't count), a connection no weaker and the same proxy. For the email channel's IMAP and SMTP passwords that's the server host and the channel's proxy. For the BILLmanager and VMmanager passwords it's also https with the SSL certificate checked: switching to http or turning the check off asks for the password again too. Otherwise the channel won't save and you get “The server address changed. Enter the password again.”: under each password to type again for the email channel, as an error message for BILLmanager and VMmanager.
  • Through a proxy, the BILLmanager and VMmanager login and password go out only when the panel is https with the certificate checked. Otherwise SupportHub doesn't send them, and the BILLmanager channel card shows why: “Through a proxy the panel login and password go only over https with the certificate checked. Turn these on or remove the proxy.”

Checking incoming webhooks

  • Telegram: when you connect a bot, SupportHub generates a random secret and hands it to Telegram. Telegram sends it back in the X-Telegram-Bot-Api-Secret-Token header, and requests without the right secret are ignored. Nothing to set up.
  • VK: the channel takes the Confirmation string from the community's Callback API settings and a Secret key — any string, which you also enter in VK. The key is required: requests without it or with a different key are ignored.
  • BILLmanager: the module and the API connection use their own keys — see the BILLmanager integration.

Widget

  • Allowed domains in the widget builder (the Privacy section) — one domain per line, without http(s):// or a port, and *.example.com allows subdomains. Once the list is filled in, messages from other sites are refused. An empty list lets the widget work on any site.
  • To stop a visitor from posing as another customer, pass a signed visitor token to the widget — see HMAC visitor token.
  • Request rates are capped per visitor: sending messages at 10 a minute, file uploads and identification at 20 each, ticket replies at 30.
  • New conversations are counted separately: up to 10 an hour and 30 a day from one address, the same per site user for a visitor with a signed token, and up to 60 anonymous ones in 10 minutes for the whole project. Changing visitor_id doesn't get around it, and messages in a conversation that is already open don't count towards it. Over the limit, the visitor is told when they can start a new one.
  • Files from the widget are counted the same way, both by number and by size: up to 60 an hour, 200 and 500 MB a day from one address, the same per site user for a visitor with a signed token, and up to 300 anonymous files an hour, 1,000 and 5 GB a day for the whole project. Over the limit the file isn't stored, and the visitor is told when they can upload the next one.
  • Identification (/identify) creates up to 60 new anonymous contacts an hour and 300 a day from one address, and up to 300 an hour and 1,500 a day for the whole project. The calls themselves, identifying a visitor who is already known and signing in with a signed token aren't limited. Over the limit the contact isn't created right away: the visitor's first message creates it, and the conversation isn't affected.

Outgoing requests

  • Notification webhooks are signed with HMAC-SHA256 in the X-SupportHub-Signature header — see the notification system. API webhooks have their own signature — see Webhooks.
  • Requests to Telegram, VK, mail servers and BILLmanager can go through a proxy.
Never share channel tokens and passwords. If a token may have leaked, issue a new one where it was created (BotFather for Telegram, the VK community settings, your mail server for IMAP and SMTP) and save it in the channel.
Was this page helpful?