Files
mesh-sdk/go/seatlist/seatlisttest/seats/node-resolver.json
T
jochen 40ac107900 Copy node-resolver byte for byte from mesh-connectivity-contracts
node-resolver.json is copied byte for byte from mesh-networking
modules/mesh-connectivity-contracts/seats/node-resolver/seat.json (11a1195, after its fix giving
routes' answer outside_writes as systemd-resolved does). node_resolver_test.go's decision text now
matches the real definition ("novox/hq ADR 0247, ADR 0687"); its verb list already matched.

This completes C-3 for mesh-sdk: all three test copies are now byte-for-byte copies of their
contracts modules' definitions.

Builds: design 08 sign-in-page §1, §2, §3; lead answer C-3
2026-11-24 21:50:43 +01:00

323 lines
9.4 KiB
JSON

{
"format": 1,
"seat": "node-resolver",
"scope": "node",
"grain": "whole",
"domain": "Connectivity",
"decision": "novox/hq ADR 0247, ADR 0687",
"description": "The node seat of the machine's own resolver (ADR 0247), as ADR 0687 §2 changes it: what it sends where (routes), one link given its own servers and taken away (route, unroute), and, from the uplink's check, the host names to resolve over the link carrying the default route (uplink-names), so a working network is rated fully connected again and a network with a sign-in page is rated as one.",
"verbs": [
{
"name": "routes",
"description": "What this machine's own resolver sends where: the mesh's resolvers, which answer every name not routed elsewhere, and each link given servers of its own with the domains routed to them. Also the resolver file's outside writes it kept, newest first: when, who wrote it as far as the file says, whether a module took it, and when the resolver's own file was put back.",
"replaces": [
"resolvectl status",
"resolvectl dns",
"resolvectl domain"
],
"input": {
"properties": {},
"type": "object"
},
"answer": {
"type": "object",
"required": [
"mesh",
"links",
"uplink_names",
"mesh_resolvers",
"outside_writes"
],
"properties": {
"mesh": {
"$ref": "#/defs/Scope",
"description": "the global scope: the mesh's resolvers, which answer every name nothing routes elsewhere"
},
"links": {
"type": "array",
"items": {
"$ref": "#/defs/Scope"
},
"description": "every link given servers of its own"
},
"uplink_names": {
"$ref": "#/defs/UplinkNames"
},
"mesh_resolvers": {
"$ref": "#/defs/MeshResolvers"
},
"outside_writes": {
"type": "array",
"items": {
"$ref": "#/defs/OutsideWrite"
},
"description": "the resolver file's outside writes it kept, newest first: when, who wrote it as far as the file says, whether a module took it, and when the resolver's own file was put back"
}
}
}
},
{
"name": "route",
"description": "Send these domains, and every name under them, to these servers over this link — and only them: the link is never the machine's default route for names, and the mesh's own domain is refused. Replaces whatever the link was given before. A link that goes away takes its route with it.",
"replaces": [
"resolvectl dns",
"resolvectl domain",
"resolvectl default-route"
],
"input": {
"properties": {
"domains": {
"description": "the domains to route there, separated by spaces or commas",
"type": "string"
},
"link": {
"description": "the network link the servers are reached over, by name (a VPN's tunnel interface)",
"type": "string"
},
"servers": {
"description": "the servers' addresses, separated by spaces or commas",
"type": "string"
}
},
"required": [
"link",
"domains",
"servers"
],
"type": "object"
},
"answer": {
"type": "object",
"required": [
"link",
"servers",
"domains",
"said"
],
"properties": {
"link": {
"type": "string"
},
"servers": {
"type": "array",
"items": {
"type": "string"
}
},
"domains": {
"type": "array",
"items": {
"type": "string"
}
},
"said": {
"type": "string",
"description": "what was done, in words"
}
}
}
},
{
"name": "unroute",
"description": "Take one link's route away: its domains go back to the mesh's resolvers. Nothing changes when the link has none.",
"replaces": [
"resolvectl revert"
],
"input": {
"properties": {
"link": {
"description": "the network link, by name",
"type": "string"
}
},
"required": [
"link"
],
"type": "object"
},
"answer": {
"type": "object",
"required": [
"link",
"said"
],
"properties": {
"link": {
"type": "string"
},
"said": {
"type": "string",
"description": "what was done, in words"
}
}
}
},
{
"name": "uplink-names",
"description": "Give the resolver the uplink's check's host names, over the link carrying the default route: the list replaces what was given before, and an empty list takes every name away. Refuses, naming the name and the reason, a name that is not a host name (a wildcard, a trailing dot, a label over 63 bytes), the root, the mesh's own domain or a name under it, or more than 8 names.",
"input": {
"type": "object",
"required": [
"names"
],
"properties": {
"names": {
"type": "array",
"minItems": 0,
"maxItems": 8,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 253,
"description": "a host name, letters, digits, hyphens and dots, taken lower-cased"
}
}
}
},
"answer": {
"type": "object",
"required": [
"names",
"link",
"set_at"
],
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"description": "the names now given"
},
"link": {
"type": "string",
"description": "the link they are answered over now; empty when no link carries a default route"
},
"set_at": {
"type": "string",
"description": "when the list was set, RFC 3339"
}
}
}
}
],
"paths": [
{
"path": "/etc/resolv.conf"
}
],
"defs": {
"Scope": {
"type": "object",
"description": "one scope of the resolver's answers: the mesh's global one, or one link given servers of its own",
"required": [
"servers",
"domains"
],
"properties": {
"link": {
"type": "string",
"description": "the link's name; absent for the global scope"
},
"servers": {
"type": "array",
"items": {
"type": "string"
}
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "the routing domains, without resolved's leading ~: every name under one goes to these servers"
},
"default_route": {
"type": "boolean",
"description": "whether names no domain routes may also go here; only the mesh's resolvers are"
}
}
},
"UplinkNames": {
"type": "object",
"description": "the applied uplink-names list that resolved holds on the named link now",
"required": [
"names",
"link",
"refused"
],
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"description": "the names of the applied list that resolved holds on that link now"
},
"link": {
"type": "string",
"description": "the link the guard gave the names to"
},
"refused": {
"type": "string",
"description": "the reason resolved last refused them, or empty"
}
}
},
"MeshResolvers": {
"type": "object",
"description": "whether the mesh's resolvers are silent now, by ADR 0688's guard, and since when",
"required": [
"silent",
"since"
],
"properties": {
"silent": {
"type": "boolean"
},
"since": {
"type": "string",
"description": "RFC 3339, since when the silent state has held"
}
}
},
"OutsideWrite": {
"type": "object",
"description": "one outside write of the resolver file the guard displaced, never what it held",
"required": [
"id",
"at"
],
"properties": {
"id": {
"type": "string"
},
"at": {
"type": "string",
"description": "RFC 3339"
},
"writer": {
"type": "string",
"description": "who the file's own header names, or empty"
},
"taken_by": {
"type": "string",
"description": "the module that took it"
},
"taken_at": {
"type": "string",
"description": "when it was taken, RFC 3339"
},
"ended": {
"type": "string",
"description": "when the resolver's own file stood again, RFC 3339"
},
"how": {
"type": "string",
"description": "how it ended"
}
}
}
}
}