Tags cannot owner other tags #1135

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

Originally created by @misterupkeep on GitHub (Nov 6, 2025).

Trying a policy file such as:

{
  "tagOwners": {
    "tag:k8s": ["tag:k8s-operator"],
  },
}

will fail while parsing, here:
2024219bd1/hscontrol/policy/v2/types.go (L969-L983)

A quick glance at the code suggests tags were never implemented such as to support this. Tags owning other tags is a feature used in the K8s Tailscale operator setup (as shown here).

Originally created by @misterupkeep on GitHub (Nov 6, 2025). Trying a policy file such as: ```json { "tagOwners": { "tag:k8s": ["tag:k8s-operator"], }, } ``` will fail while parsing, here: https://github.com/juanfont/headscale/blob/2024219bd10adbb5c0d29f900ed0961ace8cc15c/hscontrol/policy/v2/types.go#L969-L983 A quick glance at the code suggests tags were never implemented such as to support this. Tags owning other tags is a feature used in the K8s Tailscale operator setup (as shown [here](https://tailscale.com/kb/1236/kubernetes-operator#prerequisites)).
adam added the bug label 2025-12-29 02:28:29 +01:00
adam closed this issue 2025-12-29 02:28:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1135