Skip to content

Commit bc079f5

Browse files
Merge branch 'main' into bugfix/vector-io-test-parametrization
2 parents 314a5d8 + 9b18932 commit bc079f5

55 files changed

Lines changed: 1782 additions & 1898 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,26 @@ repos:
308308
}
309309
exit 0
310310
311+
- id: enforce-authorized-sqlstore
312+
name: Enforce AuthorizedSqlStore usage
313+
entry: bash
314+
language: system
315+
types: [python]
316+
pass_filenames: false
317+
always_run: true
318+
files: ^src/
319+
args:
320+
- -c
321+
- |
322+
grep -rn --include="*.py" -E 'sqlstore_impl' src/ \
323+
| grep -v 'core/storage/sqlstore/' && {
324+
echo;
325+
echo "❌ Direct sqlstore_impl usage is not allowed outside core/storage/sqlstore/.";
326+
echo "Use authorized_sqlstore() from ogx.core.storage.sqlstore.authorized_sqlstore instead.";
327+
echo;
328+
exit 1;
329+
} || true
330+
311331
- id: check-file-size
312332
name: Check Python file size limit
313333
entry: python scripts/check_file_size.py

ARCHITECTURE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Client (ogx-client SDK or raw HTTP)
2121
FastAPI Server (src/ogx/core/server/server.py)
2222
|
2323
|-- AuthenticationMiddleware (token validation, user extraction)
24-
|-- QuotaMiddleware (rate limiting per client)
2524
|
2625
v
2726
Route Dispatch

0 commit comments

Comments
 (0)