Add encryption status to notification health endpoint (P2)

Backend:
- Add IsEncryptionEnabled() method to ConfigPersistence
- Include encryption status in /api/notifications/health response
- Allows frontend to warn when credentials are stored in plaintext

Frontend:
- Update NotificationHealth type to include encryption.enabled field
- Frontend can now display warnings when encryption is disabled

This addresses the P2 requirement for encryption visibility, allowing
operators to know when notification credentials are not encrypted at rest.
This commit is contained in:
rcourtman
2025-11-07 08:36:55 +00:00
parent b70dc3d00d
commit 9257071ca1
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -238,6 +238,9 @@ export class NotificationsAPI {
total: number;
enabled: number;
};
encryption: {
enabled: boolean;
};
healthy: boolean;
}> {
return apiFetchJSON(`${this.baseUrl}/health`);