Riot settings initialization and clearer recovery
Riot settings now give administrators specific failure information and a retry path when loading fails. Deploy the matching backend, key-initialization service, and frontend together. Keep the existing key volume and any explicit encryption key; do not delete or regenerate them to clear an error.
Fixed
- Backend startup prepares access to the persistent key directory before the service runs as its normal user. This handles an existing root-owned volume that prevents automatic Riot key creation, while preserving key contents and other files in the volume.
- Before the first settings save, the app continues to use its initial defaults without repeatedly logging an expected missing settings row as an error.
- Settings-loading failures can be retried in the admin panel. Encryption initialization, settings storage, and mailbox errors are distinguished instead of being replaced with a generic service-unavailable message.
Changed
- Admin settings report a safe encryption initialization error code when the key is unavailable. Diagnostics do not include the key value, raw storage errors, or filesystem paths. After repairing storage access, restart the backend so it can load the retained key.