Releases: home-anthill/alarm-api
Releases · home-anthill/alarm-api
Release list
3.0.0
Features
- Added internal API token rotation support via
POST /api-token/rotate. - Online Redis records now consistently track
modifiedAt, preservingcreatedAtand refreshingmodifiedAton updates.
Bug fixes and security fixes
- Fixed FCM token update error handling so Redis scan failures now return
500 Internal Server Errorinstead of being silently ignored. - Removed
apiTokenfrom online-state GET responses and tightened token handling across logs, debug output, and comparisons. - Removed committed Rocket secret keys; deployments must provide
ROCKET_SECRET_KEY. - Strengthened request validation for UUID path parameters and
POST /fcmtokeninput. - Reduced information leakage by returning uniform
404 Not foundresponses for missing or corrupt Redis records. - Reworked FCM token lookup to avoid loading full Redis records unnecessarily.
Idiomatic Rust improvements
- Cleaned up Rust style across models, handlers, and Redis helpers.
- Reduced unnecessary allocations, cloning, panics, and repeated environment reads while keeping the external JSON API unchanged.
Tests
- Updated integration coverage for online-state GET responses after removing
apiTokenfrom the response body.
2.0.3
2.0.2
2.0.1
2.0.0
Features
- controllers and sensors can be mixed (now you can have a controller device able to receive commands, but also to send sensor data, like a thermostat)
- controller devices can have multiple controller features
- power outage sensor have a standard structure with a features array (called
online)
Chores
- update deps
- update CI