authelia/docs/content/en/configuration/storage/introduction.md
James Elliott b2c60ef898
feat: major documentation refresh (#3475)
This marks the launch of the new documentation website.
2022-06-15 17:51:47 +10:00

1.4 KiB

title description lead date draft images menu weight toc aliases
Storage Storage Configuration Configuring the SQL Storage. 2022-03-20T12:52:27+11:00 false
configuration
parent
storage
106100 true
/docs/configuration/storage/

Authelia supports multiple storage backends. The backend is used to store user preferences, 2FA device handles and secrets, authentication logs, etc...

The available storage backends are listed in the table of contents below.

Configuration

storage:
  encryption_key: a_very_important_secret
  local: {}
  mysql: {}
  postgres: {}

Options

encryption_key

{{< confkey type="string" required="yes" >}}

The encryption key used to encrypt data in the database. We encrypt data by creating a sha256 checksum of the provided value, and use that to encrypt the data with the AES-GCM 256bit algorithm.

The minimum length of this key is 20 characters, however we generally recommend above 64 characters.

This secret must be generated by the administrator and can be done by following the Generating a Random Alphanumeric String guide.

See securty measures for more information.

postgres

See PostgreSQL.

local

See SQLite.

mysql

See MySQL.