You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation and configuration for encryption bundle
- Enhanced the description in composer.json to better reflect the bundle's capabilities, including GDPR compliance and key rotation.
- Updated README.md to clarify usage and features, emphasizing support for multiple encryption configurations and integration with Nowo\AnonymizedBundle.
- Improved demo Makefile and entrypoint scripts to streamline key generation and environment variable handling.
- Added support for environment variable-based encryption keys in configuration files, enhancing flexibility for users.
- Updated various templates and forms to reflect changes in encryption handling and improve user experience.
Copy file name to clipboardExpand all lines: .symfony/recipe/nowo-tech/doctrine-encrypt-bundle/1.0/1.0/config/packages/nowo_doctrine_encrypt.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,6 @@ nowo_doctrine_encrypt:
9
9
default:
10
10
encryptor_class: Halite # or Defuse (requires: composer require defuse/php-encryption ^2.1)
11
11
secret_directory_path: '%kernel.project_dir%'
12
+
# Optional: secret_key_filename: '.my_app.key' # custom key file name (only when using path)
13
+
# Optional: secret_key_env_var: '%env(APP_ENCRYPT_KEY)%' # Symfony resolves at config load; do not set secret_directory_path; run generate-secret-key to get the key
12
14
# Optional: add more configs (e.g. personal_data, financial_data) - see docs/CONFIGURATION.md
> ⭐ **Found this useful?**[Install from Packagist](https://packagist.org/packages/nowo-tech/doctrine-encrypt-bundle) · Give it a**star**on [GitHub](https://github.com/nowo-tech/DoctrineEncryptBundle) so more developers can find it.
5
+
**Symfony bundle to encrypt Doctrine entity fields at rest**using [Halite](https://github.com/paragonie/halite) or [Defuse](https://github.com/defuse/php-encryption)—audited libraries, no custom crypto. For **Symfony 7 and 8** · PHP 8.1+. Suits**GDPR**and compliance (e.g. Art. 32); supports key rotation and [Nowo\AnonymizedBundle](https://github.com/nowo-tech/AnonymizedBundle) for anonymization and erasure.
6
6
7
-
**Doctrine Encrypt Bundle**— Encrypt Doctrine entity fields with [Halite](https://github.com/paragonie/halite) or [Defuse](https://github.com/defuse/php-encryption). Uses verified, standardized libraries (no custom crypto). For Symfony 7 and 8 · PHP 8.1+.
7
+
> ⭐ **Found this useful?**[Install from Packagist](https://packagist.org/packages/nowo-tech/doctrine-encrypt-bundle) · Give it a **star** on [GitHub](https://github.com/nowo-tech/DoctrineEncryptBundle) so more developers can find it.
-**setup** – install + `doctrine:database:create` + `doctrine:schema:update` + `doctrine:encrypt:generate-secret-key` (crea archivos de clave y añade `APP_ENCRYPT_KEY` a `.env` si no existe).
34
34
-**shell** – Abre una shell en el contenedor PHP.
35
35
-**logs** – Muestra los logs del contenedor.
36
36
-**db-create** – Crea la base SQLite.
37
37
-**db-schema** – Actualiza el schema Doctrine.
38
-
-**key** – Genera la clave secreta de cifrado (Halite).
38
+
-**key** – Genera claves: `personal_data` usa `APP_ENCRYPT_KEY` (se imprime y debe añadirse a `.env`); `financial_data` usa el archivo `.demo_financial.key`.
39
39
-**cache-clear** – Limpia la caché de Symfony.
40
40
-**update-bundle** – Actualiza el bundle desde el path montado y limpia caché.
41
41
-**test** – Ejecuta los tests de la demo (si existen).
.PHONY: help up down build install shell logs setup db-create db-schema key fixtures cache-clear update-bundle test encrypt-status encrypt-database decrypt-database ensure-up
0 commit comments