The review found broker own-secret paths drifting: mostly /var/lib/<module>/ broker, but grafana/redis/icecast/nextcloud carried a '-module' suffix to dodge a collision with the service's own /var/lib/<name> data, and photos sat under /etc. Normalized to one collision-free namespace a service never owns: /var/lib/mesh/<module>/broker, with a mesh-state directory resource for the parent, across 24 modules. audit-logger is grandfathered (lab-proven, referenced by the assigned test, and it has no service to collide with). All 33 manifests parse; no client hardcoded a path, so nothing in code moved. Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"module": "verdaccio",
|
|
"version": "1",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"emits": [
|
|
"module.verdaccio.package.published"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/verdaccio/broker"
|
|
},
|
|
"listens": [
|
|
{
|
|
"port": 4873,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the package registry, for installs and publishes"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/verdaccio",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "conf",
|
|
"type": "directory",
|
|
"path": "/services/verdaccio/conf",
|
|
"mode": "0755",
|
|
"owner": "10001:10001"
|
|
},
|
|
{
|
|
"id": "storage",
|
|
"type": "directory",
|
|
"path": "/services/verdaccio/storage",
|
|
"mode": "0700",
|
|
"owner": "10001:10001"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "file",
|
|
"path": "/services/verdaccio/conf/config.yaml",
|
|
"mode": "0644",
|
|
"content": "storage: /verdaccio/storage\nauth:\n htpasswd:\n file: /verdaccio/conf/htpasswd\n max_users: 10\nuplinks:\n npmjs:\n url: https://registry.npmjs.org/\npackages:\n \"**\":\n access: $all\n publish: $authenticated\n proxy: npmjs\nserver:\n keepAliveTimeout: 60\n maxBodySize: 10mb\nmiddlewares:\n audit:\n enabled: true\nlog:\n type: stdout\n format: pretty\n level: http\n"
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "container",
|
|
"name": "verdaccio",
|
|
"image": "verdaccio/verdaccio@sha256:fcb86134563534e2f634752e6c6c3edcdb78242ec16578c73ce39d1dadbaa801",
|
|
"ports": [
|
|
"4873"
|
|
],
|
|
"volumes": [
|
|
"/services/verdaccio/storage:/verdaccio/storage",
|
|
"/services/verdaccio/conf:/verdaccio/conf"
|
|
]
|
|
}
|
|
]
|
|
}
|