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
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"module": "photos",
|
|
"version": "1",
|
|
"requires": [
|
|
"s3-bucket"
|
|
],
|
|
"contributes": {
|
|
"s3-bucket": {
|
|
"bucket": "photos"
|
|
}
|
|
},
|
|
"binds": {
|
|
"s3-bucket": "/etc/photos/store.json"
|
|
},
|
|
"secrets": {
|
|
"s3-bucket": "/etc/photos/store.secret"
|
|
},
|
|
"emits": [
|
|
"module.photos.item.added"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/photos/broker"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/photos",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/etc/photos",
|
|
"mode": "0750"
|
|
},
|
|
{
|
|
"id": "app",
|
|
"type": "container",
|
|
"name": "photos",
|
|
"image": "alpine@sha256:c64c687cbea9300178b30c95835354e34c4e4febc4badfe27102879de0483b5e",
|
|
"env": {
|
|
"PHOTOS_STORE": "/etc/photos/store.json",
|
|
"PHOTOS_STORE_SECRET_FILE": "/etc/photos/store.secret"
|
|
},
|
|
"volumes": [
|
|
"/etc/photos/store.json:/etc/photos/store.json:ro",
|
|
"/etc/photos/store.secret:/etc/photos/store.secret:ro"
|
|
]
|
|
}
|
|
]
|
|
}
|