The builder's package binding takes its port from the node, not from the manifest
The forge is raised by hand at genesis, before any module provides `package-registry`, so the builder carries a binding instead of resolving one — and the port in it was rewritten, as text, by the installer. A later registration of this manifest from the catalogue put 3000 back, silently, and pointed the builder and its registry credential at whatever holds that port. Made settable instead: the port is a per-node setting the controller holds, and the catalogue's number is only its default. `provision`, `from` and `as` are protected — a setting here is about where the forge answers, never about who the binding is with. novox/hq 04-ISSUES/085, ADR 0100
This commit is contained in:
@@ -45,6 +45,12 @@
|
||||
"type": "file",
|
||||
"path": "/var/lib/mesh/builder/package-registry.json",
|
||||
"mode": "0600",
|
||||
"merge": "json",
|
||||
"protected": [
|
||||
"provision",
|
||||
"from",
|
||||
"as"
|
||||
],
|
||||
"content": "{\"provision\": \"package-registry\", \"from\": \"gitea\", \"at\": \"127.0.0.1\", \"as\": \"mesh-builder\", \"serves\": {\"scheme\": \"http\", \"port\": 3000, \"npm-path\": \"/api/packages/novox/npm/\"}}\n"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user