Add constraint between routes and nodes #878

Closed
opened 2025-12-29 02:25:09 +01:00 by adam · 2 comments
Owner

Originally created by @kradalby on GitHub (Dec 13, 2024).

At the moment, there are no database constraint or unique requirement between route and node IDs, this can cause that:

  • Duplicate routes can be added for the same node (e.g. same prefix and same node id)
  • Routes without node ID can be added

We should fix this to ensure more integrity in the data.

Originally created by @kradalby on GitHub (Dec 13, 2024). At the moment, there are no database constraint or unique requirement between route and node IDs, this can cause that: - Duplicate routes can be added for the same node (e.g. same prefix and same node id) - Routes without node ID can be added We should fix this to ensure more integrity in the data.
adam added the stale label 2025-12-29 02:25:09 +01:00
adam closed this issue 2025-12-29 02:25:10 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 14, 2025):

This issue is stale because it has been open for 90 days with no activity.

@github-actions[bot] commented on GitHub (Mar 14, 2025): This issue is stale because it has been open for 90 days with no activity.
Author
Owner

@kradalby commented on GitHub (Mar 14, 2025):

Fixed as part of route rewrite

@kradalby commented on GitHub (Mar 14, 2025): Fixed as part of route rewrite
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#878