mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 09:21:15 -05:00
Site associations have destructive behavior to resources #410
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kalikid021 on GitHub (Jun 5, 2025).
Please decouple Site associations to resources in regards to removing/rebuilding sites.
I have a service that will pull and re-deploy containers when there is an update. I have 2 sites configured, one in each of 2 separate VLANs. Container images for newt went out earlier in the day, and they were automatically updated by my service. This created an issue with Pangolin where the tunnels were broken, even though the logs showed everything was working. In order to get everything working I had to delete each site, generate a new config, and redeploy the newt containers.
This had a major destructive side effect, any resources that were associated with that site were automatically deleted when the site was deleted, rather than leaving them in the UI to be re-associated with a new/different site.
This creates multiple issues, the most obvious being in a production environment, this would be catastrophic if you have to completely rebuild all the resources associated with a given site, if a new site isn't created first, and the resources moved to the new site, before you delete the site.
There was no warning in the UI that deleting the site would also delete any resources attached to that site, and to re-associate them first. Not having these resources well documented outside of Pangolin, would also create a major problem when trying to recreate the environment.
If resources without a site exist, they should also have a moniker denoting they currently do not have a site associated. and will not function until corrected.
@miloschwartz commented on GitHub (Jun 5, 2025):
This makes a lot of sense and would be nicely complemented by some bulk action tools to move/associate resources to different sites. The current functionality is because we delete on cascade for the relations. Hope to improve on this
@kalikid021 commented on GitHub (Jun 5, 2025):
This was my assumption after it happened, which is why I wanted to raise the issue. I appreciate the quick response, and all the work on this project, it's a great piece of software.
@miloschwartz commented on GitHub (Sep 27, 2025):
This no longer happens because resources don't belong to sites