[Bug] Tag update is not sent to node #1181

Open
opened 2025-12-29 02:28:44 +01:00 by adam · 0 comments
Owner

Originally created by @nblock on GitHub (Dec 21, 2025).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Given this policy:

{
  "tagOwners": {
      "tag:bar": ["alice@"],
      "tag:foo": ["alice@"]
  },
  "acls": [
    {
      "action": "accept",
      "src": ["*"],
      "dst": ["*:*"]
    }
  ]
}

and a node tagged with tag:foo:

$ headscale nodes list -t
ID | Hostname | Name | MachineKey | NodeKey | User           | IP addresses                  | Ephemeral | Last seen           | Expiration          | Connected | Expired | ForcedTags | InvalidTags | ValidTags
1  | n2       | n2   | [M0Gk+]    | [Y0bYt] | tagged-devices | 100.64.0.1, fd7a:115c:a1e0::1 | false     | 2025-12-21 08:40:16 | 0001-01-01 00:00:00 | online    | no      | tag:foo    |             |     

it knows about its assigned tag:

$ tailscale status --json | jq .Self.Tags
[
  "tag:foo"
]

The tag can be modified on Headscale:

$ headscale nodes tag -i 1 -t "tag:bar"
Node updated

… and its visible in the nodes list:

$ headscale nodes list -t
ID | Hostname | Name | MachineKey | NodeKey | User           | IP addresses                  | Ephemeral | Last seen           | Expiration          | Connected | Expired | ForcedTags | InvalidTags | ValidTags
1  | n2       | n2   | [M0Gk+]    | [Y0bYt] | tagged-devices | 100.64.0.1, fd7a:115c:a1e0::1 | false     | 2025-12-21 08:40:16 | 0001-01-01 00:00:00 | online    | no      | tag:bar    |             |       

But its not visible by the node itself:

tailscale status --json | jq .Self.Tags
[
  "tag:foo"
]

Its only visible when tailscaled is restarted on the node.

Expected Behavior

The node should have its list of tags updated as soon as its modified on Headscale.

Steps To Reproduce

See above

Environment

- OS: Debian 13
- Headscale version: 0.28.0-beta1
- Tailscale version: 1.92.3

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Debug information

none

Originally created by @nblock on GitHub (Dec 21, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior Given this policy: ```json5 { "tagOwners": { "tag:bar": ["alice@"], "tag:foo": ["alice@"] }, "acls": [ { "action": "accept", "src": ["*"], "dst": ["*:*"] } ] } ``` and a node tagged with `tag:foo`: ```bash $ headscale nodes list -t ID | Hostname | Name | MachineKey | NodeKey | User | IP addresses | Ephemeral | Last seen | Expiration | Connected | Expired | ForcedTags | InvalidTags | ValidTags 1 | n2 | n2 | [M0Gk+] | [Y0bYt] | tagged-devices | 100.64.0.1, fd7a:115c:a1e0::1 | false | 2025-12-21 08:40:16 | 0001-01-01 00:00:00 | online | no | tag:foo | | ``` it knows about its assigned tag: ```bash $ tailscale status --json | jq .Self.Tags [ "tag:foo" ] ``` The tag can be modified on Headscale: ```bash $ headscale nodes tag -i 1 -t "tag:bar" Node updated ``` … and its visible in the nodes list: ```bash $ headscale nodes list -t ID | Hostname | Name | MachineKey | NodeKey | User | IP addresses | Ephemeral | Last seen | Expiration | Connected | Expired | ForcedTags | InvalidTags | ValidTags 1 | n2 | n2 | [M0Gk+] | [Y0bYt] | tagged-devices | 100.64.0.1, fd7a:115c:a1e0::1 | false | 2025-12-21 08:40:16 | 0001-01-01 00:00:00 | online | no | tag:bar | | ``` But its not visible by the node itself: ```bash tailscale status --json | jq .Self.Tags [ "tag:foo" ] ``` Its only visible when tailscaled is restarted on the node. ### Expected Behavior The node should have its list of tags updated as soon as its modified on Headscale. ### Steps To Reproduce See above ### Environment ```markdown - OS: Debian 13 - Headscale version: 0.28.0-beta1 - Tailscale version: 1.92.3 ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Debug information none
adam added the bugno-stale-bottags labels 2025-12-29 02:28:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1181