From 2409afda607bcd02dc5641a5fc618f56020284bf Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 26 Sep 2026 03:34:00 +0200 Subject: [PATCH] invoicing: MONGO_DB says the granted database's name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app reads MONGO_DB (default 'invoicing') for every operation and uses the URL only to connect — listCollections ran against a database the granted user cannot see. Same fault and same fix as photos' MONGO_DB, found by the API's own logs at take. --- modules/invoicing/module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/invoicing/module.json b/modules/invoicing/module.json index 64bb3c0..d7386ad 100644 --- a/modules/invoicing/module.json +++ b/modules/invoicing/module.json @@ -69,7 +69,7 @@ "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}/${bound:mongodb-database:as}?authSource=${bound:mongodb-database:as}\nMINIO_BUCKET=mesh-novox-invoice\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\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_BUCKET=mesh-novox-invoice\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",