Problems
About 890 words
Every message the plugin reports, where it shows up, and what to do. There are three kinds:
- Validation errors come from the catalog module while the catalog processes an entity. The catalog refuses the entity.
- Policy problems come from the backend while it renders a policy, as errors or warnings attached to an entity. They show in the console's Health card, on the entity's Tailscale card, in the pull request's Problems section and in
backstage-tailscale-diffoutput. Neither blocks rendering or publishing. - Catalog findings come from reading the tailnet annotations for catalog grants. They're served under
catalog.invalidandcatalog.missingSourcein/api/tailscale/overview, and the console doesn't show them.
Policy errors
Names in rules are checked when the policy renders. The message starts with the field the name was in: src, dst, via, owners, recorder, nodes, tests src, tests accept, tests deny, sshTests src, sshTests dst, an auto approver's service svc:…, route … or exitNode exit node, or, for catalog grants, the annotation it came from.
| Message | Fix |
|---|---|
<field>: group:x is no group: no Backstage Group has specht-labs.de/tailnet-group: group:x | Annotate a Group with group:x, or name an existing Group. |
<field>: user:x is not a User in the catalog | Fix the reference, or add the User. |
<field>: user:x has no specht-labs.de/tailnet-login annotation | Add the login annotation to the User. |
<field>: tag:x is not declared: no Tailscale tag entity in this policy has tag: tag:x | Add a tag entity for tag:x to this policy. |
<field>: ipset:x is not in the policy's settings.ipsets | Add the ipset to the policy's settings.ipsets. |
<field>: x is neither a host of this policy nor a selector | Add x to the policy's hosts, or fix the selector. |
tag:x is already declared by tailscale:default/… | Two tag entities declare the same tag; remove one. The first by name counts. |
src: svc:x is a Service; Services are destinations | Move the Service to dst. |
a grant needs ip, app or both | Add ip, app or both to the grant. |
user:default/x is in group:y but has no specht-labs.de/tailnet-login annotation | Add the login annotation to the User. Until then the member renders as the entity reference. |
settings.x: x comes from Tailscale entities, not settings | Remove x from the policy's settings and model it as entities. |
its target … is not a Tailscale policy in the catalog | The entity's spec.target doesn't name a policy entity. Fix the reference, or add the policy. The entity renders nowhere until then. |
A name that doesn't resolve is still written into the file as it was written in the entity.
Policy warnings
| Message | Fix |
|---|---|
tag:x is reached as a device, not a Service (…): move the traffic to a Service, or say why on its tag entity (specht-labs.de/tailnet-device-reason) | See Destinations. When the tag may serve Services, the message adds , though it serves svc:…. |
reaches every port of svc:x: name the ports. On some hosts a Service's address passes every port through to the device, not just those it serves | Replace * in the grant's ip with the Service's ports. |
carries <capability> on every port: name the port the app listens on | Replace * in the grant's ip with the app's port. |
Catalog findings
| Where | Message |
|---|---|
catalog.missingSource | consumes api:default/x across the tailnet, but has no specht-labs.de/tailnet-src |
catalog.invalid | one of the malformed-annotation messages in Annotations |
Validation errors
The catalog module refuses an entity with Invalid Tailscale <type>: followed by every problem, separated by ; . The problems:
| Message | Types |
|---|---|
spec is required | all |
spec.type must be one of policy, grant, ssh, tag, nodeAttr, autoApprovers, test, not … | all |
spec.<field> is required | target (all but policy), owner, and the required fields of each type |
spec.<field> must be a string | target, owner, system, tailnet, action, tag, checkPeriod |
spec.<field> must be a list of strings | every list field |
spec.<field> needs at least one entry | required lists |
spec.<field> must be an object | hosts, settings, publish, app, routes, services |
spec.hosts.<alias> must be an address | policy |
spec.publish.repo must be owner/name | policy |
spec.publish.path is required | policy |
spec.publish.flow must be pullRequest or push, not … | policy |
spec.publish branches must be strings | policy |
spec.ip: not ports: … | grant |
spec.app: … is not a capability (<domain>/cap/<name>) | grant, nodeAttr |
spec.app.<capability> must be a list of objects | grant, nodeAttr |
spec.action must be accept or check, not … | ssh |
spec.tag must be tag:<name>, not … | tag |
spec.attr or spec.app is required | nodeAttr |
spec.<routes or services>.<key> must be a non-empty list | autoApprovers |
spec.services: … is not svc:<name> | autoApprovers |
spec.routes, spec.services or spec.exitNode is required | autoApprovers |
spec.tests or spec.sshTests is required | test |
spec.<tests or sshTests>[i] must be an object | test |
spec.<tests or sshTests>[i].src is required | test |
spec.sshTests[i].dst is required | test |
spec.tests[i] needs accept or deny | test |
spec.<tests or sshTests>[i].<accept, deny or check> must be a list of strings | test |
For a single test written without a list, the [i] is left out: spec.tests.src is required.
