mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-08 00:50:20 +09:00
079dca8924
SaaS rejects tag names whose first character after `tag:` is not an ASCII letter (`[a-zA-Z]`) with `tagOwners["tag:X"]: tag names must start with a letter, after 'tag:'`. headscale was accepting any UTF-8. Tighten Tag.Validate to enforce the first-character rule and reshape the surfaced error in unmarshalPolicy so the tagOwners key appears in the SaaS-style prefix. Subsequent characters remain unconstrained — only the leading byte is checked.