Help

Installation Guide

Encrypted Environment Values

Updated 25 Nov 2026 2 min read

From v2026.11, Monosync reads environment values that the Monofor installer writes in encrypted form, so passwords and keys do not sit in plain text in the environment file. Plain values keep working as before.

How it works

  • An encrypted value looks like [ENCRYPTED[<base64>]]: the whole value starts with [ENCRYPTED[ and ends with ]].
  • When Monosync starts, it decrypts every environment value written this way, whatever the variable's name, before it reads its settings.
  • The file named by MONOSYNC_REDIS_PASSWORD_FILE may hold an encrypted value too; it is decrypted the same way.
  • The key is the installation's id, MONOSYNC_INSTALLATION_ID. It is always written in plain text: it is what the other values are decrypted with.
  • Monosync never writes a decrypted value to its log.

What you need

MONOSYNC_INSTALLATION_ID must hold exactly the id the installer used when it encrypted the values. The installer writes both into monosync.env:

MONOSYNC_INSTALLATION_ID=84b62092-f259-4218-9935-fe7e52f8ebcf
MONOSYNC_REDIS_PASSWORD=[ENCRYPTED[...value written by the installer...]]

To change a value yourself, write the new value in plain text, or let the installer write it again. Do not edit the text inside [ENCRYPTED[...]].

When Monosync does not start

These messages appear before Monosync's own log starts, in the container output as Unhandled exception. System.InvalidOperationException: …. The first value that fails stops the start.

MessageWhat to do
<NAME> is encrypted but MONOSYNC_INSTALLATION_ID is not set, so it cannot be decrypted.Set MONOSYNC_INSTALLATION_ID to the installation's id.
<NAME> is encrypted but could not be decrypted with MONOSYNC_INSTALLATION_ID (wrong installation id or corrupted value).Check that the id is the one the installer used, and that the value was copied whole. Otherwise write the value in plain text.
MONOSYNC_INSTALLATION_ID must not be encrypted; it is the key used to decrypt the other variables.Write the id in plain text.
MONOSYNC_REDIS_PASSWORD_FILE points to '<path>' but the file does not exist.Mount the file at that path, or remove the variable.

Related pages

Permanent link