Add rls-safe-mode module: Hibernate 8.0.0.CR2 HQL safe mode and PostgreSQL row-level security for @TenantId
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
54c6d606ff
commit
1c9d9423c0
@@ -0,0 +1,8 @@
|
||||
safe_mode_enabled=false. tenantA runs a hostile HQL fragment, then the app counts rows natively in the same transaction.
|
||||
hostile set_config(): ran
|
||||
native count afterwards -> ok: 1
|
||||
|
||||
safe_mode_enabled=true. tenantA runs a hostile HQL fragment, then the app counts rows natively in the same transaction.
|
||||
hostile set_config(): blocked (SemanticException)
|
||||
native count afterwards -> ok: 2
|
||||
|
||||
Reference in New Issue
Block a user