Skip to content

Conversation

@DAcodedBEAT
Copy link

Users can safely delete links with a configurable recovery window, and a DeletedBy audit trail tracks who deleted each link. Soft-deletion can also provides a foundation for scaling golink across multiple instances (read: running golink as a tailscale service).

Changes

  • Soft-delete links with configurable retention before permanent removal
  • Undelete recovery at /.deleted endpoint
  • DeletedBy field tracks who deleted each link (visible in history)
  • Automatic schema migrations on startup - no manual migration steps needed
  • New CLI flags: -deleted-retention, -cleanup-interval

- Configurable soft-delete with retention periods
- Undelete recovery for accidentally deleted links
- DeletedBy audit trail tracking who deleted links
- Automatic schema migrations for old databases
- /.deleted endpoint for link recovery

The soft-deletion pattern provides a foundation for scaling golink across
multiple instances with active/passive or active/active deployments.

Signed-off-by: Arun Philip <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant