The mesh's own addresses come from placement (each node's private address and its endpoint); who holds node-intrusion-prevention, from seat-holders; who is heard, from the watchman's presence. Each heard holder is asked seat:node-intrusion-prevention.banned@<node>, all at once. The finding is the controller's: machine.<node>.bans-the-mesh, urgent, the same summary and words. A heard holder that does not answer makes the probe fail to run, never pass. Rows in TestTheBusProbes; the manifest reads and invokes what the code does.
71 lines
1.4 KiB
JSON
71 lines
1.4 KiB
JSON
{
|
|
"module": "mesh-self-check",
|
|
"version": "1",
|
|
"runs-as": "mesh-self-check",
|
|
"claims": [
|
|
{
|
|
"name": "mesh-self-check",
|
|
"scope": "mesh",
|
|
"serves": [
|
|
"doctor",
|
|
"probes"
|
|
]
|
|
}
|
|
],
|
|
"invokes": [
|
|
"nats.nats_streams",
|
|
"nats.nats_closed_connections",
|
|
"seat:mesh-watchdogs.signals",
|
|
"seat:node-intrusion-prevention.banned"
|
|
],
|
|
"reads": [
|
|
"mesh-delivery-assigner.placement",
|
|
"mesh-delivery-assigner.seat-holders",
|
|
"mesh-delivery-watchman.presence"
|
|
],
|
|
"state": [
|
|
"findings",
|
|
"verdict",
|
|
{
|
|
"name": "verdicts",
|
|
"ttl-seconds": 604800
|
|
}
|
|
],
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-self-check",
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-self-check",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-self-check"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-self-check",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-self-check",
|
|
"binary": "mesh-self-check",
|
|
"loads": [
|
|
"mesh-self-check"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|