An identity is `mesh_<node>_<slug-or-name>` and a backend keeps 20 characters (an S3 access key). Overflow makes a module unresolvable, and this catalogue was finding it one module at a time, on a raise: route-proxy on novox is 22, home-assistant on ace is 23. Two found by hand where a sweep would have found eighteen. So the whole catalogue was swept instead, against the longest node name the mesh actually has (`shanks`, six characters) rather than against the node each module happens to sit on today — a module is assigned somewhere, and where is not a property of the manifest. That leaves eight characters for the identity source, and eighteen modules were over it. Slugs added, chosen to stay greppable in a provider's user list: anthropic-consumer claude openai-consumer openai anthropic-manager anthmgr portainer portain audit-logger audit public-acme pubacme bookshelf books qbittorrent qbt cloudflare-dns cfdns resolv-conf resolv confluence confl resolved-split-dns splitdns home-assistant hass route-proxy rproxy invoicing invoice verdaccio verdacc mosquitto mosq nextcloud ncloud A slug changes the login the mesh mints, so a module already provisioned under its full name is re-minted under the slug and its old login withdrawn — which is the provisioner's ordinary business, but it is a change, not a no-op. Checked with the real parser: every one of the 66 manifests through `catalogue.ParseManifest`, and every module's `CheckIdentity` against all four node names. 0 problems, where the same check over the parent commit reports 44.
106 lines
2.5 KiB
JSON
106 lines
2.5 KiB
JSON
{
|
|
"module": "invoicing",
|
|
"version": "1",
|
|
"slug": "invoice",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"mongodb-database",
|
|
"s3-bucket",
|
|
"route"
|
|
],
|
|
"contributes": {
|
|
"mongodb-database": {
|
|
"name": "invoicing"
|
|
},
|
|
"s3-bucket": {
|
|
"bucket": "invoicing"
|
|
},
|
|
"route": {
|
|
"label": "invoicing",
|
|
"port": 80
|
|
}
|
|
},
|
|
"binds": {
|
|
"mongodb-database": "/var/lib/invoicing/database.json",
|
|
"s3-bucket": "/var/lib/invoicing/store.json",
|
|
"route": "/var/lib/invoicing/route.json"
|
|
},
|
|
"secrets": {
|
|
"mongodb-database": "/var/lib/invoicing/database.secret",
|
|
"s3-bucket": "/var/lib/invoicing/store.secret"
|
|
},
|
|
"listens": [
|
|
{
|
|
"port": 80,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the invoicing web frontend; a public name is a route grant later"
|
|
},
|
|
{
|
|
"port": 9000,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the invoicing REST API the frontend and integrations call"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/invoicing",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/invoicing",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "api-env",
|
|
"type": "file",
|
|
"path": "/var/lib/invoicing/api.env",
|
|
"mode": "0600",
|
|
"content": "NODE_ENV=production\nPORT=9000\nMONGO_URL=mongodb://${bound:mongodb-database:as}:${secret:mongodb-database}@${bound:mongodb-database:at}:${bound:mongodb-database:port}/invoicing?authSource=admin\nMINIO_BUCKET=invoicing\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\n"
|
|
},
|
|
{
|
|
"id": "net",
|
|
"type": "network",
|
|
"name": "invoicing"
|
|
},
|
|
{
|
|
"id": "app",
|
|
"type": "container",
|
|
"name": "invoicing-app",
|
|
"image": "registry-api.novox.be/novox/invoicing-app:latest",
|
|
"network": "invoicing",
|
|
"env": {
|
|
"UID": "2201",
|
|
"GID": "2201"
|
|
},
|
|
"ports": [
|
|
"80"
|
|
]
|
|
},
|
|
{
|
|
"id": "api",
|
|
"type": "container",
|
|
"name": "invoicing-api",
|
|
"image": "registry-api.novox.be/novox/invoicing-api:latest",
|
|
"network": "invoicing",
|
|
"env": {
|
|
"UID": "2201",
|
|
"GID": "2201"
|
|
},
|
|
"env-file": [
|
|
"/var/lib/invoicing/api.env"
|
|
],
|
|
"ports": [
|
|
"9000"
|
|
]
|
|
}
|
|
]
|
|
}
|