Sync 0.1.2: Table limits on the HTTP API and an audit trail
Sync 0.1.2 closes a gap in the HTTP API: a connection’s allowed and excluded tables now limit what the other site can list and pull, as they already did on the WebSocket.
Before, a valid connection token was enough to list every syncable table and to pull, read the schema of or preview any of them through list-tables, pull-data, table-schema and table-records. Now a table outside the connection’s lists is left out of the list and refused with 403.
Other changes:
- When the incoming mode requires a password but none is saved, registrations from other sites are refused instead of accepted.
- Passwords are compared in constant time, and token hashes are no longer written to the log.
- Connection changes (created, approved, suspended, reactivated, revoked, token regenerated, deleted) and transfer changes are recorded in PhoenixKit’s Activity log with the person who made them.
- An import looks up existing rows once per batch instead of once per row.
Sync 0.1.2. Install or update: {:phoenix_kit_sync, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.