feat(api): Postgres persistence for registries + scans (owner-scoped, fail-closed)
CI (SIAX Cloud) / security (push) Successful in 13s
CI (SIAX Cloud) / contracts (pull_request) Successful in 17s
CI (SIAX Cloud) / security (pull_request) Successful in 13s
CI (SIAX Cloud) / contracts (push) Successful in 16s
CI (SIAX Cloud) / quality (push) Successful in 52s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m13s

- schema migration 001 (registries, scans; owner_sub = introspected subject)
- pg pool + services; scan ownership enforced in SQL (INSERT ... SELECT WHERE owner_sub)
- real handlers: 201/400/404/500, owner-scoped GET/POST, listScans registryId filter
- graceful shutdown closes pool; 7 new persistence tests (21/21)
This commit is contained in:
2026-09-16 22:32:48 +02:00
parent 72000b79ae
commit 9482a97795
8 changed files with 480 additions and 19 deletions
+3 -1
View File
@@ -11,14 +11,16 @@
"test": "vitest run"
},
"dependencies": {
"@siax/c0py-core": "workspace:*",
"@siax/c0py-config": "workspace:*",
"@siax/c0py-core": "workspace:*",
"@siax/c0py-types": "workspace:*",
"fastify": "^5.12.0",
"pg": "^8.23.0",
"zod": "^3.24.0"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/pg": "^8.23.1",
"tsx": "^4.21.0",
"typescript": "^5.7.2",
"vitest": "^3.0.0"