From 5d59b35cf79483e1688e4c37cd1852a639288a65 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 4 Oct 2026 12:33:56 +0200 Subject: [PATCH] photos authenticates against the database its user lives in (hq issue 232) The provider creates each consumer's user in that consumer's own database. photos asked for admin, where no such user exists; invoicing, against the same provider, already asked for the name the mesh gave it and worked. Invisible until hq 225 was fixed: while the provisioner could not read its secrets, no user existed anywhere, so 'UserNotFound for db admin' was a true and complete account of that fault. A fault that explains the symptom is not evidence there is only one. --- modules/photos/module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/photos/module.json b/modules/photos/module.json index ba1e5bd..75fc0d8 100644 --- a/modules/photos/module.json +++ b/modules/photos/module.json @@ -58,7 +58,7 @@ "type": "file", "path": "${dir:state}/server.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}/${bound:mongodb-database:as}?authSource=admin\nMONGO_DB=${bound:mongodb-database:as}\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_BUCKET=${bound:s3-bucket:bucket}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\nMINIO_USE_SSL=false\n" + "content": "NODE_ENV=production\nPORT=9000\nMONGO_URL=mongodb://${bound:mongodb-database:as}:${secret:mongodb-database}@${bound:mongodb-database:at}:${bound:mongodb-database:port}/${bound:mongodb-database:as}?authSource=${bound:mongodb-database:as}\nMONGO_DB=${bound:mongodb-database:as}\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_BUCKET=${bound:s3-bucket:bucket}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\nMINIO_USE_SSL=false\n" }, { "id": "net",