data_encryption
This module provides a low-level framework for encrypting and decrypting sensitive data in Odoo, designed to store accounts and credentials encrypted by environment.
Key Features
- encrypted.data: Stores encrypted data with unique constraints on name and environment.
- encryption: Provides methods to encrypt and decrypt data using Fernet encryption.
- encryption: Supports storing and retrieving JSON-formatted encrypted data.
- encryption: Enforces sudo access for reading and writing encrypted data.
- encryption: Caches decrypted data based on user and environment for performance.
- encryption: Validates encryption keys and running environment from configuration.
- encryption: Handles key rotation and invalid token errors gracefully.