Synchra.24
menu_bookDocumentation
Practical guides for setup and development

Find guides for getting started, building workflows and adding your own tools to your company workspace.

folderAutomation

Secret variables and security

How to store tokens and passwords, insert secrets into URLs and headers, and securely connect external services.

Machine translation

Secret variables allow you to store tokens, API keys, and passwords separately from the configuration. One variable can be reused in several automations of the company.

Creating a variable

On the screen Administrator → Automation click Secret variables, then Add a variable.

Specify:

Field Requirements
Name From 2 to 64 characters. It starts with a Latin letter; then Latin letters, numbers, and _. For convenience, use capital letters.
Meaning A token, API key, password, or other private value. It cannot be empty.

Examples of understandable names:

ONE_C_API_TOKEN
CRM_CLIENT_SECRET
WAREHOUSE_API_KEY

After saving, the value is not displayed in the interface. It can be replaced by editing a variable, but it cannot be read back. The value is stored in the database in encrypted form and separately for each company.

Usage in configuration

Link syntax:

${secrets.NAME}

The secret can be inserted into the URL and HTTP header values.

Bearer token

headers:
  Authorization: "Bearer ${secrets.CRM_TOKEN}"

API key

headers:
  X-API-Key: "${secrets.WAREHOUSE_API_KEY}"

URL Parameter

url: "https://api.example.com/export?token=${secrets.EXPORT_TOKEN}"

If the API uses Basic Authentication, save the prepared authorization value in advance and insert it in the header.:

headers:
  Authorization: "Basic ${secrets.ONE_C_BASIC_AUTH}"

Where substitution doesn't work

Secrets are substituted only:

  • in url sources and destinations;
  • in values headers sources and destinations.

They are not substituted in body, are not transmitted to input or context the handler and are unavailable from JavaScript. If the external system requires a token inside the request body, configure transmission via the header if possible. Do not copy the private value directly to YAML, JSON, or code.

Replacement and removal

To replace the token without editing the automation:

  1. Open Secret variables.
  2. Click edit next to the desired name.
  3. Enter a new value and save it.
  4. Perform a test run of the related automations.

All configurations using this name will start getting a new value.

Find all the references before deleting the variable. ${secrets.NAME} in automation. After deleting, the startup will fail. secret NAME is not configured.

Data protection in the launch results

When generating previews and logs, the system replaces the known secret values with ***. This is an additional protection, but it does not negate the safe handling of data.:

  • do not withdraw tokens and passwords via console.log;
  • do not put secrets in the source response or the handler result.;
  • do not use the same token for different external systems;
  • grant the token only the necessary rights.;
  • change the values regularly and revoke old tokens.

Network restrictions

Automations are performed on the Synchra24 server. The following rules apply to URLs:

  • the address must be absolute and start with https:// or http://;
  • use HTTPS to transfer any work data.;
  • You cannot access local, service, or private network addresses.;
  • redirects are checked and limited; the external system must return a direct secure address.

If 1C or another system is only available on the internal network, you will need a securely published HTTPS endpoint or a separate integration gateway. Do not open the database or the administrative interface of the system directly to the Internet.

Minimum rights

Create a separate technical account for each connection.:

  • give the source only the necessary data to read;
  • for the intended purpose, only write to the desired method or section .;
  • restrict access by IP if the external system supports it.;
  • record the owner and the validity period of the token;
  • delete the variable after disabling integration.

To access the automation section, the company must have a license option enabled. API integration, and the user has the appropriate administrator rights.

Access to artifacts from services

Reading and writing of existing artifacts through the service is performed by the current user and the company with the previous verification of the API license and rights admin_edit_provider_integrations. The service key does not replace user rights. The service does not receive a Bearer token or a company token. Only explicitly connected names and source artifacts are loaded into automation, up to 5 MiB in total. Artifacts can end up in the preview and logs: do not keep secrets in them. Quotas and recording restrictions.

Secure transfer of the ZIP template

The ZIP template does not include the values of secret variables from the repository, artifact data, or launch history. Links to them remain in the configuration; after importing, configure the resources of the target company. YAML/JavaScript content is not cleared automatically: do not transfer the archive if the source contains real keys or personal data. The import does not fulfill network requests or the handler and forcibly creates disabled automation. Access is verified under the API license and admin_edit_provider_integrations; keys and flags of the installed entry are prohibited in the manifest. Archive checks and restrictions.

Shared Bot MAX

Connecting a shared bot is done via Automation → MAX Chats. The token is stored on the platform side and is not included in the expansion pack or secret client variables. Do not send your own keys to the seller. One chat ID does not confirm the right to send: you need to enter the one-time code that the bot sent to this chat. Connections from different companies are checked separately.

All chat participants will see the sent notifications, so choose the recipients with the appropriate access. The names of the incidents and other data that you have included in the message may contain sensitive information. The link button does not replace access rights in Synchra24. The bot processes the command /chatid to determine the ID; the usual messages transmitted by MAX in incoming updates are immediately discarded and not saved. Deleting the bot revokes communication with the chat. Deleting a connection in Synchra24 stops future sending using this name, but it does not delete messages that have already been sent. Connection and MAX limits.