[GH-ISSUE #106] handleWgPeerUpdate does not merge alias updates #318

Open
opened 2026-04-23 01:55:03 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @LaurenceJJones on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/fosrl/olm/issues/106

In handleWgPeerUpdate

703fe4fe5d/olm/peer.go (L117-L185)

we merge several mutable fields from peers.SiteConfig, but we never copy Aliases.

As a result, alias changes delivered via the update-peer websocket path never reach PeerManager.UpdatePeer(), even though UpdatePeer() already removes and re-adds alias DNS records when siteConfig.Aliases changes.

Expected:

  • alias additions/removals/renames in update-peer should update the local DNS store

Actual:

  • alias updates are ignored in this path because siteConfig.Aliases is never merged
Originally created by @LaurenceJJones on GitHub (Mar 20, 2026). Original GitHub issue: https://github.com/fosrl/olm/issues/106 In handleWgPeerUpdate https://github.com/fosrl/olm/blob/703fe4fe5de8957ac35f8f45df10a680845402fb/olm/peer.go#L117-L185 we merge several mutable fields from peers.SiteConfig, but we never copy Aliases. As a result, alias changes delivered via the update-peer websocket path never reach PeerManager.UpdatePeer(), even though UpdatePeer() already removes and re-adds alias DNS records when siteConfig.Aliases changes. Expected: - alias additions/removals/renames in update-peer should update the local DNS store Actual: - alias updates are ignored in this path because siteConfig.Aliases is never merged
GiteaMirror added the bugneeds investigating labels 2026-04-23 01:55:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 4, 2026):

This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.

<!-- gh-comment-id:4185844115 --> @github-actions[bot] commented on GitHub (Apr 4, 2026): This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
Author
Owner

@LaurenceJJones commented on GitHub (Apr 6, 2026):

Adding to triage and commenting to remove stale tag

<!-- gh-comment-id:4191769433 --> @LaurenceJJones commented on GitHub (Apr 6, 2026): Adding to triage and commenting to remove stale tag
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/olm#318