編輯

共用方式為


Data Encryption at Rest

When thinking about data encryption, you should mainly consider three scenarios:

  • Encrypting your data at rest, which means encrypting it while it's stored on whatever file storage you use.
  • Encrypting your data in transit, which means encrypting data while it travels through private or public network communication channels.
  • Encrypting your data in use, which means encrypting it while it's actively used in RAM or CPU caches and registers.

This article will show you the alternatives for encrypting data at rest. In a scenario where the physical media (such as drives or backup tapes) or the database files are stolen, a malicious party can just restore or attach the database and browse the data, if you don't encrypt it. The following mechanisms give you different possibilities to help prevent this.

Important

Data encryption at rest does not provide encryption across communication channels. For more information about how to encrypt data across the communication channel between the database and the Business Central Server, see Enhancing Business Server Security. It also doesn't provide encryption while the data is in use. SQL Server offers the Always Encrypted feature for this, but it's not supported for Business Central.

Transparent Data Encryption (TDE)

You can use Transparent Data Encryption (TDE) to encrypt SQL Server and Azure SQL Database data files at rest. With TDE you can encrypt the sensitive data in the database and protect the keys that are used to encrypt the data with a certificate. TDE performs real-time I/O encryption and decryption of the data and log files to protect data at rest. TDE can help the ability to comply with many laws, regulations, and guidelines established in various industries. If a malicious party would be able to steal your data files, they still would not be able to use them at all because they would need the keys as well.

Caution

Backup files of databases that have TDE enabled are also encrypted by using the database encryption key. As a result, when you restore these backups, the certificate protecting the database encryption key must be available. This means that in addition to backing up the database, you must make sure that you also maintain backups of the server certificates to prevent data loss. Data loss will result if the certificate is no longer available.

For more information about TDE, see Transparent Data Encryption (TDE).

BitLocker Drive Encryption

BitLocker is a volume encryption feature included in Windows Server. It protects at the file volume level so when the database server is online, the volume is unlocked, though not decrypted. If a malicious party would be able to steal your whole drive, they still would not be able to attach and use it.

Caution

Be aware that detaching or backing up a database to a different volume that is not protected by BitLocker causes any protection the file currently has to be lost.

For more information about BitLocker, see the overview and how it applies to Windows Server 2012 and later

Defense in depth with BitLocker Drive Encryption and Transparent Data Encryption (TDE) combined

BitLocker encrypts the entire drive and is integrated in the OS. The effect is that a user process, like SQL Server, running on the machine can access data on the drive as if it were not encrypted at all. But if the drive gets stolen, nobody can use the data without access to the key.

On the other hand, if someone gained access to the drive via a network a share or other services that share data from the drive, they could copy data (for example, an SQL Server backup file or a database file) unless it's locked from doing so by the running SQL Server process. The copy of this file on the new drive is then not encrypted anymore.

With TDE alone, the database files themselves are encrypted (as well as backup files of the TDE-encrypted databases). Therefore, if either file is copied or stolen via a network, as in the above example, the attacker cannot read it. But if the attacker gains access to the whole drive, including SQL Server, they can start SQL Server and read the data using SQL, because SQL Server is doing the decryption for them. Now if both BitLocker and TDE are used concurrently, both data theft vectors are mitigated. Both technologies complement each other, and it's recommended that you use BitLocker together with TDE for defense in depth.

Performance impact

TDE has an estimated performance impact around 3-5% and can be much lower if most of the data accessed is stored in memory. The impact will mainly be on the CPU, I/O will have a smaller impact. See the SQL documentation on this topic for more details.

BitLocker Drive Encryption has a single-digit percentage performance impact as explained here.

See Also

Classifying Data
Data Security
Enhancing Business Server Security
Deploy a Business Central Database to Azure SQL Database
Security and Protection