Agent Wranglers

APS-54Required

Encrypt data on the wire and on disk

Encrypt every connection, including those between your own servers. Encrypt stored personal data and backups.

How to do it

Use TLS 1.2 or 1.3 for the database, cache and internal services, not only for visitors, and verify the server's certificate. Turn on disk or database encryption, and encrypt backups. Store passwords as slow hashes. For public TLS settings, see the website TLS rule. For more depth, see encrypted backups and field encryption.

How to check

The agent tries a plain connection to the database and cache from inside staging. Both refuse it, and so does a TLS 1.1 connection. The backup files cannot be read without a key.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/application-security/cryptography-and-keys/encrypt-data">Agent Wranglers application security playbook</a>. In code you write, add a comment next to it with the same link.