Rotate the encryption key
Rotate the Red Hat Edge Manager encryption key to limit the exposure window if a key is compromised, or to satisfy periodic key-rotation policies required by your organization’s security standards.
Before you begin
- A running Red Hat Edge Manager installation on Red Hat Enterprise Linux with
rootorsudoaccess. opensslis installed on the host.- Access to the Red Hat Edge Manager service configuration file at
/etc/flightctl/service-config.yaml.
About this task
Key rotation adds a new key alongside the existing key and marks the new key as active. After rotation, new data is encrypted with the active key. A background migration process re-encrypts existing data. The previous key remains configured for decryption until migration completes.
Procedure
Results
- Confirm that the encryption subsystem initialized with the new active key by checking the service logs:
$ sudo journalctl -u flightctl-api --no-pager -n 50 | grep -i "encryption"The log output should report the new key ID. For example:
Encryption initialized: active=v1/<key_name> - Monitor migration progress to confirm that the background re-encryption completed. After rotation, Red Hat Edge Manager automatically re-encrypts existing protected data with the active key. No manual action is required.
Red Hat Edge Manager records
EncryptionMigrationStartedwhen migration begins andEncryptionMigrationCompletedwhen all protected records have been re-encrypted. These are Red Hat Edge Manager application events stored in the database, not system log messages. Query them by using the Flight Control API or CLI.